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