Skip to content

Commit 2dbbec3

Browse files
committed
Update documentation.
1 parent 7c66956 commit 2dbbec3

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_mir_build/src/build/matches

1 file changed

+3
-3
lines changed

compiler/rustc_mir_build/src/build/matches/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
157157
/// [ 0. Pre-match ]
158158
/// |
159159
/// [ 1. Evaluate Scrutinee (expression being matched on) ]
160-
/// [ (fake read of scrutinee) ]
160+
/// [ (PlaceMention of scrutinee) ]
161161
/// |
162162
/// [ 2. Decision tree -- check discriminants ] <--------+
163163
/// | |
@@ -184,7 +184,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
184184
///
185185
/// We generate MIR in the following steps:
186186
///
187-
/// 1. Evaluate the scrutinee and add the fake read of it ([Builder::lower_scrutinee]).
187+
/// 1. Evaluate the scrutinee and add the PlaceMention of it ([Builder::lower_scrutinee]).
188188
/// 2. Create the decision tree ([Builder::lower_match_tree]).
189189
/// 3. Determine the fake borrows that are needed from the places that were
190190
/// matched against and create the required temporaries for them
@@ -239,7 +239,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
239239
)
240240
}
241241

242-
/// Evaluate the scrutinee and add the fake read of it.
242+
/// Evaluate the scrutinee and add the PlaceMention for it.
243243
fn lower_scrutinee(
244244
&mut self,
245245
mut block: BasicBlock,

0 commit comments

Comments
 (0)