var_subdiag refinement
trim old
This commit is contained in:
parent
a0cee0ab90
commit
abf259cc54
5 changed files with 80 additions and 57 deletions
|
@ -1898,6 +1898,7 @@ impl BorrowKind {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: won't be used after diagnostic migration
|
||||
pub fn describe_mutability(&self) -> &str {
|
||||
match *self {
|
||||
BorrowKind::Shared | BorrowKind::Shallow | BorrowKind::Unique => "immutable",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue