about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir/statement.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-10 00:34:47 +0000
committerbors <bors@rust-lang.org>2023-11-10 00:34:47 +0000
commitfbf0758499f6786502ed3b03ec355c4c87dfbe65 (patch)
treedf72f61c38f72361f63832d1e963849e21087339 /compiler/rustc_middle/src/mir/statement.rs
parentefc300e5460fd1ed057b882e9e29adfdd217eeef (diff)
parent015d4b6a5a6968fe082e3d00422565942dd5898c (diff)
downloadrust-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.rs4
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
             }