Skip to content

Conversation

@matthewjasper
Copy link
Contributor

This fixes ProjectionTy::trait_ref to use the correct substs. Places that need all of the substs have been updated to not use trait_ref.

r? @jackh726

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 13, 2021
@rust-log-analyzer

This comment has been minimized.

@jackh726
Copy link
Member

Hmm, I actually have a much more minimal variation of this done: jackh726@7caf640

Looking through this, there seems to be a lot more here. Need to look through and see how it's different.

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

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

Just one concern re. lang item but otherwise LGTM

@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 13, 2021

📌 Commit eeb82e4 has been approved by jackh726

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 13, 2021
@@ -0,0 +1,17 @@
// Test that correct syntax is used in suggestion to constrain associated type

#![feature(generic_associated_types)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, why not #![allow(incomplete_features)] in these? It's still one line and clears up the .stderr view.

Copy link
Member

@jackh726 jackh726 Feb 16, 2021

Choose a reason for hiding this comment

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

imo, #![allow(incomplete_features)] could be missed later on when this is no longer an incomplete feature and it could be removed. So, personally, I prefer to just have the warning in the stderr files now and have it removed later.

@bors bors merged commit 66211f6 into rust-lang:master Feb 18, 2021
@rustbot rustbot added this to the 1.52.0 milestone Feb 18, 2021
@matthewjasper matthewjasper deleted the trait-ref-fix branch February 19, 2021 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants