Skip to content

Commit

Permalink
Commit suggestion (will squash later)
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
  • Loading branch information
Enselic and cjgillot committed Dec 28, 2023
1 parent 9d615e6 commit 1a0f173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/const_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ impl<'tcx> Visitor<'tcx> for ConstPropagator<'_, 'tcx> {
// This loop can get very hot for some bodies: it check each local in each bb.
// To avoid this quadratic behaviour, we only clear the locals that were modified inside
// the current block.
// The order in which we remove constness does not matter.
// The order in which we remove consts does not matter.
#[allow(rustc::potential_query_instability)]
for local in written_only_inside_own_block_locals.drain() {
debug_assert_eq!(
Expand Down

0 comments on commit 1a0f173

Please sign in to comment.