Revert "Rollup merge of #126315 - mu001999-contrib:fix/126289, r=petrochenkov"
This reverts commit977c5fd419
, reversing changes made to24c94f0e4f
.
This commit is contained in:
parent
22da616245
commit
d29818c9f5
2 changed files with 1 additions and 34 deletions
|
@ -923,7 +923,7 @@ fn create_and_seed_worklist(
|
|||
match tcx.def_kind(id) {
|
||||
DefKind::Impl { .. } => false,
|
||||
DefKind::AssocConst | DefKind::AssocFn => !matches!(tcx.associated_item(id).container, AssocItemContainer::ImplContainer),
|
||||
DefKind::Struct => struct_all_fields_are_public(tcx, id.to_def_id()) || has_allow_dead_code_or_lang_attr(tcx, id).is_some(),
|
||||
DefKind::Struct => struct_all_fields_are_public(tcx, id.to_def_id()),
|
||||
_ => true
|
||||
})
|
||||
.map(|id| (id, ComesFromAllowExpect::No))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue