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

Skip default methods if normalization fails #23486

Merged
merged 1 commit into from
Mar 28, 2015

Conversation

nikomatsakis
Copy link
Contributor

When testing whether a default method predicates are satisfiable,
combine normalization with this check so that we also skip the
default method if normalization fails. Fixes #23485.

r? @nrc (I tried to address your nit from before as well)

@nikomatsakis
Copy link
Contributor Author

Hmm, that test actually doesn't ICE when you are not on sfackler's branch. I don't really understand why not though.

@nikomatsakis
Copy link
Contributor Author

OK, I think I have a test that represents the issue now :)

@nikomatsakis nikomatsakis force-pushed the issue-23485 branch 2 times, most recently from eb0e249 to 14755cb Compare March 19, 2015 08:08
pub fn is_vtable_safe_method<'tcx>(tcx: &ty::ctxt<'tcx>,
trait_def_id: ast::DefId,
method: &ty::Method<'tcx>)
-> bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent of args

@nrc
Copy link
Member

nrc commented Mar 19, 2015

r+ modulo nits

@sfackler sfackler mentioned this pull request Mar 20, 2015
@sfackler
Copy link
Member

Ping?

@nikomatsakis
Copy link
Contributor Author

@sfackler argh let me address those nits...

combine normalization with this check so that we also skip the
default method if normalization fails. Fixes rust-lang#23485.
@nikomatsakis
Copy link
Contributor Author

@bors r=nrc 70042cf

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 27, 2015
When testing whether a default method predicates are satisfiable,
combine normalization with this check so that we also skip the
default method if normalization fails. Fixes rust-lang#23485.

r? @nrc (I tried to address your nit from before as well)
@bors bors merged commit 70042cf into rust-lang:master Mar 28, 2015
@nikomatsakis nikomatsakis deleted the issue-23485 branch March 30, 2016 16:14
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.

ICE when default method references associated type that can't be normalized
4 participants