Skip to content

Commit

Permalink
review comment: suggestion message wording
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Aug 14, 2020
1 parent 360388b commit 4ecdec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/librustc_resolve/late/diagnostics.rs
Expand Up @@ -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,
);
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/issues/issue-5099.stderr
Expand Up @@ -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 {
| ^^^^^
Expand All @@ -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) {
| ^^^^^^
Expand Down

0 comments on commit 4ecdec1

Please sign in to comment.