diff options
| author | lcnr <rust@lcnr.de> | 2023-11-08 13:42:30 +0100 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-11-08 22:55:28 +0100 | 
| commit | 992d93f687c75f8f5ee69e0fb43bff509c7c9cb8 (patch) | |
| tree | fafe7bed77e228d24ab61ce4b1132b8f8bb7268d /compiler/rustc_middle/src/mir/syntax.rs | |
| parent | a42eca42df821a1d6e74a931195a00258f94bd6a (diff) | |
| download | rust-992d93f687c75f8f5ee69e0fb43bff509c7c9cb8.tar.gz rust-992d93f687c75f8f5ee69e0fb43bff509c7c9cb8.zip | |
rename `BorrowKind::Shallow` to `Fake`
also adds some comments
Diffstat (limited to 'compiler/rustc_middle/src/mir/syntax.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/syntax.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index b6543affc6d..7b0f27f9b34 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -123,7 +123,7 @@ pub enum AnalysisPhase { /// * [`TerminatorKind::FalseEdge`] /// * [`StatementKind::FakeRead`] /// * [`StatementKind::AscribeUserType`] - /// * [`Rvalue::Ref`] with `BorrowKind::Shallow` + /// * [`Rvalue::Ref`] with `BorrowKind::Fake` /// /// Furthermore, `Deref` projections must be the first projection within any place (if they /// appear at all) @@ -182,7 +182,7 @@ pub enum BorrowKind { /// should not prevent `if let None = x { ... }`, for example, because the /// mutating `(*x as Some).0` can't affect the discriminant of `x`. /// We can also report errors with this kind of borrow differently. - Shallow, + Fake, /// Data is mutable and not aliasable. Mut { kind: MutBorrowKind }, | 
