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>(
745
745
746
746
match tcx. def_kind ( owner_id) {
747
747
DefKind :: Enum => {
748
- let adt = tcx. adt_def ( owner_id) ;
749
748
if let Some ( comes_from_allow) = allow_dead_code {
749
+ let adt = tcx. adt_def ( owner_id) ;
750
750
worklist. extend (
751
751
adt. variants ( )
752
752
. iter ( )
@@ -771,8 +771,8 @@ fn maybe_record_as_seed<'tcx>(
771
771
}
772
772
}
773
773
}
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 ( ) {
776
776
unsolved_items. push ( owner_id. def_id ) ;
777
777
}
778
778
}
Original file line number Diff line number Diff line change 8
8
#![ allow( internal_features) ]
9
9
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
10
10
#![ doc( rust_logo) ]
11
+ #![ feature( if_let_guard) ]
11
12
#![ feature( map_try_insert) ]
12
13
#![ feature( rustdoc_internals) ]
13
14
// tidy-alphabetical-end
You can’t perform that action at this time.
0 commit comments