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 2263 fn subtyping #3854

Closed

Conversation

nikomatsakis
Copy link
Contributor

r? @brson

This is a partial fix for #2263. It corrects subtyping for function types with bound lifetimes, but not LUB/GLB. The description in the comment in region_inference.rs (included in the patch) explains the situation as best I can, it's a fairly subtle problem, I won't repeat it here.

@brson
Copy link
Contributor

brson commented Oct 25, 2012

r+

Great comments and tests. Took me a while to digest how region inference works, but it lgtm.

@nikomatsakis
Copy link
Contributor Author

Merged in 1a3a707

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Sep 8, 2024
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.

2 participants