Update compiler/stable_mir/src/mir/body.rs

Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
Celina G. Val 2023-12-06 17:48:38 -08:00 committed by GitHub
parent e16ebdbb06
commit 77d7e44573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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