From 4470b1cec0a5b8eb580a8cce96009a46f54bf2c2 Mon Sep 17 00:00:00 2001 From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Mon, 1 Oct 2018 09:08:26 +0800 Subject: [PATCH] mark fix as MaybeIncorrect --- src/librustc_resolve/lib.rs | 2 +- src/test/ui/self/suggest-self.stderr | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 99ce351cbcf7..09ac24a33faf 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 04d7622e3c80..9035dc0fe7d2 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