Remove unsound-mir-opts
for simplify_aggregate_to_copy
This commit is contained in:
parent
1787789fe5
commit
ac7dd7a1b3
11 changed files with 65 additions and 71 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue