We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
force
1 parent 0d045d7 commit d9c8a2bCopy full SHA for d9c8a2b
src/librustc_mir/transform/qualify_consts.rs
@@ -946,8 +946,9 @@ impl DefIdPass for QualifyAndPromoteConstants {
946
// Ensure that we compute the `mir_const_qualif` for
947
// constants at this point, before we do any further
948
// optimization (and before we steal the previous
949
- // MIR).
950
- tcx.mir_const_qualif(mir_cx.def_id());
+ // MIR). We don't directly need the result, so we can
+ // just force it.
951
+ ty::queries::mir_const_qualif::force(tcx, DUMMY_SP, mir_cx.def_id());
952
mir_cx.steal_previous_mir()
953
}
954
0 commit comments