Remove unsound-mir-opts for simplify_aggregate_to_copy

This commit is contained in:
dianqk 2025-03-24 16:55:24 +08:00
parent 1787789fe5
commit ac7dd7a1b3
No known key found for this signature in database
11 changed files with 65 additions and 71 deletions

View file

@ -1098,9 +1098,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
}
}
// unsound: https://github.com/rust-lang/rust/issues/132353
if tcx.sess.opts.unstable_opts.unsound_mir_opts
&& let AggregateTy::Def(_, _) = ty
if let AggregateTy::Def(_, _) = ty
&& let Some(value) =
self.simplify_aggregate_to_copy(rvalue, location, &fields, variant_index)
{