Skip to content

Conversation

pnkfelix
Copy link
Contributor

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
Contributor Author

r? @nikomatsakis

@pnkfelix
Copy link
Contributor 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
Contributor 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
Contributor 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
Contributor 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