File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -745,8 +745,8 @@ fn maybe_record_as_seed<'tcx>(
745745
746746 match tcx. def_kind ( owner_id) {
747747 DefKind :: Enum => {
748- let adt = tcx. adt_def ( owner_id) ;
749748 if let Some ( comes_from_allow) = allow_dead_code {
749+ let adt = tcx. adt_def ( owner_id) ;
750750 worklist. extend (
751751 adt. variants ( )
752752 . iter ( )
@@ -771,8 +771,8 @@ fn maybe_record_as_seed<'tcx>(
771771 }
772772 }
773773 }
774- DefKind :: Impl { of_trait } => {
775- if allow_dead_code. is_none ( ) && of_trait {
774+ DefKind :: Impl { of_trait : true } => {
775+ if allow_dead_code. is_none ( ) {
776776 unsolved_items. push ( owner_id. def_id ) ;
777777 }
778778 }
Original file line number Diff line number Diff line change 88#![ allow( internal_features) ]
99#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
1010#![ doc( rust_logo) ]
11+ #![ feature( if_let_guard) ]
1112#![ feature( map_try_insert) ]
1213#![ feature( rustdoc_internals) ]
1314// tidy-alphabetical-end
You can’t perform that action at this time.
0 commit comments