Skip to content

Commit 6fc412f

Browse files
committed
bless clippy tests
1 parent 449ad04 commit 6fc412f

16 files changed

+96
-96
lines changed

src/test/ui/destructure-trait-ref.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ help: consider removing `&` from the pattern
3030
|
3131
LL - let &&x = &1isize as &dyn T;
3232
LL + let &x = &1isize as &dyn T;
33-
|
33+
|
3434

3535
error[E0308]: mismatched types
3636
--> $DIR/destructure-trait-ref.rs:36:11
@@ -46,7 +46,7 @@ help: consider removing `&` from the pattern
4646
|
4747
LL - let &&&x = &(&1isize as &dyn T);
4848
LL + let &&x = &(&1isize as &dyn T);
49-
|
49+
|
5050

5151
error[E0308]: mismatched types
5252
--> $DIR/destructure-trait-ref.rs:40:13

src/test/ui/mismatched_types/issue-38371.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ help: to take parameter `_a` by reference, move `&` to the type
1212
|
1313
LL - fn foo(&_a: Foo) {}
1414
LL + fn foo(_a: &Foo) {}
15-
|
15+
|
1616

1717
error[E0308]: mismatched types
1818
--> $DIR/issue-38371.rs:16:9
@@ -28,7 +28,7 @@ help: consider removing `&` from the pattern
2828
|
2929
LL - fn agh(&&_a: &u32) {}
3030
LL + fn agh(&_a: &u32) {}
31-
|
31+
|
3232

3333
error: aborting due to 2 previous errors
3434

src/test/ui/mismatched_types/ref-pat-suggestions.stderr

+18-18
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ help: to take parameter `_a` by reference, move `&` to the type
1212
|
1313
LL - fn _f0(&_a: u32) {}
1414
LL + fn _f0(_a: &u32) {}
15-
|
15+
|
1616

1717
error[E0308]: mismatched types
1818
--> $DIR/ref-pat-suggestions.rs:4:8
@@ -28,7 +28,7 @@ help: to take parameter `_a` by reference, move `&mut` to the type
2828
|
2929
LL - fn _f1(&mut _a: u32) {}
3030
LL + fn _f1(_a: &mut u32) {}
31-
|
31+
|
3232

3333
error[E0308]: mismatched types
3434
--> $DIR/ref-pat-suggestions.rs:5:9
@@ -44,7 +44,7 @@ help: consider removing `&` from the pattern
4444
|
4545
LL - fn _f2(&&_a: &u32) {}
4646
LL + fn _f2(&_a: &u32) {}
47-
|
47+
|
4848

4949
error[E0308]: mismatched types
5050
--> $DIR/ref-pat-suggestions.rs:6:13
@@ -60,7 +60,7 @@ help: consider removing `&` from the pattern
6060
|
6161
LL - fn _f3(&mut &_a: &mut u32) {}
6262
LL + fn _f3(&mut _a: &mut u32) {}
63-
|
63+
|
6464

6565
error[E0308]: mismatched types
6666
--> $DIR/ref-pat-suggestions.rs:7:9
@@ -76,7 +76,7 @@ help: consider removing `&mut` from the pattern
7676
|
7777
LL - fn _f4(&&mut _a: &u32) {}
7878
LL + fn _f4(&_a: &u32) {}
79-
|
79+
|
8080

8181
error[E0308]: mismatched types
8282
--> $DIR/ref-pat-suggestions.rs:8:13
@@ -92,7 +92,7 @@ help: consider removing `&mut` from the pattern
9292
|
9393
LL - fn _f5(&mut &mut _a: &mut u32) {}
9494
LL + fn _f5(&mut _a: &mut u32) {}
95-
|
95+
|
9696

9797
error[E0308]: mismatched types
9898
--> $DIR/ref-pat-suggestions.rs:11:23
@@ -109,7 +109,7 @@ help: consider removing `&` from the pattern
109109
|
110110
LL - let _: fn(u32) = |&_a| ();
111111
LL + let _: fn(u32) = |_a| ();
112-
|
112+
|
113113

114114
error[E0308]: mismatched types
115115
--> $DIR/ref-pat-suggestions.rs:12:23
@@ -126,7 +126,7 @@ help: consider removing `&mut` from the pattern
126126
|
127127
LL - let _: fn(u32) = |&mut _a| ();
128128
LL + let _: fn(u32) = |_a| ();
129-
|
129+
|
130130

131131
error[E0308]: mismatched types
132132
--> $DIR/ref-pat-suggestions.rs:13:25
@@ -143,7 +143,7 @@ help: consider removing `&` from the pattern
143143
|
144144
LL - let _: fn(&u32) = |&&_a| ();
145145
LL + let _: fn(&u32) = |&_a| ();
146-
|
146+
|
147147

148148
error[E0308]: mismatched types
149149
--> $DIR/ref-pat-suggestions.rs:14:33
@@ -160,7 +160,7 @@ help: consider removing `&` from the pattern
160160
|
161161
LL - let _: fn(&mut u32) = |&mut &_a| ();
162162
LL + let _: fn(&mut u32) = |&mut _a| ();
163-
|
163+
|
164164

165165
error[E0308]: mismatched types
166166
--> $DIR/ref-pat-suggestions.rs:15:25
@@ -177,7 +177,7 @@ help: consider removing `&mut` from the pattern
177177
|
178178
LL - let _: fn(&u32) = |&&mut _a| ();
179179
LL + let _: fn(&u32) = |&_a| ();
180-
|
180+
|
181181

182182
error[E0308]: mismatched types
183183
--> $DIR/ref-pat-suggestions.rs:16:33
@@ -194,7 +194,7 @@ help: consider removing `&mut` from the pattern
194194
|
195195
LL - let _: fn(&mut u32) = |&mut &mut _a| ();
196196
LL + let _: fn(&mut u32) = |&mut _a| ();
197-
|
197+
|
198198

199199
error[E0308]: mismatched types
200200
--> $DIR/ref-pat-suggestions.rs:18:14
@@ -210,7 +210,7 @@ help: to take parameter `_a` by reference, move `&` to the type
210210
|
211211
LL - let _ = |&_a: u32| ();
212212
LL + let _ = |_a: &u32| ();
213-
|
213+
|
214214

215215
error[E0308]: mismatched types
216216
--> $DIR/ref-pat-suggestions.rs:19:14
@@ -226,7 +226,7 @@ help: to take parameter `_a` by reference, move `&mut` to the type
226226
|
227227
LL - let _ = |&mut _a: u32| ();
228228
LL + let _ = |_a: &mut u32| ();
229-
|
229+
|
230230

231231
error[E0308]: mismatched types
232232
--> $DIR/ref-pat-suggestions.rs:20:15
@@ -242,7 +242,7 @@ help: consider removing `&` from the pattern
242242
|
243243
LL - let _ = |&&_a: &u32| ();
244244
LL + let _ = |&_a: &u32| ();
245-
|
245+
|
246246

247247
error[E0308]: mismatched types
248248
--> $DIR/ref-pat-suggestions.rs:21:19
@@ -258,7 +258,7 @@ help: consider removing `&` from the pattern
258258
|
259259
LL - let _ = |&mut &_a: &mut u32| ();
260260
LL + let _ = |&mut _a: &mut u32| ();
261-
|
261+
|
262262

263263
error[E0308]: mismatched types
264264
--> $DIR/ref-pat-suggestions.rs:22:15
@@ -274,7 +274,7 @@ help: consider removing `&mut` from the pattern
274274
|
275275
LL - let _ = |&&mut _a: &u32| ();
276276
LL + let _ = |&_a: &u32| ();
277-
|
277+
|
278278

279279
error[E0308]: mismatched types
280280
--> $DIR/ref-pat-suggestions.rs:23:19
@@ -290,7 +290,7 @@ help: consider removing `&mut` from the pattern
290290
|
291291
LL - let _ = |&mut &mut _a: &mut u32| ();
292292
LL + let _ = |&mut _a: &mut u32| ();
293-
|
293+
|
294294

295295
error: aborting due to 18 previous errors
296296

src/test/ui/pattern/for-loop-bad-item.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ help: consider removing `&mut` from the pattern
1212
|
1313
LL - for ((_, _), (&mut c, _)) in &mut map {
1414
LL + for ((_, _), (c, _)) in &mut map {
15-
|
15+
|
1616

1717
error[E0308]: mismatched types
1818
--> $DIR/for-loop-bad-item.rs:14:14

src/test/ui/suggestions/match-ergonomics.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ help: consider removing `&` from the pattern
1212
|
1313
LL - [&v] => {},
1414
LL + [v] => {},
15-
|
15+
|
1616

1717
error[E0529]: expected an array or slice, found `Vec<i32>`
1818
--> $DIR/match-ergonomics.rs:8:9
@@ -44,7 +44,7 @@ help: consider removing `&` from the pattern
4444
|
4545
LL - &v => {},
4646
LL + v => {},
47-
|
47+
|
4848

4949
error[E0308]: mismatched types
5050
--> $DIR/match-ergonomics.rs:40:13
@@ -60,7 +60,7 @@ help: consider removing `&` from the pattern
6060
|
6161
LL - if let [&v] = &x[..] {}
6262
LL + if let [v] = &x[..] {}
63-
|
63+
|
6464

6565
error: aborting due to 5 previous errors
6666

src/tools/clippy/tests/ui/eprint_with_newline.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: use `eprintln!` instead
99
|
1010
LL - eprint!("Hello/n");
1111
LL + eprintln!("Hello");
12-
|
12+
|
1313

1414
error: using `eprint!()` with a format string that ends in a single newline
1515
--> $DIR/eprint_with_newline.rs:6:5
@@ -21,7 +21,7 @@ help: use `eprintln!` instead
2121
|
2222
LL - eprint!("Hello {}/n", "world");
2323
LL + eprintln!("Hello {}", "world");
24-
|
24+
|
2525

2626
error: using `eprint!()` with a format string that ends in a single newline
2727
--> $DIR/eprint_with_newline.rs:7:5
@@ -33,7 +33,7 @@ help: use `eprintln!` instead
3333
|
3434
LL - eprint!("Hello {} {}/n", "world", "#2");
3535
LL + eprintln!("Hello {} {}", "world", "#2");
36-
|
36+
|
3737

3838
error: using `eprint!()` with a format string that ends in a single newline
3939
--> $DIR/eprint_with_newline.rs:8:5
@@ -45,7 +45,7 @@ help: use `eprintln!` instead
4545
|
4646
LL - eprint!("{}/n", 1265);
4747
LL + eprintln!("{}", 1265);
48-
|
48+
|
4949

5050
error: using `eprint!()` with a format string that ends in a single newline
5151
--> $DIR/eprint_with_newline.rs:9:5
@@ -57,7 +57,7 @@ help: use `eprintln!` instead
5757
|
5858
LL - eprint!("/n");
5959
LL + eprintln!();
60-
|
60+
|
6161

6262
error: using `eprint!()` with a format string that ends in a single newline
6363
--> $DIR/eprint_with_newline.rs:28:5
@@ -69,7 +69,7 @@ help: use `eprintln!` instead
6969
|
7070
LL - eprint!("//n"); // should fail
7171
LL + eprintln!("/"); // should fail
72-
|
72+
|
7373

7474
error: using `eprint!()` with a format string that ends in a single newline
7575
--> $DIR/eprint_with_newline.rs:35:5
@@ -111,7 +111,7 @@ help: use `eprintln!` instead
111111
|
112112
LL - eprint!("/r/n"); //~ ERROR
113113
LL + eprintln!("/r"); //~ ERROR
114-
|
114+
|
115115

116116
error: using `eprint!()` with a format string that ends in a single newline
117117
--> $DIR/eprint_with_newline.rs:48:5
@@ -123,7 +123,7 @@ help: use `eprintln!` instead
123123
|
124124
LL - eprint!("foo/rbar/n") // ~ ERROR
125125
LL + eprintln!("foo/rbar") // ~ ERROR
126-
|
126+
|
127127

128128
error: aborting due to 10 previous errors
129129

src/tools/clippy/tests/ui/manual_split_once.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ help: remove the `iter` usages
9696
|
9797
LL - let l = iter.next().unwrap();
9898
LL +
99-
|
99+
|
100100
help: remove the `iter` usages
101101
|
102102
LL - let r = iter.next().unwrap();
103103
LL +
104-
|
104+
|
105105

106106
error: manual implementation of `split_once`
107107
--> $DIR/manual_split_once.rs:49:5
@@ -121,12 +121,12 @@ help: remove the `iter` usages
121121
|
122122
LL - let l = iter.next()?;
123123
LL +
124-
|
124+
|
125125
help: remove the `iter` usages
126126
|
127127
LL - let r = iter.next()?;
128128
LL +
129-
|
129+
|
130130

131131
error: manual implementation of `rsplit_once`
132132
--> $DIR/manual_split_once.rs:53:5
@@ -146,12 +146,12 @@ help: remove the `iter` usages
146146
|
147147
LL - let r = iter.next().unwrap();
148148
LL +
149-
|
149+
|
150150
help: remove the `iter` usages
151151
|
152152
LL - let l = iter.next().unwrap();
153153
LL +
154-
|
154+
|
155155

156156
error: manual implementation of `rsplit_once`
157157
--> $DIR/manual_split_once.rs:57:5
@@ -171,12 +171,12 @@ help: remove the `iter` usages
171171
|
172172
LL - let r = iter.next()?;
173173
LL +
174-
|
174+
|
175175
help: remove the `iter` usages
176176
|
177177
LL - let l = iter.next()?;
178178
LL +
179-
|
179+
|
180180

181181
error: manual implementation of `split_once`
182182
--> $DIR/manual_split_once.rs:142:13
@@ -202,12 +202,12 @@ help: remove the `iter` usages
202202
|
203203
LL - let a = iter.next().unwrap();
204204
LL +
205-
|
205+
|
206206
help: remove the `iter` usages
207207
|
208208
LL - let b = iter.next().unwrap();
209209
LL +
210-
|
210+
|
211211

212212
error: aborting due to 19 previous errors
213213

0 commit comments

Comments
 (0)