Skip to content

Fix ICE that @steveklabnik encountered in rust-book. #20645

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
Jan 7, 2015

Conversation

nikomatsakis
Copy link
Contributor

Fix ICE that @steveklabnik encountered in rust-book. The problems turned out to be that were being very loose with bound regions in trans (we were basically just ignoring and flattening binders). Since binders are significant to subtyping and hence to trait selection, this can cause a lot of problems. So this patch makes us treat them more strictly -- for example, we propagate binders, and avoid skipping past the Binder by writing foo.0.

Fixes #20644.

r? @pcwalton

@steveklabnik
Copy link
Member

❤️ 😍 🎊

@steveklabnik
Copy link
Member

This is blocking my work, so getting it shipped would make me a very happy camper.

…ed out to be that were being very loose with bound regions in trans (we were basically just ignoring and flattening binders). Since binders are significant to subtyping and hence to trait selection, this can cause a lot of problems. So this patch makes us treat them more strictly -- for example, we propagate binders, and avoid skipping past the `Binder` by writing `foo.0`.

Fixes rust-lang#20644.
@nrc nrc assigned nrc and unassigned pcwalton Jan 6, 2015
@nikomatsakis
Copy link
Contributor Author

r? @nick29581

@nikomatsakis
Copy link
Contributor Author

(Passes make check locally.)

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 7, 2015
Conflicts:
	src/librustc/middle/mem_categorization.rs
	src/librustc/middle/ty.rs
	src/librustc_trans/trans/base.rs
	src/librustc_trans/trans/expr.rs
	src/librustc_trans/trans/foreign.rs
	src/librustc_typeck/check/mod.rs
@alexcrichton alexcrichton merged commit 2486d93 into rust-lang:master Jan 7, 2015
@nikomatsakis nikomatsakis deleted the rustbook-ice branch March 30, 2016 16:17
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 compiling rustbook
6 participants