Skip to content

Commit 9af9674

Browse files
Update ui tests for leading-underscore suggestion
1 parent 08fe940 commit 9af9674

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/ui/macros/expand-full-no-resolution.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | macro_rules! _a {
77
LL | format_args!(a!());
88
| ^
99
|
10-
help: a macro with a similar name exists, consider renaming `_a` into `a`
10+
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
1111
|
1212
LL | macro_rules! a {
1313
| ~
@@ -21,7 +21,7 @@ LL | macro_rules! _a {
2121
LL | env!(a!());
2222
| ^
2323
|
24-
help: a macro with a similar name exists, consider renaming `_a` into `a`
24+
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
2525
|
2626
LL | macro_rules! a {
2727
| ~

tests/ui/suggestions/silenced-binding-typo.stderr

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
error[E0425]: cannot find value `x` in this scope
22
--> $DIR/silenced-binding-typo.rs:4:14
33
|
4+
LL | let _x = 42;
5+
| -- `_x` defined here
46
LL | let _y = x;
57
| ^
68
|
7-
help: a local variable with a similar name exists, consider renaming `_x` into `x`
9+
help: the leading underscore in `_x` marks it as unused, consider renaming it to `x`
810
|
911
LL | let x = 42;
1012
| ~

0 commit comments

Comments
 (0)