diff options
| author | bors <bors@rust-lang.org> | 2023-11-10 00:34:47 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-10 00:34:47 +0000 | 
| commit | fbf0758499f6786502ed3b03ec355c4c87dfbe65 (patch) | |
| tree | df72f61c38f72361f63832d1e963849e21087339 /compiler/rustc_middle/src/mir/statement.rs | |
| parent | efc300e5460fd1ed057b882e9e29adfdd217eeef (diff) | |
| parent | 015d4b6a5a6968fe082e3d00422565942dd5898c (diff) | |
| download | rust-fbf0758499f6786502ed3b03ec355c4c87dfbe65.tar.gz rust-fbf0758499f6786502ed3b03ec355c4c87dfbe65.zip | |
Auto merge of #117764 - cuviper:beta-next, r=cuviper
[beta] backports - dropck_outlives check whether generator witness needs_drop #117134 - Make sure that predicates with unmentioned bound vars are still considered global in the old solver #117589 - Check binders with bound vars for global bounds that don't hold #117637 - generator layout: ignore fake borrows #117712 r? ghost
Diffstat (limited to 'compiler/rustc_middle/src/mir/statement.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/statement.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_middle/src/mir/statement.rs b/compiler/rustc_middle/src/mir/statement.rs index 5ac108bc829..b308fb51993 100644 --- a/compiler/rustc_middle/src/mir/statement.rs +++ b/compiler/rustc_middle/src/mir/statement.rs @@ -443,7 +443,7 @@ impl<'tcx> Rvalue<'tcx> { impl BorrowKind { pub fn mutability(&self) -> Mutability { match *self { - BorrowKind::Shared | BorrowKind::Shallow => Mutability::Not, + BorrowKind::Shared | BorrowKind::Fake => Mutability::Not, BorrowKind::Mut { .. } => Mutability::Mut, } } @@ -451,7 +451,7 @@ impl BorrowKind { pub fn allows_two_phase_borrow(&self) -> bool { match *self { BorrowKind::Shared - | BorrowKind::Shallow + | BorrowKind::Fake | BorrowKind::Mut { kind: MutBorrowKind::Default | MutBorrowKind::ClosureCapture } => { false } | 
