Skip to content

Avoid ICE caused by suggestion - #87795

Merged
bors merged 1 commit into
rust-lang:masterfrom
estebank:erase-lifetimes-in-suggestion
Aug 13, 2021
Merged

Avoid ICE caused by suggestion#87795
bors merged 1 commit into
rust-lang:masterfrom
estebank:erase-lifetimes-in-suggestion

Conversation

@estebank

Copy link
Copy Markdown
Contributor

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.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @davidtwco

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 5, 2021
@estebank

Copy link
Copy Markdown
ContributorAuthor

r? @oli-obk

Comment threadcompiler/rustc_mir/src/borrow_check/diagnostics/move_errors.rs Outdated
@estebank
estebankforce-pushed the erase-lifetimes-in-suggestion branch 2 times, most recently from f80d1bf to d3a3bb4CompareAugust 12, 2021 10:13
@rust-log-analyzer

This comment has been minimized.

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.
Fixrust-lang#87657.
@estebank
estebankforce-pushed the erase-lifetimes-in-suggestion branch from d3a3bb4 to a0bf7d2CompareAugust 12, 2021 10:24
@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Aug 13, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit a0bf7d2 has been approved by oli-obk

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 13, 2021
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 13, 2021
…ion, 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.
Fixrust-lang#87657, fixrust-lang#87709, fixrust-lang#87651.
This was referenced Aug 13, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 13, 2021
…laumeGomez
Rollup of 4 pull requests
Successful merges:
- rust-lang#87795 (Avoid ICE caused by suggestion)
- rust-lang#87966 (Fix `command-create-pidfd` test inside unprivileged Docker containers)
- rust-lang#87969 (Revert "Rollup merge of rust-lang#87779 - Aaron1011:stmt-ast-id, r=petrochenkov")
- rust-lang#88005 (Add rustdoc GUI test for headers)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 717f9e3 into rust-lang:masterAug 13, 2021
@rustbotrustbot added this to the 1.56.0 milestone Aug 13, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

7 participants

@estebank@rust-highfive@rust-log-analyzer@oli-obk@bors@davidtwco@rustbot