Skip to content

Commit 4470b1c

Browse files
committed
mark fix as MaybeIncorrect
1 parent 912691b commit 4470b1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3020,7 +3020,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
30203020
span,
30213021
"did you mean",
30223022
"self".to_string(),
3023-
Applicability::MachineApplicable,
3023+
Applicability::MaybeIncorrect,
30243024
);
30253025
}
30263026

src/test/ui/self/suggest-self.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | this.x
55
| ^^^^
66
| |
77
| not found in this scope
8-
| help: do you mean: `self`
8+
| help: did you mean: `self`
99

1010
error[E0425]: cannot find value `this` in this scope
1111
--> $DIR/suggest-self.rs:36:9
@@ -14,7 +14,7 @@ LL | this.foo()
1414
| ^^^^
1515
| |
1616
| not found in this scope
17-
| help: do you mean: `self`
17+
| help: did you mean: `self`
1818

1919
error[E0425]: cannot find value `my` in this scope
2020
--> $DIR/suggest-self.rs:41:9
@@ -23,7 +23,7 @@ LL | my.bar()
2323
| ^^
2424
| |
2525
| not found in this scope
26-
| help: do you mean: `self`
26+
| help: did you mean: `self`
2727

2828
error: aborting due to 3 previous errors
2929

0 commit comments

Comments
 (0)