Skip to content
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

Avoid cat_expr Erred notes when already in error state. #22767

Merged
merged 1 commit into from
Feb 26, 2015

Conversation

pnkfelix
Copy link
Member

Avoid cat_expr Erred notes when already in error state.

Also, to ensure we do not let the dropck get skipped, ICE if cat_expr errors when not in error state.

This is not known to be a breaking change (i.e. I do not know of a current case that causes the new ICE to be exercised).

Fix #22265

Also, to ensure we do not let the dropck get skipped, ICE if cat_expr
errors when *not* in error state.

This is not known to be a breaking change (i.e. I do not know of a
current case that causes the new ICE to be exercised).
@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member Author

wait, that bit about "this is not known to be a breaking change" is a clear lie: the original test case that this was filed against (in #22265) exercises the ICE.

@pnkfelix
Copy link
Member Author

(closing; I want to investigate the case that is ICE'ing before trying to land this.)

@pnkfelix pnkfelix closed this Feb 24, 2015
@pnkfelix
Copy link
Member Author

reopening: when #21259 is fixed (which according to @eddyb will happen when PR #22172 lands), then the implicit error encoded in the example from #22265 will be properly signaled as an error, thus side-stepping the ICE being added here.

@pnkfelix pnkfelix reopened this Feb 24, 2015
@nikomatsakis
Copy link
Contributor

@bors r+ 92bc3ea

I am mildly concerned that this might fail in some cases where there are unresolved types that have not been reported by the time regionck runs, but if/when we observe that we should probably fix by just caching and reporting those cases earlier. I agree that the potential for bad things to slip through the cracks is high and should be avoided.

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 92bc3ea with merge f8baa57...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 92bc3ea with merge ec865de...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-win-32-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

bors added a commit that referenced this pull request Feb 25, 2015
Avoid `cat_expr Erred` notes when already in error state.

Also, to ensure we do not let the dropck get skipped, ICE if `cat_expr` errors when *not* in error state.

This is not known to be a breaking change (i.e. I do not know of a current case that causes the new ICE to be exercised).

Fix #22265
@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 92bc3ea with merge 610d169...

@bors bors merged commit 92bc3ea into rust-lang:master Feb 26, 2015
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.

note: cat_expr Errd during dtor check
6 participants