Skip to content

Teach variance checker about lifetime bounds from trait object types #18371

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
Nov 1, 2014

Conversation

nikomatsakis
Copy link
Contributor

Teach variance checker about the lifetime bounds that appear in trait object types.

[breaking-change] This patch fixes a hole in the type system which resulted in lifetime parameters that were only used in trait objects not being checked. It's hard to characterize precisely the changes that might be needed to fix target code.

cc #18262 (this fixes the test case by @jakub- but I am not sure if this is the same issue that @alexcrichton was reporting)

r? @pnkfelix

Fixes #18205

@nikomatsakis
Copy link
Contributor Author

cc #18205

@alexcrichton
Copy link
Member

Applying this patch I receive many many errors when compiling cargo at precisely the locations I would expect to see the errors, thanks @nikomatsakis!

bors added a commit that referenced this pull request Nov 1, 2014
Teach variance checker about the lifetime bounds that appear in trait object types.

[breaking-change] This patch fixes a hole in the type system which resulted in lifetime parameters that were only used in trait objects not being checked. It's hard to characterize precisely the changes that might be needed to fix target code.

cc #18262 (this fixes the test case by @jakub- but I am not sure if this is the same issue that @alexcrichton was reporting)

r? @pnkfelix 

Fixes #18205
@bors bors closed this Nov 1, 2014
@bors bors merged commit 9a5e7ba into rust-lang:master Nov 1, 2014
@nikomatsakis nikomatsakis deleted the issue-18262 branch March 30, 2016 16:13
lnicola pushed a commit to lnicola/rust that referenced this pull request Oct 29, 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.

Ability to take an Immutable reference to data that is mutated later through Obfuscation
4 participants