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

Issue 5656 change meaning of borrowed self #5827

Conversation

nikomatsakis
Copy link
Contributor

See #5656 for details.

r? @pcwalton

signature.  In a nutshell, the idea is to (1) report an error if, for
a region pointer `'a T`, the lifetime `'a` is longer than any
lifetimes that appear in `T` (in other words, if a borrowed pointer
outlives any portion of its contents) and then (2) use this to assume
that in a function like `fn(self: &'a &'b T)`, the relationship `'a <=
'b` holds. This is needed for rust-lang#5656.  Fixes rust-lang#5728.
bors added a commit that referenced this pull request Apr 12, 2013
@bors bors closed this Apr 12, 2013
@bors bors merged commit c97c03c into rust-lang:incoming Apr 12, 2013
@nikomatsakis nikomatsakis deleted the issue-5656-change-meaning-of-borrowed-self branch March 30, 2016 16:15
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.

3 participants