Skip to content

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
Contributor

❤️ 😍 🎊

@steveklabnik
Copy link
Contributor

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
lnicola pushed a commit to lnicola/rust that referenced this pull request Sep 18, 2025
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