Rollup merge of #126392 - WaffleLapkin:gvn-style-ish-changes, r=scottmcm

Small style improvement in `gvn.rs`

Allowed by https://github.com/rust-lang/rust/pull/110451#discussion_r1169298319. :P

r? ``@scottmcm``
This commit is contained in:
Matthias Krüger 2024-06-13 22:55:48 +02:00 committed by GitHub
commit 424fe2c878
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}