]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107479 - compiler-errors:probe-can-call-ocx, r=BoxyUwU
authorYuki Okushi <jtitor@2k36.org>
Tue, 31 Jan 2023 02:46:25 +0000 (11:46 +0900)
committerGitHub <noreply@github.com>
Tue, 31 Jan 2023 02:46:25 +0000 (11:46 +0900)
commitf95f835470f1c5b295d2486259e745eb8e859344
tree9b745562e3fba358ced07abe7b0b214d1f594a0a
parentfbcaf046cc49b8fcb7af96b64293301be6936fad
parent343a359109a48f4ece657831bf0331e22d108800
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.