File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -935,7 +935,6 @@ rustc_queries! {
935
935
}
936
936
937
937
Codegen {
938
- // FIXME: remove after figuring out how to make miri able to detect non-Rust function calls
939
938
query is_ctfe_mir_available( key: DefId ) -> bool {
940
939
desc { |tcx| "checking if item has ctfe mir available: `{}`" , tcx. def_path_str( key) }
941
940
}
Original file line number Diff line number Diff line change @@ -542,6 +542,9 @@ fn inner_optimized_mir(tcx: TyCtxt<'_>, did: LocalDefId) -> Body<'_> {
542
542
}
543
543
544
544
match tcx. hir ( ) . body_const_context ( did) {
545
+ /// Run the `mir_for_ctfe` query, which depends on `mir_drops_elaborated_and_const_checked`
546
+ /// which we are going to steal below. Thus we need to run `mir_for_ctfe` first, so it
547
+ /// computes and caches its result.
545
548
Some ( hir:: ConstContext :: ConstFn ) => tcx. ensure ( ) . mir_for_ctfe ( did) ,
546
549
None => { }
547
550
Some ( other) => panic ! ( "do not use `optimized_mir` for constants: {:?}" , other) ,
You can’t perform that action at this time.
0 commit comments