Heat up the ICE-y error reporting

rest in peace match bool <3
This commit is contained in:
Ellen 2021-02-13 14:42:30 +00:00
parent 218bf8d765
commit a3e079534d
4 changed files with 46 additions and 6 deletions

View file

@ -208,7 +208,7 @@ pub fn eval_to_const_value_raw_provider<'tcx>(
tcx: TyCtxt<'tcx>,
key: ty::ParamEnvAnd<'tcx, GlobalId<'tcx>>,
) -> ::rustc_middle::mir::interpret::EvalToConstValueResult<'tcx> {
// see comment in const_eval_raw_provider for what we're doing here
// see comment in eval_to_allocation_raw_provider for what we're doing here
if key.param_env.reveal() == Reveal::All {
let mut key = key;
key.param_env = key.param_env.with_user_facing();