1
Fork 0

Auto merge of #107449 - saethlin:enable-copyprop, r=oli-obk

Enable CopyProp

r? `@tmiasko`

`@rustbot` label +A-mir-opt
This commit is contained in:
bors 2023-02-16 03:44:37 +00:00
commit 639377ed73
18 changed files with 342 additions and 267 deletions

View file

@ -406,6 +406,7 @@ impl<'tcx> AdtDef<'tcx> {
}
/// Return the index of `VariantDef` given a variant id.
#[inline]
pub fn variant_index_with_id(self, vid: DefId) -> VariantIdx {
self.variants()
.iter_enumerated()