summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/use_self.stderr
blob: b33928597c1455534bd6f8327aec24263f200990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
error: unnecessary structure name repetition
  --> $DIR/use_self.rs:14:21
   |
LL |         fn new() -> Foo {
   |                     ^^^ help: use the applicable keyword: `Self`
   |
   = note: `-D clippy::use-self` implied by `-D warnings`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:15:13
   |
LL |             Foo {}
   |             ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:17:22
   |
LL |         fn test() -> Foo {
   |                      ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:18:13
   |
LL |             Foo::new()
   |             ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:23:25
   |
LL |         fn default() -> Foo {
   |                         ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:24:13
   |
LL |             Foo::new()
   |             ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:89:56
   |
LL |         fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
   |                                                        ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:104:13
   |
LL |             TS(0)
   |             ^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:112:25
   |
LL |             fn new() -> Foo {
   |                         ^^^ help: use the applicable keyword: `Self`
...
LL |         use_self_expand!(); // Should lint in local macros
   |         ------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:113:17
   |
LL |                 Foo {}
   |                 ^^^ help: use the applicable keyword: `Self`
...
LL |         use_self_expand!(); // Should lint in local macros
   |         ------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:148:21
   |
LL |         fn baz() -> Foo {
   |                     ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:149:13
   |
LL |             Foo {}
   |             ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:136:29
   |
LL |                 fn bar() -> Bar {
   |                             ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:137:21
   |
LL |                     Bar { foo: Foo {} }
   |                     ^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:166:21
   |
LL |             let _ = Enum::B(42);
   |                     ^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:167:21
   |
LL |             let _ = Enum::C { field: true };
   |                     ^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:168:21
   |
LL |             let _ = Enum::A;
   |                     ^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:199:13
   |
LL |             nested::A::fun_1();
   |             ^^^^^^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:200:13
   |
LL |             nested::A::A;
   |             ^^^^^^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:202:13
   |
LL |             nested::A {};
   |             ^^^^^^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:221:13
   |
LL |             TestStruct::from_something()
   |             ^^^^^^^^^^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:235:25
   |
LL |         async fn g() -> S {
   |                         ^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:236:13
   |
LL |             S {}
   |             ^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:240:16
   |
LL |             &p[S::A..S::B]
   |                ^ help: use the applicable keyword: `Self`

error: unnecessary structure name repetition
  --> $DIR/use_self.rs:240:22
   |
LL |             &p[S::A..S::B]
   |                      ^ help: use the applicable keyword: `Self`

error: aborting due to 25 previous errors