We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc92ff commit 592c2daCopy full SHA for 592c2da
compiler/rustc_const_eval/src/const_eval/valtrees.rs
@@ -233,7 +233,7 @@ pub(crate) fn eval_to_valtree<'tcx>(
233
) -> EvalToValTreeResult<'tcx> {
234
// Const eval always happens in PostAnalysis mode . See the comment in
235
// `InterpCx::new` for more details.
236
- debug_assert_eq!(key.typing_env.typing_mode, ty::TypingMode::PostAnalysis);
+ debug_assert_eq!(typing_env.typing_mode, ty::TypingMode::PostAnalysis);
237
let const_alloc = tcx.eval_to_allocation_raw(typing_env.as_query_input(cid))?;
238
239
// FIXME Need to provide a span to `eval_to_valtree`
0 commit comments