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

Require assoc types to outlive struct they are referenced from #22436

Merged

Conversation

nikomatsakis
Copy link
Contributor

Take 2. This PR includes a bunch of refactoring that was part of an experimental branch implementing implied bounds. That particular idea isn't ready to go yet, but the refactoring proved useful for fixing #22246. The implied bounds branch also exposed #22110 so a simple fix for that is included here. I still think some more refactoring would be a good idea here -- in particular I think most of the code in wf.rs is kind of duplicating the logic in implicator and should go, but I decided to post this PR and call it a day before diving into that. I'll write a bit more details about the solutions I adopted in the various bugs. I patched the two issues I was concerned about, which was the handling of supertraits and HRTB (the latter turned out to be fine, so I added a comment explaining why.)

r? @pnkfelix (for now, anyway)
cc @aturon

@nikomatsakis nikomatsakis force-pushed the issue-22246-bound-lifetimes-of-assoc-types branch from c8406d6 to 4f461aa Compare February 17, 2015 11:39
@pnkfelix
Copy link
Member

@bors r=4f461aa

@bors
Copy link
Contributor

bors commented Feb 18, 2015

🙀 You have the wrong number! Please try again with 4f461aa.

@pnkfelix
Copy link
Member

@bors r+ 4f461aa

@aturon
Copy link
Member

aturon commented Feb 18, 2015

@bors: p=1 (this is blocking an important library stabilzation PR)

@bors
Copy link
Contributor

bors commented Feb 18, 2015

⌛ Testing commit 4f461aa with merge a84505e...

@bors
Copy link
Contributor

bors commented Feb 18, 2015

💔 Test failed - auto-mac-64-opt

@nikomatsakis nikomatsakis force-pushed the issue-22246-bound-lifetimes-of-assoc-types branch from 4f461aa to 9bb3b37 Compare February 18, 2015 20:25
@nikomatsakis
Copy link
Contributor Author

@bors r+ 9bb3b37 p=1 as this is blocking aturon

@bors
Copy link
Contributor

bors commented Feb 18, 2015

⌛ Testing commit 9bb3b37 with merge 4fe222e...

@bors
Copy link
Contributor

bors commented Feb 18, 2015

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

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Feb 18, 2015

⌛ Testing commit 9bb3b37 with merge 2299235...

bors added a commit that referenced this pull request Feb 18, 2015
…soc-types, r=nikomatsakis

Take 2. This PR includes a bunch of refactoring that was part of an experimental branch implementing [implied bounds]. That particular idea isn't ready to go yet, but the refactoring proved useful for fixing #22246. The implied bounds branch also exposed #22110 so a simple fix for that is included here. I still think some more refactoring would be a good idea here -- in particular I think most of the code in wf.rs is kind of duplicating the logic in implicator and should go, but I decided to post this PR and call it a day before diving into that. I'll write a bit more details about the solutions I adopted in the various bugs. I patched the two issues I was concerned about, which was the handling of supertraits and HRTB (the latter turned out to be fine, so I added a comment explaining why.)

r? @pnkfelix (for now, anyway)
cc @aturon 

[implied bounds]: http://smallcultfollowing.com/babysteps/blog/2014/07/06/implied-bounds/
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Feb 19, 2015
…imes-of-assoc-types

Take 2. This PR includes a bunch of refactoring that was part of an experimental branch implementing [implied bounds]. That particular idea isn't ready to go yet, but the refactoring proved useful for fixing rust-lang#22246. The implied bounds branch also exposed rust-lang#22110 so a simple fix for that is included here. I still think some more refactoring would be a good idea here -- in particular I think most of the code in wf.rs is kind of duplicating the logic in implicator and should go, but I decided to post this PR and call it a day before diving into that. I'll write a bit more details about the solutions I adopted in the various bugs. I patched the two issues I was concerned about, which was the handling of supertraits and HRTB (the latter turned out to be fine, so I added a comment explaining why.)

r? @pnkfelix (for now, anyway)
cc @aturon

[implied bounds]: http://smallcultfollowing.com/babysteps/blog/2014/07/06/implied-bounds/
edwardw added a commit to edwardw/rust that referenced this pull request Feb 21, 2015
@edwardw edwardw mentioned this pull request Feb 21, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 21, 2015
@nikomatsakis nikomatsakis deleted the issue-22246-bound-lifetimes-of-assoc-types 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.

5 participants