diff options
| author | lcnr <rust@lcnr.de> | 2023-11-08 13:42:30 +0100 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2023-11-09 11:56:13 -0800 |
| commit | f267d5be7799651774ca0c18ec67cefacbcf8bf4 (patch) | |
| tree | dd322b41b21bcc151c83aee7d5867b9367b39d9c /compiler/rustc_borrowck/src/def_use.rs | |
| parent | 9425991f0abe1cace3ccd95770a1220a5970436a (diff) | |
| download | rust-f267d5be7799651774ca0c18ec67cefacbcf8bf4.tar.gz rust-f267d5be7799651774ca0c18ec67cefacbcf8bf4.zip | |
rename `BorrowKind::Shallow` to `Fake`
also adds some comments (cherry picked from commit 992d93f687c75f8f5ee69e0fb43bff509c7c9cb8)
Diffstat (limited to 'compiler/rustc_borrowck/src/def_use.rs')
| -rw-r--r-- | compiler/rustc_borrowck/src/def_use.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/def_use.rs b/compiler/rustc_borrowck/src/def_use.rs index b719a610e07..95db9374225 100644 --- a/compiler/rustc_borrowck/src/def_use.rs +++ b/compiler/rustc_borrowck/src/def_use.rs @@ -49,7 +49,7 @@ pub fn categorize(context: PlaceContext) -> Option<DefUse> { // cross suspension points so this behavior is unproblematic. PlaceContext::MutatingUse(MutatingUseContext::Borrow) | PlaceContext::NonMutatingUse(NonMutatingUseContext::SharedBorrow) | - PlaceContext::NonMutatingUse(NonMutatingUseContext::ShallowBorrow) | + PlaceContext::NonMutatingUse(NonMutatingUseContext::FakeBorrow) | // `PlaceMention` and `AscribeUserType` both evaluate the place, which must not // contain dangling references. |
