We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d615e6 commit 1a0f173Copy full SHA for 1a0f173
compiler/rustc_mir_transform/src/const_prop.rs
@@ -806,7 +806,7 @@ impl<'tcx> Visitor<'tcx> for ConstPropagator<'_, 'tcx> {
806
// This loop can get very hot for some bodies: it check each local in each bb.
807
// To avoid this quadratic behaviour, we only clear the locals that were modified inside
808
// the current block.
809
- // The order in which we remove constness does not matter.
+ // The order in which we remove consts does not matter.
810
#[allow(rustc::potential_query_instability)]
811
for local in written_only_inside_own_block_locals.drain() {
812
debug_assert_eq!(
0 commit comments