1
Fork 0

Rollup merge of #103960 - AndyJado:var_path_only_diag, r=davidtwco

piece of diagnostic migrate

r? `@davidtwco`
This commit is contained in:
Manish Goregaokar 2022-11-11 12:12:30 -05:00 committed by GitHub
commit a13809ae51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 262 additions and 61 deletions

View file

@ -1957,6 +1957,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",