review comment: suggestion message wording

This commit is contained in:
Esteban Küber 2020-08-14 10:16:34 -07:00
parent 360388b160
commit 4ecdec1fb6
2 changed files with 4 additions and 3 deletions

View File

@ -202,7 +202,8 @@ impl<'a> LateResolutionVisitor<'a, '_, '_> {
};
err.span_suggestion_verbose(
span,
"you are also missing a `self` receiver argument",
"if you meant to use `self`, you are also missing a `self` receiver \
argument",
sugg.to_string(),
Applicability::MaybeIncorrect,
);

View File

@ -8,7 +8,7 @@ help: you might have meant to use `self` here instead
|
LL | self.a
| ^^^^
help: you are also missing a `self` receiver argument
help: if you meant to use `self`, you are also missing a `self` receiver argument
|
LL | fn a(&self) -> A {
| ^^^^^
@ -23,7 +23,7 @@ help: you might have meant to use `self` here instead
|
LL | self.b(x);
| ^^^^
help: you are also missing a `self` receiver argument
help: if you meant to use `self`, you are also missing a `self` receiver argument
|
LL | fn b(&self, x: i32) {
| ^^^^^^