File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use rustc_const_eval::util;
2121use rustc_data_structures:: fx:: FxIndexSet ;
2222use rustc_data_structures:: steal:: Steal ;
2323use rustc_hir as hir;
24- use rustc_hir:: def:: { CtorKind , DefKind } ;
24+ use rustc_hir:: def:: DefKind ;
2525use rustc_hir:: def_id:: LocalDefId ;
2626use rustc_index:: IndexVec ;
2727use rustc_middle:: mir:: {
@@ -322,7 +322,7 @@ fn mir_keys(tcx: TyCtxt<'_>, (): ()) -> FxIndexSet<LocalDefId> {
322322 for item in tcx. hir_crate_items ( ( ) ) . free_items ( ) {
323323 if let DefKind :: Struct | DefKind :: Enum = tcx. def_kind ( item. owner_id ) {
324324 for variant in tcx. adt_def ( item. owner_id ) . variants ( ) {
325- if let Some ( ( CtorKind :: Fn , ctor_def_id) ) = variant. ctor {
325+ if let Some ( ( _ , ctor_def_id) ) = variant. ctor {
326326 set. insert ( ctor_def_id. expect_local ( ) ) ;
327327 }
328328 }
You can’t perform that action at this time.
0 commit comments