Skip to content

Commit

Permalink
Rollup merge of rust-lang#126392 - WaffleLapkin:gvn-style-ish-changes…
Browse files Browse the repository at this point in the history
…, r=scottmcm

Small style improvement in `gvn.rs`

Allowed by rust-lang#110451 (comment). :P

r? ```@scottmcm```
  • Loading branch information
workingjubilee committed Jun 13, 2024
2 parents 3475261 + 10c7643 commit fead76a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_mir_transform/src/gvn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
let is_sized = !self.feature_unsized_locals
|| self.local_decls[local].ty.is_sized(self.tcx, self.param_env);
if is_sized {
self.rev_locals.ensure_contains_elem(value, SmallVec::new);
self.rev_locals[value].push(local);
self.rev_locals.ensure_contains_elem(value, SmallVec::new).push(local);
}
}

Expand Down

0 comments on commit fead76a

Please sign in to comment.