]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #107422 - Nilstrieb:erase-the-ice, r=compiler-errors
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 29 Jan 2023 05:14:20 +0000 (06:14 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Jan 2023 05:14:20 +0000 (06:14 +0100)
Also erase substs for new infcx in pin move error

The code originally correctly erased the regions of the type it passed to the newly created infcx. But after the `fn_sig` query was made to return an `EarlyBinder<T>`, some substs that were around were substituted there without erasing their regions. They were then passed into the newly cerated infcx, which caused the ICE.

Fixes #107419

r? compiler-errors who reviewed the original PR adding this diagnostic


Trivial merge