Skip to content

Commit def0a31

Browse files
committed
Use the body of is_mir_available, not the query itself
1 parent c88bcf3 commit def0a31

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ fn mir_flags<'tcx>(tcx: TyCtxt<'tcx>, local_def_id: LocalDefId) -> MirFlags {
366366
return flags;
367367
}
368368

369-
if !tcx.is_mir_available(local_def_id) {
369+
if !tcx.mir_keys(()).contains(&local_def_id) {
370370
return flags;
371371
}
372372

0 commit comments

Comments
 (0)