fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unnecessary structure name repetition 2 --> $DIR/use_self.rs:21:21 3 | 4LL | fn new() -> Foo { 5 | ^^^ help: use the applicable keyword: `Self` 6 | 7 = note: `-D clippy::use-self` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::use_self)]` 9 10error: unnecessary structure name repetition 11 --> $DIR/use_self.rs:22:13 12 | 13LL | Foo {} 14 | ^^^ help: use the applicable keyword: `Self` 15 16error: unnecessary structure name repetition 17 --> $DIR/use_self.rs:24:22 18 | 19LL | fn test() -> Foo { 20 | ^^^ help: use the applicable keyword: `Self` 21 22error: unnecessary structure name repetition 23 --> $DIR/use_self.rs:25:13 24 | 25LL | Foo::new() 26 | ^^^ help: use the applicable keyword: `Self` 27 28error: unnecessary structure name repetition 29 --> $DIR/use_self.rs:30:25 30 | 31LL | fn default() -> Foo { 32 | ^^^ help: use the applicable keyword: `Self` 33 34error: unnecessary structure name repetition 35 --> $DIR/use_self.rs:31:13 36 | 37LL | Foo::new() 38 | ^^^ help: use the applicable keyword: `Self` 39 40error: unnecessary structure name repetition 41 --> $DIR/use_self.rs:96:24 42 | 43LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> { 44 | ^^^ help: use the applicable keyword: `Self` 45 46error: unnecessary structure name repetition 47 --> $DIR/use_self.rs:96:55 48 | 49LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> { 50 | ^^^ help: use the applicable keyword: `Self` 51 52error: unnecessary structure name repetition 53 --> $DIR/use_self.rs:111:13 54 | 55LL | TS(0) 56 | ^^ help: use the applicable keyword: `Self` 57 58error: unnecessary structure name repetition 59 --> $DIR/use_self.rs:146:29 60 | 61LL | fn bar() -> Bar { 62 | ^^^ help: use the applicable keyword: `Self` 63 64error: unnecessary structure name repetition 65 --> $DIR/use_self.rs:147:21 66 | 67LL | Bar { foo: Foo {} } 68 | ^^^ help: use the applicable keyword: `Self` 69 70error: unnecessary structure name repetition 71 --> $DIR/use_self.rs:158:21 72 | 73LL | fn baz() -> Foo { 74 | ^^^ help: use the applicable keyword: `Self` 75 76error: unnecessary structure name repetition 77 --> $DIR/use_self.rs:159:13 78 | 79LL | Foo {} 80 | ^^^ help: use the applicable keyword: `Self` 81 82error: unnecessary structure name repetition 83 --> $DIR/use_self.rs:176:21 84 | 85LL | let _ = Enum::B(42); 86 | ^^^^ help: use the applicable keyword: `Self` 87 88error: unnecessary structure name repetition 89 --> $DIR/use_self.rs:177:21 90 | 91LL | let _ = Enum::C { field: true }; 92 | ^^^^ help: use the applicable keyword: `Self` 93 94error: unnecessary structure name repetition 95 --> $DIR/use_self.rs:178:21 96 | 97LL | let _ = Enum::A; 98 | ^^^^ help: use the applicable keyword: `Self` 99 100error: unnecessary structure name repetition 101 --> $DIR/use_self.rs:220:13 102 | 103LL | nested::A::fun_1(); 104 | ^^^^^^^^^ help: use the applicable keyword: `Self` 105 106error: unnecessary structure name repetition 107 --> $DIR/use_self.rs:221:13 108 | 109LL | nested::A::A; 110 | ^^^^^^^^^ help: use the applicable keyword: `Self` 111 112error: unnecessary structure name repetition 113 --> $DIR/use_self.rs:223:13 114 | 115LL | nested::A {}; 116 | ^^^^^^^^^ help: use the applicable keyword: `Self` 117 118error: unnecessary structure name repetition 119 --> $DIR/use_self.rs:242:13 120 | 121LL | TestStruct::from_something() 122 | ^^^^^^^^^^ help: use the applicable keyword: `Self` 123 124error: unnecessary structure name repetition 125 --> $DIR/use_self.rs:256:25 126 | 127LL | async fn g() -> S { 128 | ^ help: use the applicable keyword: `Self` 129 130error: unnecessary structure name repetition 131 --> $DIR/use_self.rs:257:13 132 | 133LL | S {} 134 | ^ help: use the applicable keyword: `Self` 135 136error: unnecessary structure name repetition 137 --> $DIR/use_self.rs:261:16 138 | 139LL | &p[S::A..S::B] 140 | ^ help: use the applicable keyword: `Self` 141 142error: unnecessary structure name repetition 143 --> $DIR/use_self.rs:261:22 144 | 145LL | &p[S::A..S::B] 146 | ^ help: use the applicable keyword: `Self` 147 148error: unnecessary structure name repetition 149 --> $DIR/use_self.rs:284:29 150 | 151LL | fn foo(value: T) -> Foo<T> { 152 | ^^^^^^ help: use the applicable keyword: `Self` 153 154error: unnecessary structure name repetition 155 --> $DIR/use_self.rs:285:13 156 | 157LL | Foo::<T> { value } 158 | ^^^^^^^^ help: use the applicable keyword: `Self` 159 160error: unnecessary structure name repetition 161 --> $DIR/use_self.rs:457:13 162 | 163LL | A::new::<submod::B>(submod::B {}) 164 | ^ help: use the applicable keyword: `Self` 165 166error: unnecessary structure name repetition 167 --> $DIR/use_self.rs:494:13 168 | 169LL | S2::new() 170 | ^^ help: use the applicable keyword: `Self` 171 172error: unnecessary structure name repetition 173 --> $DIR/use_self.rs:531:17 174 | 175LL | Foo::Bar => unimplemented!(), 176 | ^^^ help: use the applicable keyword: `Self` 177 178error: unnecessary structure name repetition 179 --> $DIR/use_self.rs:532:17 180 | 181LL | Foo::Baz => unimplemented!(), 182 | ^^^ help: use the applicable keyword: `Self` 183 184error: unnecessary structure name repetition 185 --> $DIR/use_self.rs:538:20 186 | 187LL | if let Foo::Bar = self { 188 | ^^^ help: use the applicable keyword: `Self` 189 190error: unnecessary structure name repetition 191 --> $DIR/use_self.rs:562:17 192 | 193LL | Something::Num(n) => *n, 194 | ^^^^^^^^^ help: use the applicable keyword: `Self` 195 196error: unnecessary structure name repetition 197 --> $DIR/use_self.rs:563:17 198 | 199LL | Something::TupleNums(n, _m) => *n, 200 | ^^^^^^^^^ help: use the applicable keyword: `Self` 201 202error: unnecessary structure name repetition 203 --> $DIR/use_self.rs:564:17 204 | 205LL | Something::StructNums { one, two: _ } => *one, 206 | ^^^^^^^^^ help: use the applicable keyword: `Self` 207 208error: unnecessary structure name repetition 209 --> $DIR/use_self.rs:570:17 210 | 211LL | crate::issue8845::Something::Num(n) => *n, 212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` 213 214error: unnecessary structure name repetition 215 --> $DIR/use_self.rs:571:17 216 | 217LL | crate::issue8845::Something::TupleNums(n, _m) => *n, 218 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` 219 220error: unnecessary structure name repetition 221 --> $DIR/use_self.rs:572:17 222 | 223LL | crate::issue8845::Something::StructNums { one, two: _ } => *one, 224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` 225 226error: unnecessary structure name repetition 227 --> $DIR/use_self.rs:588:17 228 | 229LL | let Foo(x) = self; 230 | ^^^ help: use the applicable keyword: `Self` 231 232error: unnecessary structure name repetition 233 --> $DIR/use_self.rs:593:17 234 | 235LL | let crate::issue8845::Foo(x) = self; 236 | ^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` 237 238error: unnecessary structure name repetition 239 --> $DIR/use_self.rs:600:17 240 | 241LL | let Bar { x, .. } = self; 242 | ^^^ help: use the applicable keyword: `Self` 243 244error: unnecessary structure name repetition 245 --> $DIR/use_self.rs:605:17 246 | 247LL | let crate::issue8845::Bar { x, .. } = self; 248 | ^^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` 249 250error: unnecessary structure name repetition 251 --> $DIR/use_self.rs:644:17 252 | 253LL | E::A => {}, 254 | ^ help: use the applicable keyword: `Self` 255 256error: aborting due to 42 previous errors 257