]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #87795 - estebank:erase-lifetimes-in-suggestion, r=oli-obk
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 13 Aug 2021 13:29:10 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Aug 2021 13:29:10 +0000 (15:29 +0200)
commit717f9e37696703670108f47c5dff261ca9d4d834
treedb82c2b0f4ad7eeda588219d9b8feaf2c7a4cbd6
parent2fc3c69e5419292e92663a5f1e39203478925661
parenta0bf7d2cd3751de2b49ec66701aaa7cc41345c35
Rollup merge of #87795 - estebank:erase-lifetimes-in-suggestion, r=oli-obk

Avoid ICE caused by suggestion

When suggesting dereferencing something that can be iterable in a `for`
loop, erase lifetimes and use a fresh `ty::ParamEnv` to avoid 'region
constraints already solved' panic.

Fix #87657, fix #87709, fix #87651.