File tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src 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;
21
21
use rustc_data_structures:: fx:: FxIndexSet ;
22
22
use rustc_data_structures:: steal:: Steal ;
23
23
use rustc_hir as hir;
24
- use rustc_hir:: def:: { CtorKind , DefKind } ;
24
+ use rustc_hir:: def:: DefKind ;
25
25
use rustc_hir:: def_id:: LocalDefId ;
26
26
use rustc_index:: IndexVec ;
27
27
use rustc_middle:: mir:: {
@@ -322,7 +322,7 @@ fn mir_keys(tcx: TyCtxt<'_>, (): ()) -> FxIndexSet<LocalDefId> {
322
322
for item in tcx. hir_crate_items ( ( ) ) . free_items ( ) {
323
323
if let DefKind :: Struct | DefKind :: Enum = tcx. def_kind ( item. owner_id ) {
324
324
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 {
326
326
set. insert ( ctor_def_id. expect_local ( ) ) ;
327
327
}
328
328
}
You can’t perform that action at this time.
0 commit comments