review comment: suggestion message wording
This commit is contained in:
parent
360388b160
commit
4ecdec1fb6
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
| ^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue