Skip to content

Do not suggest impl traits as type arguments#86338

Merged
bors merged 2 commits into
rust-lang:masterfrom
JohnTitor:issue-86162
Aug 3, 2021
Merged

Do not suggest impl traits as type arguments#86338
bors merged 2 commits into
rust-lang:masterfrom
JohnTitor:issue-86162

Conversation

@JohnTitor

Copy link
Copy Markdown
Member

Fixes #86162

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 15, 2021
@JohnCSimon JohnCSimon added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 5, 2021
@joelpalmer joelpalmer added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 20, 2021
@bors

bors commented Aug 2, 2021

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #87698) made this pull request unmergeable. Please resolve the merge conflicts.

@JohnTitor

Copy link
Copy Markdown
Member Author

r? @estebank


/// Returns `true` if `params` has `impl Trait`.
pub fn has_impl_trait(&'tcx self) -> bool {
self.params.iter().any(|param| {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess we could also add an fn is_impl_trait to param, but that's not necessary in this PR.

@estebank

estebank commented Aug 3, 2021

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 3, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit b84d08d has been approved by estebank

@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 Aug 3, 2021
@bors

bors commented Aug 3, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b84d08d with merge d5fd37f...

@bors

bors commented Aug 3, 2021

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: estebank
Pushing d5fd37f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 3, 2021
@bors bors merged commit d5fd37f into rust-lang:master Aug 3, 2021
@rustbot rustbot added this to the 1.56.0 milestone Aug 3, 2021
@JohnTitor JohnTitor deleted the issue-86162 branch August 3, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. 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.

Invalid type annotations needed suggestion that leads to E0632

8 participants