|
1 | 1 | error: unnecessary structure name repetition
|
2 |
| - --> $DIR/use_self.rs:14:21 |
| 2 | + --> $DIR/use_self.rs:18:21 |
3 | 3 | |
|
4 | 4 | LL | fn new() -> Foo {
|
5 | 5 | | ^^^ help: use the applicable keyword: `Self`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::use-self` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: unnecessary structure name repetition
|
10 |
| - --> $DIR/use_self.rs:15:13 |
| 10 | + --> $DIR/use_self.rs:19:13 |
11 | 11 | |
|
12 | 12 | LL | Foo {}
|
13 | 13 | | ^^^ help: use the applicable keyword: `Self`
|
14 | 14 |
|
15 | 15 | error: unnecessary structure name repetition
|
16 |
| - --> $DIR/use_self.rs:17:22 |
| 16 | + --> $DIR/use_self.rs:21:22 |
17 | 17 | |
|
18 | 18 | LL | fn test() -> Foo {
|
19 | 19 | | ^^^ help: use the applicable keyword: `Self`
|
20 | 20 |
|
21 | 21 | error: unnecessary structure name repetition
|
22 |
| - --> $DIR/use_self.rs:18:13 |
| 22 | + --> $DIR/use_self.rs:22:13 |
23 | 23 | |
|
24 | 24 | LL | Foo::new()
|
25 | 25 | | ^^^ help: use the applicable keyword: `Self`
|
26 | 26 |
|
27 | 27 | error: unnecessary structure name repetition
|
28 |
| - --> $DIR/use_self.rs:23:25 |
| 28 | + --> $DIR/use_self.rs:27:25 |
29 | 29 | |
|
30 | 30 | LL | fn default() -> Foo {
|
31 | 31 | | ^^^ help: use the applicable keyword: `Self`
|
32 | 32 |
|
33 | 33 | error: unnecessary structure name repetition
|
34 |
| - --> $DIR/use_self.rs:24:13 |
| 34 | + --> $DIR/use_self.rs:28:13 |
35 | 35 | |
|
36 | 36 | LL | Foo::new()
|
37 | 37 | | ^^^ help: use the applicable keyword: `Self`
|
38 | 38 |
|
39 | 39 | error: unnecessary structure name repetition
|
40 |
| - --> $DIR/use_self.rs:89:24 |
| 40 | + --> $DIR/use_self.rs:93:24 |
41 | 41 | |
|
42 | 42 | LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
|
43 | 43 | | ^^^ help: use the applicable keyword: `Self`
|
44 | 44 |
|
45 | 45 | error: unnecessary structure name repetition
|
46 |
| - --> $DIR/use_self.rs:89:55 |
| 46 | + --> $DIR/use_self.rs:93:55 |
47 | 47 | |
|
48 | 48 | LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
|
49 | 49 | | ^^^ help: use the applicable keyword: `Self`
|
50 | 50 |
|
51 | 51 | error: unnecessary structure name repetition
|
52 |
| - --> $DIR/use_self.rs:104:13 |
| 52 | + --> $DIR/use_self.rs:108:13 |
53 | 53 | |
|
54 | 54 | LL | TS(0)
|
55 | 55 | | ^^ help: use the applicable keyword: `Self`
|
56 | 56 |
|
57 | 57 | error: unnecessary structure name repetition
|
58 |
| - --> $DIR/use_self.rs:112:25 |
59 |
| - | |
60 |
| -LL | fn new() -> Foo { |
61 |
| - | ^^^ help: use the applicable keyword: `Self` |
62 |
| -... |
63 |
| -LL | use_self_expand!(); // Should lint in local macros |
64 |
| - | ------------------- in this macro invocation |
65 |
| - | |
66 |
| - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
67 |
| - |
68 |
| -error: unnecessary structure name repetition |
69 |
| - --> $DIR/use_self.rs:113:17 |
70 |
| - | |
71 |
| -LL | Foo {} |
72 |
| - | ^^^ help: use the applicable keyword: `Self` |
73 |
| -... |
74 |
| -LL | use_self_expand!(); // Should lint in local macros |
75 |
| - | ------------------- in this macro invocation |
76 |
| - | |
77 |
| - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
78 |
| - |
79 |
| -error: unnecessary structure name repetition |
80 |
| - --> $DIR/use_self.rs:136:29 |
| 58 | + --> $DIR/use_self.rs:143:29 |
81 | 59 | |
|
82 | 60 | LL | fn bar() -> Bar {
|
83 | 61 | | ^^^ help: use the applicable keyword: `Self`
|
84 | 62 |
|
85 | 63 | error: unnecessary structure name repetition
|
86 |
| - --> $DIR/use_self.rs:137:21 |
| 64 | + --> $DIR/use_self.rs:144:21 |
87 | 65 | |
|
88 | 66 | LL | Bar { foo: Foo {} }
|
89 | 67 | | ^^^ help: use the applicable keyword: `Self`
|
90 | 68 |
|
91 | 69 | error: unnecessary structure name repetition
|
92 |
| - --> $DIR/use_self.rs:148:21 |
| 70 | + --> $DIR/use_self.rs:155:21 |
93 | 71 | |
|
94 | 72 | LL | fn baz() -> Foo {
|
95 | 73 | | ^^^ help: use the applicable keyword: `Self`
|
96 | 74 |
|
97 | 75 | error: unnecessary structure name repetition
|
98 |
| - --> $DIR/use_self.rs:149:13 |
| 76 | + --> $DIR/use_self.rs:156:13 |
99 | 77 | |
|
100 | 78 | LL | Foo {}
|
101 | 79 | | ^^^ help: use the applicable keyword: `Self`
|
102 | 80 |
|
103 | 81 | error: unnecessary structure name repetition
|
104 |
| - --> $DIR/use_self.rs:166:21 |
| 82 | + --> $DIR/use_self.rs:173:21 |
105 | 83 | |
|
106 | 84 | LL | let _ = Enum::B(42);
|
107 | 85 | | ^^^^ help: use the applicable keyword: `Self`
|
108 | 86 |
|
109 | 87 | error: unnecessary structure name repetition
|
110 |
| - --> $DIR/use_self.rs:167:21 |
| 88 | + --> $DIR/use_self.rs:174:21 |
111 | 89 | |
|
112 | 90 | LL | let _ = Enum::C { field: true };
|
113 | 91 | | ^^^^ help: use the applicable keyword: `Self`
|
114 | 92 |
|
115 | 93 | error: unnecessary structure name repetition
|
116 |
| - --> $DIR/use_self.rs:168:21 |
| 94 | + --> $DIR/use_self.rs:175:21 |
117 | 95 | |
|
118 | 96 | LL | let _ = Enum::A;
|
119 | 97 | | ^^^^ help: use the applicable keyword: `Self`
|
120 | 98 |
|
121 | 99 | error: unnecessary structure name repetition
|
122 |
| - --> $DIR/use_self.rs:210:13 |
| 100 | + --> $DIR/use_self.rs:217:13 |
123 | 101 | |
|
124 | 102 | LL | nested::A::fun_1();
|
125 | 103 | | ^^^^^^^^^ help: use the applicable keyword: `Self`
|
126 | 104 |
|
127 | 105 | error: unnecessary structure name repetition
|
128 |
| - --> $DIR/use_self.rs:211:13 |
| 106 | + --> $DIR/use_self.rs:218:13 |
129 | 107 | |
|
130 | 108 | LL | nested::A::A;
|
131 | 109 | | ^^^^^^^^^ help: use the applicable keyword: `Self`
|
132 | 110 |
|
133 | 111 | error: unnecessary structure name repetition
|
134 |
| - --> $DIR/use_self.rs:213:13 |
| 112 | + --> $DIR/use_self.rs:220:13 |
135 | 113 | |
|
136 | 114 | LL | nested::A {};
|
137 | 115 | | ^^^^^^^^^ help: use the applicable keyword: `Self`
|
138 | 116 |
|
139 | 117 | error: unnecessary structure name repetition
|
140 |
| - --> $DIR/use_self.rs:232:13 |
| 118 | + --> $DIR/use_self.rs:239:13 |
141 | 119 | |
|
142 | 120 | LL | TestStruct::from_something()
|
143 | 121 | | ^^^^^^^^^^ help: use the applicable keyword: `Self`
|
144 | 122 |
|
145 | 123 | error: unnecessary structure name repetition
|
146 |
| - --> $DIR/use_self.rs:246:25 |
| 124 | + --> $DIR/use_self.rs:253:25 |
147 | 125 | |
|
148 | 126 | LL | async fn g() -> S {
|
149 | 127 | | ^ help: use the applicable keyword: `Self`
|
150 | 128 |
|
151 | 129 | error: unnecessary structure name repetition
|
152 |
| - --> $DIR/use_self.rs:247:13 |
| 130 | + --> $DIR/use_self.rs:254:13 |
153 | 131 | |
|
154 | 132 | LL | S {}
|
155 | 133 | | ^ help: use the applicable keyword: `Self`
|
156 | 134 |
|
157 | 135 | error: unnecessary structure name repetition
|
158 |
| - --> $DIR/use_self.rs:251:16 |
| 136 | + --> $DIR/use_self.rs:258:16 |
159 | 137 | |
|
160 | 138 | LL | &p[S::A..S::B]
|
161 | 139 | | ^ help: use the applicable keyword: `Self`
|
162 | 140 |
|
163 | 141 | error: unnecessary structure name repetition
|
164 |
| - --> $DIR/use_self.rs:251:22 |
| 142 | + --> $DIR/use_self.rs:258:22 |
165 | 143 | |
|
166 | 144 | LL | &p[S::A..S::B]
|
167 | 145 | | ^ help: use the applicable keyword: `Self`
|
168 | 146 |
|
169 | 147 | error: unnecessary structure name repetition
|
170 |
| - --> $DIR/use_self.rs:274:29 |
| 148 | + --> $DIR/use_self.rs:281:29 |
171 | 149 | |
|
172 | 150 | LL | fn foo(value: T) -> Foo<T> {
|
173 | 151 | | ^^^^^^ help: use the applicable keyword: `Self`
|
174 | 152 |
|
175 | 153 | error: unnecessary structure name repetition
|
176 |
| - --> $DIR/use_self.rs:275:13 |
| 154 | + --> $DIR/use_self.rs:282:13 |
177 | 155 | |
|
178 | 156 | LL | Foo { value }
|
179 | 157 | | ^^^ help: use the applicable keyword: `Self`
|
180 | 158 |
|
181 | 159 | error: unnecessary structure name repetition
|
182 |
| - --> $DIR/use_self.rs:312:21 |
| 160 | + --> $DIR/use_self.rs:319:21 |
183 | 161 | |
|
184 | 162 | LL | type From = T::From;
|
185 | 163 | | ^^^^^^^ help: use the applicable keyword: `Self`
|
186 | 164 |
|
187 | 165 | error: unnecessary structure name repetition
|
188 |
| - --> $DIR/use_self.rs:313:19 |
| 166 | + --> $DIR/use_self.rs:320:19 |
189 | 167 | |
|
190 | 168 | LL | type To = T::To;
|
191 | 169 | | ^^^^^ help: use the applicable keyword: `Self`
|
192 | 170 |
|
193 | 171 | error: unnecessary structure name repetition
|
194 |
| - --> $DIR/use_self.rs:450:13 |
| 172 | + --> $DIR/use_self.rs:457:13 |
195 | 173 | |
|
196 | 174 | LL | A::new::<submod::B>(submod::B {})
|
197 | 175 | | ^ help: use the applicable keyword: `Self`
|
198 | 176 |
|
199 |
| -error: aborting due to 31 previous errors |
| 177 | +error: aborting due to 29 previous errors |
200 | 178 |
|
0 commit comments