Skip to content

Commit 1a0f173

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/const_prop.rs

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

0 commit comments

Comments
 (0)