Skip to content

Commit

Permalink
Update ui tests for leading-underscore suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasscharenbroch committed May 31, 2024
1 parent 08fe940 commit 9af9674
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ui/macros/expand-full-no-resolution.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LL | macro_rules! _a {
LL | format_args!(a!());
| ^
|
help: a macro with a similar name exists, consider renaming `_a` into `a`
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
|
LL | macro_rules! a {
| ~
Expand All @@ -21,7 +21,7 @@ LL | macro_rules! _a {
LL | env!(a!());
| ^
|
help: a macro with a similar name exists, consider renaming `_a` into `a`
help: the leading underscore in `_a` marks it as unused, consider renaming it to `a`
|
LL | macro_rules! a {
| ~
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/suggestions/silenced-binding-typo.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
error[E0425]: cannot find value `x` in this scope
--> $DIR/silenced-binding-typo.rs:4:14
|
LL | let _x = 42;
| -- `_x` defined here
LL | let _y = x;
| ^
|
help: a local variable with a similar name exists, consider renaming `_x` into `x`
help: the leading underscore in `_x` marks it as unused, consider renaming it to `x`
|
LL | let x = 42;
| ~
Expand Down

0 comments on commit 9af9674

Please sign in to comment.