Rollup merge of #103960 - AndyJado:var_path_only_diag, r=davidtwco
piece of diagnostic migrate r? `@davidtwco`
This commit is contained in:
commit
a13809ae51
32 changed files with 262 additions and 61 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue