Skip to content

Fix ICE: RegionFolder should only invoke callback on free regions. #15061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2014

Conversation

pnkfelix
Copy link
Member

In other words, Late-bound regions that occur non-free should be
skipped.

Fix #10846 (specifically the ICE, not the weakness in the current type inference).

@pnkfelix
Copy link
Member Author

r? @nikomatsakis

@pnkfelix
Copy link
Member Author

To be specific: this PR fixes the ICE described on #10846.

The type inference failure is a separate issue that may or may not be immediately fixable. I am still looking into that, but I think we should try to land a fix for the ICE sooner if possible.

@nikomatsakis
Copy link
Contributor

r+ modulo nit.

In other words, Late-bound regions that occur non-free should be
skipped.

Fix rust-lang#10846.
@pnkfelix
Copy link
Member Author

(aforementioned nit was a request for an alpha-rename of the helper function I introduced, which I did, though I chose a variation on the names niko had suggesed.)

@pnkfelix pnkfelix changed the title RegionFolder should only invoke callback on free regions. Fix ICE: RegionFolder should only invoke callback on free regions. Jun 22, 2014
bors added a commit that referenced this pull request Jun 23, 2014
In other words, Late-bound regions that occur non-free should be
skipped.

Fix #10846 (specifically the ICE, not the weakness in the current type inference).
@bors bors closed this Jun 23, 2014
@bors bors merged commit 36caa7a into rust-lang:master Jun 23, 2014
@pnkfelix
Copy link
Member Author

As noted in the PR and the merge commit, only the ICE was addressed; there is still the weakness in the type inference algorithm.

I will open a new ticket regarding trying to improve our type inference for this case.

@pnkfelix
Copy link
Member Author

also I should have included a regression test in the PR. Will open a ticket for that as well.

bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2023
…ith-tail-expr, r=Veykril

fix: don't use control flow when extracted fn contains tail expr of original fn

Fixes rust-lang#10113
Fixes rust-lang#15061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trouble passing closures with borrowed pointers inside options
4 participants