Heat up the ICE-y error reporting
rest in peace match bool <3
This commit is contained in:
parent
218bf8d765
commit
a3e079534d
4 changed files with 46 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue