Skip to content

[type_repetition_in_bounds]: Don't lint on derived code#10894

Merged
bors merged 6 commits into
rust-lang:masterfrom
Centri3:type_repetition_in_bounds
Jun 12, 2023
Merged

[type_repetition_in_bounds]: Don't lint on derived code#10894
bors merged 6 commits into
rust-lang:masterfrom
Centri3:type_repetition_in_bounds

Conversation

@Centri3

@Centri3 Centri3 commented Jun 5, 2023

Copy link
Copy Markdown
Member

fixes #10504.

changelog: [type_repetition_in_bounds]: Don't lint on derived code

@rustbot

rustbot commented Jun 5, 2023

Copy link
Copy Markdown
Collaborator

r? @xFrednet

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 5, 2023
Comment thread clippy_lints/src/trait_bounds.rs Outdated
@blyxyas

blyxyas commented Jun 7, 2023

Copy link
Copy Markdown
Member

I'm curious what the difference would be if is_from_proc_macro was used instead.

In this new commit, it's about ~15% faster. Not really worth it only for performance, but the clean code really makes this worth it imo (and making it easier for future contributions).

@blyxyas blyxyas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is ready to merge. Thanks!

cc @xFrednet

@xFrednet

Copy link
Copy Markdown
Contributor

Sounds like you're back in action. Ain't no rest for the wicket, right? ^^

I'll give this a final review in the next couple of days. Thank you for the reviewing effort @blyxyas

@xFrednet xFrednet left a comment

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.

LGTM, just one tiny question before the merge :)

Comment thread clippy_utils/src/check_proc_macro.rs Outdated
@xFrednet

Copy link
Copy Markdown
Contributor

This version looks good to me, thank you! @Centri3

Also thank you, @blyxyas, for the review support!

@bors r=blyxyas,xFrednet

@bors

bors commented Jun 12, 2023

Copy link
Copy Markdown
Contributor

📌 Commit 4191de3 has been approved by blyxyas,xFrednet

It is now in the queue for this repository.

@bors

bors commented Jun 12, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4191de3 with merge 903fe3b...

@bors

bors commented Jun 12, 2023

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: blyxyas,xFrednet
Pushing 903fe3b to master...

@bors bors merged commit 903fe3b into rust-lang:master Jun 12, 2023
@Centri3 Centri3 deleted the type_repetition_in_bounds branch June 12, 2023 08:15
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.

clippy::type_repetition_in_bounds triggers on derived code

5 participants