Skip to content

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Aug 6, 2023

Also don't provide the assist when the Default trait can't be found.

Part of #15398

Also don't provide the assist when the `Default` trait can't be found.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 6, 2023
@lnicola
Copy link
Member

lnicola commented Aug 6, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Aug 6, 2023

📌 Commit 5829174 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 6, 2023

⌛ Testing commit 5829174 with merge baee6b3...

// Return `true` to avoid providing the assist because it makes no sense
// to impl `Default` when it's missing.
None => return true,
};
Copy link
Member

Choose a reason for hiding this comment

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

We could also return an Option here, but it doesn't matter.

@bors
Copy link
Contributor

bors commented Aug 6, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing baee6b3 to master...

@bors bors merged commit baee6b3 into rust-lang:master Aug 6, 2023
@lnicola lnicola mentioned this pull request Aug 9, 2023
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants