diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-07 14:01:12 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-24 15:30:17 +0000 |
| commit | 2dbbec34abbbfa83e73d7ed52cfc02258fa56b2d (patch) | |
| tree | d4642bfa59834c36df90787fe4123a85a5e8e0fd | |
| parent | 7c669562b19cb451639b2a7329f4c984170d73be (diff) | |
| download | rust-2dbbec34abbbfa83e73d7ed52cfc02258fa56b2d.tar.gz rust-2dbbec34abbbfa83e73d7ed52cfc02258fa56b2d.zip | |
Update documentation.
| -rw-r--r-- | compiler/rustc_mir_build/src/build/matches/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_build/src/build/matches/mod.rs b/compiler/rustc_mir_build/src/build/matches/mod.rs index 3d057b9b845..8997161897f 100644 --- a/compiler/rustc_mir_build/src/build/matches/mod.rs +++ b/compiler/rustc_mir_build/src/build/matches/mod.rs @@ -157,7 +157,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { /// [ 0. Pre-match ] /// | /// [ 1. Evaluate Scrutinee (expression being matched on) ] - /// [ (fake read of scrutinee) ] + /// [ (PlaceMention of scrutinee) ] /// | /// [ 2. Decision tree -- check discriminants ] <--------+ /// | | @@ -184,7 +184,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { /// /// We generate MIR in the following steps: /// - /// 1. Evaluate the scrutinee and add the fake read of it ([Builder::lower_scrutinee]). + /// 1. Evaluate the scrutinee and add the PlaceMention of it ([Builder::lower_scrutinee]). /// 2. Create the decision tree ([Builder::lower_match_tree]). /// 3. Determine the fake borrows that are needed from the places that were /// matched against and create the required temporaries for them @@ -239,7 +239,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { ) } - /// Evaluate the scrutinee and add the fake read of it. + /// Evaluate the scrutinee and add the PlaceMention for it. fn lower_scrutinee( &mut self, mut block: BasicBlock, |
