Skip to content

Commit

Permalink
Don't use eval_always for miri queries used from codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Oct 29, 2019
1 parent 2dd4e73 commit beb06ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustc/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,11 @@ rustc_queries! {
query const_field(
key: ty::ParamEnvAnd<'tcx, (&'tcx ty::Const<'tcx>, mir::Field)>
) -> &'tcx ty::Const<'tcx> {
eval_always
no_force
desc { "extract field of const" }
}

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

0 comments on commit beb06ae

Please sign in to comment.