1
Fork 0

var_subdiag refinement

trim old
This commit is contained in:
AndyJado 2022-11-09 20:56:28 +08:00
parent a0cee0ab90
commit abf259cc54
5 changed files with 80 additions and 57 deletions

View file

@ -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",