Stabilize arbitrary_enum_discriminant, take 2
This commit is contained in:
parent
eecde5850c
commit
988e75bb65
22 changed files with 12 additions and 221 deletions
|
@ -1180,7 +1180,7 @@ fn check_enum<'tcx>(tcx: TyCtxt<'tcx>, vs: &'tcx [hir::Variant<'tcx>], def_id: L
|
|||
}
|
||||
}
|
||||
|
||||
if tcx.adt_def(def_id).repr().int.is_none() && tcx.features().arbitrary_enum_discriminant {
|
||||
if tcx.adt_def(def_id).repr().int.is_none() {
|
||||
let is_unit = |var: &hir::Variant<'_>| matches!(var.data, hir::VariantData::Unit(..));
|
||||
|
||||
let has_disr = |var: &hir::Variant<'_>| var.disr_expr.is_some();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue