Skip to content

Commit beb06ae

Browse files
committed
Don't use eval_always for miri queries used from codegen.
1 parent 2dd4e73 commit beb06ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc/query/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,11 @@ rustc_queries! {
462462
query const_field(
463463
key: ty::ParamEnvAnd<'tcx, (&'tcx ty::Const<'tcx>, mir::Field)>
464464
) -> &'tcx ty::Const<'tcx> {
465-
eval_always
466465
no_force
467466
desc { "extract field of const" }
468467
}
469468

470469
query const_caller_location(key: (syntax_pos::Symbol, u32, u32)) -> &'tcx ty::Const<'tcx> {
471-
eval_always
472470
no_force
473471
desc { "get a &core::panic::Location referring to a span" }
474472
}

0 commit comments

Comments
 (0)