|
1 | | -error: redundant redefinition of a binding |
2 | | - --> $DIR/redundant_locals.rs:11:9 |
| 1 | +error: redundant redefinition of a binding `x` |
| 2 | + --> $DIR/redundant_locals.rs:12:5 |
3 | 3 | | |
4 | | -LL | let x = 1; |
5 | | - | ^ |
6 | 4 | LL | let x = x; |
7 | 5 | | ^^^^^^^^^^ |
8 | 6 | | |
9 | | - = help: remove the redefinition of `x` |
| 7 | +help: `x` is initially defined here |
| 8 | + --> $DIR/redundant_locals.rs:11:9 |
| 9 | + | |
| 10 | +LL | let x = 1; |
| 11 | + | ^ |
10 | 12 | = note: `-D clippy::redundant-locals` implied by `-D warnings` |
11 | 13 | = help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]` |
12 | 14 |
|
13 | | -error: redundant redefinition of a binding |
14 | | - --> $DIR/redundant_locals.rs:16:9 |
| 15 | +error: redundant redefinition of a binding `x` |
| 16 | + --> $DIR/redundant_locals.rs:17:5 |
15 | 17 | | |
16 | | -LL | let mut x = 1; |
17 | | - | ^^^^^ |
18 | 18 | LL | let mut x = x; |
19 | 19 | | ^^^^^^^^^^^^^^ |
20 | 20 | | |
21 | | - = help: remove the redefinition of `x` |
| 21 | +help: `x` is initially defined here |
| 22 | + --> $DIR/redundant_locals.rs:16:9 |
| 23 | + | |
| 24 | +LL | let mut x = 1; |
| 25 | + | ^^^^^ |
22 | 26 |
|
23 | | -error: redundant redefinition of a binding |
| 27 | +error: redundant redefinition of a binding `x` |
| 28 | + --> $DIR/redundant_locals.rs:47:5 |
| 29 | + | |
| 30 | +LL | let x = x; |
| 31 | + | ^^^^^^^^^^ |
| 32 | + | |
| 33 | +help: `x` is initially defined here |
24 | 34 | --> $DIR/redundant_locals.rs:46:14 |
25 | 35 | | |
26 | 36 | LL | fn parameter(x: i32) { |
27 | 37 | | ^ |
| 38 | + |
| 39 | +error: redundant redefinition of a binding `x` |
| 40 | + --> $DIR/redundant_locals.rs:52:5 |
| 41 | + | |
28 | 42 | LL | let x = x; |
29 | 43 | | ^^^^^^^^^^ |
30 | 44 | | |
31 | | - = help: remove the redefinition of `x` |
32 | | - |
33 | | -error: redundant redefinition of a binding |
| 45 | +help: `x` is initially defined here |
34 | 46 | --> $DIR/redundant_locals.rs:51:9 |
35 | 47 | | |
36 | 48 | LL | let x = 1; |
37 | 49 | | ^ |
| 50 | + |
| 51 | +error: redundant redefinition of a binding `x` |
| 52 | + --> $DIR/redundant_locals.rs:53:5 |
| 53 | + | |
38 | 54 | LL | let x = x; |
39 | 55 | | ^^^^^^^^^^ |
40 | 56 | | |
41 | | - = help: remove the redefinition of `x` |
42 | | - |
43 | | -error: redundant redefinition of a binding |
| 57 | +help: `x` is initially defined here |
44 | 58 | --> $DIR/redundant_locals.rs:52:9 |
45 | 59 | | |
46 | 60 | LL | let x = x; |
47 | 61 | | ^ |
| 62 | + |
| 63 | +error: redundant redefinition of a binding `x` |
| 64 | + --> $DIR/redundant_locals.rs:54:5 |
| 65 | + | |
48 | 66 | LL | let x = x; |
49 | 67 | | ^^^^^^^^^^ |
50 | 68 | | |
51 | | - = help: remove the redefinition of `x` |
52 | | - |
53 | | -error: redundant redefinition of a binding |
| 69 | +help: `x` is initially defined here |
54 | 70 | --> $DIR/redundant_locals.rs:53:9 |
55 | 71 | | |
56 | 72 | LL | let x = x; |
57 | 73 | | ^ |
| 74 | + |
| 75 | +error: redundant redefinition of a binding `x` |
| 76 | + --> $DIR/redundant_locals.rs:55:5 |
| 77 | + | |
58 | 78 | LL | let x = x; |
59 | 79 | | ^^^^^^^^^^ |
60 | 80 | | |
61 | | - = help: remove the redefinition of `x` |
62 | | - |
63 | | -error: redundant redefinition of a binding |
| 81 | +help: `x` is initially defined here |
64 | 82 | --> $DIR/redundant_locals.rs:54:9 |
65 | 83 | | |
66 | 84 | LL | let x = x; |
67 | 85 | | ^ |
68 | | -LL | let x = x; |
| 86 | + |
| 87 | +error: redundant redefinition of a binding `a` |
| 88 | + --> $DIR/redundant_locals.rs:61:5 |
| 89 | + | |
| 90 | +LL | let a = a; |
69 | 91 | | ^^^^^^^^^^ |
70 | 92 | | |
71 | | - = help: remove the redefinition of `x` |
72 | | - |
73 | | -error: redundant redefinition of a binding |
| 93 | +help: `a` is initially defined here |
74 | 94 | --> $DIR/redundant_locals.rs:59:9 |
75 | 95 | | |
76 | 96 | LL | let a = 1; |
77 | 97 | | ^ |
78 | | -LL | let b = 2; |
79 | | -LL | let a = a; |
| 98 | + |
| 99 | +error: redundant redefinition of a binding `b` |
| 100 | + --> $DIR/redundant_locals.rs:62:5 |
| 101 | + | |
| 102 | +LL | let b = b; |
80 | 103 | | ^^^^^^^^^^ |
81 | 104 | | |
82 | | - = help: remove the redefinition of `a` |
83 | | - |
84 | | -error: redundant redefinition of a binding |
| 105 | +help: `b` is initially defined here |
85 | 106 | --> $DIR/redundant_locals.rs:60:9 |
86 | 107 | | |
87 | 108 | LL | let b = 2; |
88 | 109 | | ^ |
89 | | -LL | let a = a; |
90 | | -LL | let b = b; |
91 | | - | ^^^^^^^^^^ |
92 | | - | |
93 | | - = help: remove the redefinition of `b` |
94 | 110 |
|
95 | | -error: redundant redefinition of a binding |
| 111 | +error: redundant redefinition of a binding `x` |
| 112 | + --> $DIR/redundant_locals.rs:68:9 |
| 113 | + | |
| 114 | +LL | let x = x; |
| 115 | + | ^^^^^^^^^^ |
| 116 | + | |
| 117 | +help: `x` is initially defined here |
96 | 118 | --> $DIR/redundant_locals.rs:67:13 |
97 | 119 | | |
98 | 120 | LL | let x = 1; |
99 | 121 | | ^ |
| 122 | + |
| 123 | +error: redundant redefinition of a binding `x` |
| 124 | + --> $DIR/redundant_locals.rs:75:9 |
| 125 | + | |
100 | 126 | LL | let x = x; |
101 | 127 | | ^^^^^^^^^^ |
102 | 128 | | |
103 | | - = help: remove the redefinition of `x` |
104 | | - |
105 | | -error: redundant redefinition of a binding |
| 129 | +help: `x` is initially defined here |
106 | 130 | --> $DIR/redundant_locals.rs:74:13 |
107 | 131 | | |
108 | 132 | LL | let x = 1; |
109 | 133 | | ^ |
| 134 | + |
| 135 | +error: redundant redefinition of a binding `x` |
| 136 | + --> $DIR/redundant_locals.rs:78:9 |
| 137 | + | |
110 | 138 | LL | let x = x; |
111 | 139 | | ^^^^^^^^^^ |
112 | 140 | | |
113 | | - = help: remove the redefinition of `x` |
114 | | - |
115 | | -error: redundant redefinition of a binding |
| 141 | +help: `x` is initially defined here |
116 | 142 | --> $DIR/redundant_locals.rs:77:6 |
117 | 143 | | |
118 | 144 | LL | |x: i32| { |
119 | 145 | | ^ |
| 146 | + |
| 147 | +error: redundant redefinition of a binding `x` |
| 148 | + --> $DIR/redundant_locals.rs:97:9 |
| 149 | + | |
120 | 150 | LL | let x = x; |
121 | 151 | | ^^^^^^^^^^ |
122 | 152 | | |
123 | | - = help: remove the redefinition of `x` |
124 | | - |
125 | | -error: redundant redefinition of a binding |
| 153 | +help: `x` is initially defined here |
126 | 154 | --> $DIR/redundant_locals.rs:94:9 |
127 | 155 | | |
128 | 156 | LL | let x = 1; |
129 | 157 | | ^ |
130 | | -... |
131 | | -LL | let x = x; |
132 | | - | ^^^^^^^^^^ |
133 | | - | |
134 | | - = help: remove the redefinition of `x` |
135 | 158 |
|
136 | | -error: redundant redefinition of a binding |
137 | | - --> $DIR/redundant_locals.rs:142:9 |
| 159 | +error: redundant redefinition of a binding `a` |
| 160 | + --> $DIR/redundant_locals.rs:144:5 |
138 | 161 | | |
139 | | -LL | let a = WithoutDrop(1); |
140 | | - | ^ |
141 | | -LL | let b = WithoutDrop(2); |
142 | 162 | LL | let a = a; |
143 | 163 | | ^^^^^^^^^^ |
144 | 164 | | |
145 | | - = help: remove the redefinition of `a` |
| 165 | +help: `a` is initially defined here |
| 166 | + --> $DIR/redundant_locals.rs:142:9 |
| 167 | + | |
| 168 | +LL | let a = WithoutDrop(1); |
| 169 | + | ^ |
146 | 170 |
|
147 | 171 | error: aborting due to 14 previous errors |
148 | 172 |
|
0 commit comments