about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_resolve/lib.rs2
-rw-r--r--src/test/ui/self/suggest-self.stderr6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index 99ce351cbcf..09ac24a33fa 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -3020,7 +3020,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
                     span,
                     "did you mean",
                     "self".to_string(),
-                    Applicability::MachineApplicable,
+                    Applicability::MaybeIncorrect,
                 );
             }
 
diff --git a/src/test/ui/self/suggest-self.stderr b/src/test/ui/self/suggest-self.stderr
index 04d7622e3c8..9035dc0fe7d 100644
--- a/src/test/ui/self/suggest-self.stderr
+++ b/src/test/ui/self/suggest-self.stderr
@@ -5,7 +5,7 @@ LL |         this.x
    |         ^^^^
    |         |
    |         not found in this scope
-   |         help: do you mean: `self`
+   |         help: did you mean: `self`
 
 error[E0425]: cannot find value `this` in this scope
   --> $DIR/suggest-self.rs:36:9
@@ -14,7 +14,7 @@ LL |         this.foo()
    |         ^^^^
    |         |
    |         not found in this scope
-   |         help: do you mean: `self`
+   |         help: did you mean: `self`
 
 error[E0425]: cannot find value `my` in this scope
   --> $DIR/suggest-self.rs:41:9
@@ -23,7 +23,7 @@ LL |         my.bar()
    |         ^^
    |         |
    |         not found in this scope
-   |         help: do you mean: `self`
+   |         help: did you mean: `self`
 
 error: aborting due to 3 previous errors