Skip to content

Fix variance ordering #27525

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
Aug 5, 2015
Merged

Fix variance ordering #27525

merged 1 commit into from
Aug 5, 2015

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Aug 4, 2015

I thought this was actually a huge error and I'd have to rewrite a bunch but
it looks like everything else was correct.

Closes #27457

r? @aturon

@aturon
Copy link
Member

aturon commented Aug 4, 2015

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 4, 2015

📌 Commit 70f4da9 has been approved by aturon

@@ -93,8 +93,8 @@ fn main() {

The signature of `overwrite` is clearly valid: it takes mutable references to
two values of the same type, and overwrites one with the other. If `&mut T` was
variant over T, then `&mut &'a str` would be a subtype of `&mut &'static str`,
since `&'a str` is a subtype of `&'static str`. Therefore the lifetime of
variant over T, then `&mut &'a static` would be a subtype of `&mut &'a str`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/'a static/'static str/

@Gankra
Copy link
Contributor Author

Gankra commented Aug 4, 2015

@bors r-

I thought this was actually a huge error and I'd have to rewrite a bunch but
it looks like everything else was correct.

Closes rust-lang#27457
@Gankra
Copy link
Contributor Author

Gankra commented Aug 4, 2015

@bors r=aturon

@bors
Copy link
Collaborator

bors commented Aug 4, 2015

📌 Commit 67455e2 has been approved by aturon

Manishearth added a commit to Manishearth/rust that referenced this pull request Aug 5, 2015
I thought this was actually a huge error and I'd have to rewrite a bunch but
it looks like everything else was correct.

Closes rust-lang#27457

r? @aturon
bors added a commit that referenced this pull request Aug 5, 2015
@bors bors merged commit 67455e2 into rust-lang:master Aug 5, 2015
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.

4 participants