diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 13:51:59 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-10 08:54:22 +1000 |
| commit | baa16d24715abeed857202ad917a0f05e364b8a5 (patch) | |
| tree | 098344c522bd611cc6b15d5e7fc39822c8d4ff09 | |
| parent | 48064d44982d505412d9328004ed5cc67cb5f210 (diff) | |
| download | rust-baa16d24715abeed857202ad917a0f05e364b8a5.tar.gz rust-baa16d24715abeed857202ad917a0f05e364b8a5.zip | |
Clarify a comment.
The "as" is equivalent to "because", but I originally read it more like "when", which was confusing.
| -rw-r--r-- | compiler/rustc_mir_transform/src/gvn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs index d514664f368..0b78affc31c 100644 --- a/compiler/rustc_mir_transform/src/gvn.rs +++ b/compiler/rustc_mir_transform/src/gvn.rs @@ -122,7 +122,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN { let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id()); let ssa = SsaLocals::new(tcx, body, param_env); - // Clone dominators as we need them while mutating the body. + // Clone dominators because we need them while mutating the body. let dominators = body.basic_blocks.dominators().clone(); let mut state = VnState::new(tcx, body, param_env, &ssa, &dominators, &body.local_decls); |
