Auto merge of #107449 - saethlin:enable-copyprop, r=oli-obk
Enable CopyProp r? `@tmiasko` `@rustbot` label +A-mir-opt
This commit is contained in:
commit
639377ed73
18 changed files with 342 additions and 267 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue