mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Update compiler/stable_mir/src/mir/body.rs
Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
parent
e16ebdbb06
commit
77d7e44573
@ -813,7 +813,7 @@ impl BorrowKind {
|
||||
match self {
|
||||
BorrowKind::Mut { .. } => Mutability::Mut,
|
||||
BorrowKind::Shared => Mutability::Not,
|
||||
// There's no type corresponding to a shallow borrow, so use `&` as an approximation.
|
||||
// FIXME: There's no type corresponding to a shallow borrow, so use `&` as an approximation.
|
||||
BorrowKind::Fake => Mutability::Not,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user