Skip to content

Commit 10c7643

Browse files
committed
Small style improvement in gvn.rs
1 parent 0c96061 commit 10c7643

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-2
lines changed

compiler/rustc_mir_transform/src/gvn.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
330330
let is_sized = !self.feature_unsized_locals
331331
|| self.local_decls[local].ty.is_sized(self.tcx, self.param_env);
332332
if is_sized {
333-
self.rev_locals.ensure_contains_elem(value, SmallVec::new);
334-
self.rev_locals[value].push(local);
333+
self.rev_locals.ensure_contains_elem(value, SmallVec::new).push(local);
335334
}
336335
}
337336

0 commit comments

Comments
 (0)