Skip to content

Commit baa16d2

Browse files
committed
Clarify a comment.
The "as" is equivalent to "because", but I originally read it more like "when", which was confusing.
1 parent 48064d4 commit baa16d2

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/gvn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
122122

123123
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
124124
let ssa = SsaLocals::new(tcx, body, param_env);
125-
// Clone dominators as we need them while mutating the body.
125+
// Clone dominators because we need them while mutating the body.
126126
let dominators = body.basic_blocks.dominators().clone();
127127

128128
let mut state = VnState::new(tcx, body, param_env, &ssa, &dominators, &body.local_decls);

0 commit comments

Comments
 (0)