InterpCx
store TypingEnv
instead of a ParamEnv
This commit is contained in:
parent
b9dea31ea9
commit
7a90e84f4d
36 changed files with 167 additions and 192 deletions
|
@ -1095,7 +1095,7 @@ rustc_queries! {
|
|||
/// Evaluates a constant and returns the computed allocation.
|
||||
///
|
||||
/// **Do not use this** directly, use the `eval_to_const_value` or `eval_to_valtree` instead.
|
||||
query eval_to_allocation_raw(key: ty::ParamEnvAnd<'tcx, GlobalId<'tcx>>)
|
||||
query eval_to_allocation_raw(key: ty::PseudoCanonicalInput<'tcx, GlobalId<'tcx>>)
|
||||
-> EvalToAllocationRawResult<'tcx> {
|
||||
desc { |tcx|
|
||||
"const-evaluating + checking `{}`",
|
||||
|
@ -1121,7 +1121,7 @@ rustc_queries! {
|
|||
///
|
||||
/// **Do not use this** directly, use one of the following wrappers: `tcx.const_eval_poly`,
|
||||
/// `tcx.const_eval_resolve`, `tcx.const_eval_instance`, or `tcx.const_eval_global_id`.
|
||||
query eval_to_const_value_raw(key: ty::ParamEnvAnd<'tcx, GlobalId<'tcx>>)
|
||||
query eval_to_const_value_raw(key: ty::PseudoCanonicalInput<'tcx, GlobalId<'tcx>>)
|
||||
-> EvalToConstValueResult<'tcx> {
|
||||
desc { |tcx|
|
||||
"simplifying constant for the type system `{}`",
|
||||
|
@ -1133,7 +1133,7 @@ rustc_queries! {
|
|||
/// Evaluate a constant and convert it to a type level constant or
|
||||
/// return `None` if that is not possible.
|
||||
query eval_to_valtree(
|
||||
key: ty::ParamEnvAnd<'tcx, GlobalId<'tcx>>
|
||||
key: ty::PseudoCanonicalInput<'tcx, GlobalId<'tcx>>
|
||||
) -> EvalToValTreeResult<'tcx> {
|
||||
desc { "evaluating type-level constant" }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue