Skip to content

Commit c020e45

Browse files
author
Iain Brandram-Adams
committed
Update stderr to match, and reinforce comments
1 parent f663a21 commit c020e45

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed

tests/ui/blacklisted_name.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ fn main() {
1414
let foo = 42;
1515
let baz = 42;
1616
let quux = 42;
17-
// Unlike these others, `bar` is considered an acceptable name to use.
17+
// Unlike these others, `bar` is actually considered an acceptable name.
18+
// Among many other legitimate uses, bar commonly refers to a period of time in music.
1819
// See https://github.com/rust-lang/rust-clippy/issues/5225.
20+
let bar = 42;
1921

2022
let food = 42;
2123
let foodstuffs = 42;

tests/ui/blacklisted_name.stderr

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,77 +12,77 @@ error: use of a blacklisted/placeholder name `foo`
1212
LL | let foo = 42;
1313
| ^^^
1414

15-
error: use of a blacklisted/placeholder name `bar`
15+
error: use of a blacklisted/placeholder name `baz`
1616
--> $DIR/blacklisted_name.rs:15:9
1717
|
18-
LL | let bar = 42;
18+
LL | let baz = 42;
1919
| ^^^
2020

21-
error: use of a blacklisted/placeholder name `baz`
21+
error: use of a blacklisted/placeholder name `quux`
2222
--> $DIR/blacklisted_name.rs:16:9
2323
|
24-
LL | let baz = 42;
25-
| ^^^
24+
LL | let quux = 42;
25+
| ^^^^
2626

2727
error: use of a blacklisted/placeholder name `foo`
28-
--> $DIR/blacklisted_name.rs:22:10
28+
--> $DIR/blacklisted_name.rs:27:10
2929
|
30-
LL | (foo, Some(bar), baz @ Some(_)) => (),
30+
LL | (foo, Some(baz), quux @ Some(_)) => (),
3131
| ^^^
3232

33-
error: use of a blacklisted/placeholder name `bar`
34-
--> $DIR/blacklisted_name.rs:22:20
33+
error: use of a blacklisted/placeholder name `baz`
34+
--> $DIR/blacklisted_name.rs:27:20
3535
|
36-
LL | (foo, Some(bar), baz @ Some(_)) => (),
36+
LL | (foo, Some(baz), quux @ Some(_)) => (),
3737
| ^^^
3838

39-
error: use of a blacklisted/placeholder name `baz`
40-
--> $DIR/blacklisted_name.rs:22:26
39+
error: use of a blacklisted/placeholder name `quux`
40+
--> $DIR/blacklisted_name.rs:27:26
4141
|
42-
LL | (foo, Some(bar), baz @ Some(_)) => (),
43-
| ^^^
42+
LL | (foo, Some(baz), quux @ Some(_)) => (),
43+
| ^^^^
4444

4545
error: use of a blacklisted/placeholder name `foo`
46-
--> $DIR/blacklisted_name.rs:27:19
46+
--> $DIR/blacklisted_name.rs:32:19
4747
|
4848
LL | fn issue_1647(mut foo: u8) {
4949
| ^^^
5050

51-
error: use of a blacklisted/placeholder name `bar`
52-
--> $DIR/blacklisted_name.rs:28:13
51+
error: use of a blacklisted/placeholder name `baz`
52+
--> $DIR/blacklisted_name.rs:33:13
5353
|
54-
LL | let mut bar = 0;
54+
LL | let mut baz = 0;
5555
| ^^^
5656

57-
error: use of a blacklisted/placeholder name `baz`
58-
--> $DIR/blacklisted_name.rs:29:21
57+
error: use of a blacklisted/placeholder name `quux`
58+
--> $DIR/blacklisted_name.rs:34:21
5959
|
60-
LL | if let Some(mut baz) = Some(42) {}
61-
| ^^^
60+
LL | if let Some(mut quux) = Some(42) {}
61+
| ^^^^
6262

63-
error: use of a blacklisted/placeholder name `bar`
64-
--> $DIR/blacklisted_name.rs:33:13
63+
error: use of a blacklisted/placeholder name `baz`
64+
--> $DIR/blacklisted_name.rs:38:13
6565
|
66-
LL | let ref bar = 0;
66+
LL | let ref baz = 0;
6767
| ^^^
6868

69-
error: use of a blacklisted/placeholder name `baz`
70-
--> $DIR/blacklisted_name.rs:34:21
69+
error: use of a blacklisted/placeholder name `quux`
70+
--> $DIR/blacklisted_name.rs:39:21
7171
|
72-
LL | if let Some(ref baz) = Some(42) {}
73-
| ^^^
72+
LL | if let Some(ref quux) = Some(42) {}
73+
| ^^^^
7474

75-
error: use of a blacklisted/placeholder name `bar`
76-
--> $DIR/blacklisted_name.rs:38:17
75+
error: use of a blacklisted/placeholder name `baz`
76+
--> $DIR/blacklisted_name.rs:43:17
7777
|
78-
LL | let ref mut bar = 0;
78+
LL | let ref mut baz = 0;
7979
| ^^^
8080

81-
error: use of a blacklisted/placeholder name `baz`
82-
--> $DIR/blacklisted_name.rs:39:25
81+
error: use of a blacklisted/placeholder name `quux`
82+
--> $DIR/blacklisted_name.rs:44:25
8383
|
84-
LL | if let Some(ref mut baz) = Some(42) {}
85-
| ^^^
84+
LL | if let Some(ref mut quux) = Some(42) {}
85+
| ^^^^
8686

8787
error: aborting due to 14 previous errors
8888

0 commit comments

Comments
 (0)