Change from label to suggestion.

This commit changes the label to a maybe incorrect suggestion for better
integration with RLS.
This commit is contained in:
David Wood 2018-10-05 14:30:45 +02:00
parent f8c1b0cd5b
commit 9e49ac067f
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154
3 changed files with 10 additions and 7 deletions

View file

@ -2,7 +2,7 @@ error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` referenc
--> $DIR/issue-38147-2.rs:17:9
|
LL | s: &'a String
| ------------- use `&'a mut String` here to make mutable
| ---------- help: consider changing this to be mutable: `&'a mut String`
...
LL | self.s.push('x');
| ^^^^^^ cannot borrow as mutable

View file

@ -2,7 +2,7 @@ error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` referenc
--> $DIR/issue-38147-3.rs:17:9
|
LL | s: &'a String
| ------------- use `&'a mut String` here to make mutable
| ---------- help: consider changing this to be mutable: `&'a mut String`
...
LL | self.s.push('x');
| ^^^^^^ cannot borrow as mutable