Skip to content

Commit 64d0f48

Browse files
committed
Remove unsound-mir-opts for simplify_aggregate_to_copy
1 parent a7c8edd commit 64d0f48

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

compiler/rustc_mir_transform/src/gvn.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
10771077
}
10781078
}
10791079

1080-
// unsound: https://github.com/rust-lang/rust/issues/132353
1081-
if tcx.sess.opts.unstable_opts.unsound_mir_opts
1082-
&& let AggregateTy::Def(_, _) = ty
1080+
if let AggregateTy::Def(_, _) = ty
10831081
&& let Some(value) =
10841082
self.simplify_aggregate_to_copy(rvalue, location, &fields, variant_index)
10851083
{

0 commit comments

Comments
 (0)