Remove unnamed field feature
This commit is contained in:
parent
8dd5cd0bc1
commit
e3a0da1863
40 changed files with 30 additions and 3209 deletions
|
@ -259,12 +259,8 @@ impl AdtDefData {
|
|||
kind: AdtKind,
|
||||
variants: IndexVec<VariantIdx, VariantDef>,
|
||||
repr: ReprOptions,
|
||||
is_anonymous: bool,
|
||||
) -> Self {
|
||||
debug!(
|
||||
"AdtDef::new({:?}, {:?}, {:?}, {:?}, {:?})",
|
||||
did, kind, variants, repr, is_anonymous
|
||||
);
|
||||
debug!("AdtDef::new({:?}, {:?}, {:?}, {:?})", did, kind, variants, repr);
|
||||
let mut flags = AdtFlags::NO_ADT_FLAGS;
|
||||
|
||||
if kind == AdtKind::Enum && tcx.has_attr(did, sym::non_exhaustive) {
|
||||
|
@ -297,9 +293,6 @@ impl AdtDefData {
|
|||
if tcx.is_lang_item(did, LangItem::UnsafeCell) {
|
||||
flags |= AdtFlags::IS_UNSAFE_CELL;
|
||||
}
|
||||
if is_anonymous {
|
||||
flags |= AdtFlags::IS_ANONYMOUS;
|
||||
}
|
||||
|
||||
AdtDefData { did, variants, flags, repr }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue