Skip to content

Commit 9d615e6

Browse files
Enseliccjgillot
andauthored
Commit suggestion (will squash later)
Co-authored-by: Camille Gillot <[email protected]>
1 parent deda198 commit 9d615e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/const_prop_lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ impl<'tcx> Visitor<'tcx> for ConstPropagator<'_, 'tcx> {
670670
// This loop can get very hot for some bodies: it check each local in each bb.
671671
// To avoid this quadratic behaviour, we only clear the locals that were modified inside
672672
// the current block.
673-
// The order in which we remove constness does not matter.
673+
// The order in which we remove consts does not matter.
674674
#[allow(rustc::potential_query_instability)]
675675
for local in written_only_inside_own_block_locals.drain() {
676676
debug_assert_eq!(

0 commit comments

Comments
 (0)