rust/compiler/rustc_trait_selection
Yuki Okushi f95f835470
Rollup merge of #107479 - compiler-errors:probe-can-call-ocx, r=BoxyUwU
Use `ObligationCtxt::new_in_snapshot` in `satisfied_from_param_env`

We can evaluate nested `ConstEvaluatable` obligations in an evaluation probe, which will ICE if we use `ObligationCtxt::new`.

Fixes #107474
Fixes #106666

r? `@BoxyUwU` but feel free to reassign
cc `@JulianKnodt` who i think added this assertion code

Not sure if the rustdoc test is needed, but can't hurt. They're the same root cause, though.
2023-01-31 11:46:25 +09:00
..
src Rollup merge of #107479 - compiler-errors:probe-can-call-ocx, r=BoxyUwU 2023-01-31 11:46:25 +09:00
Cargo.toml update cache 2023-01-18 08:09:01 +01:00