Skip to content

Conversation

Centri3
Copy link
Member

@Centri3 Centri3 commented May 14, 2023

Fixes #10773

changelog: Enhancement: [useless_conversion]: Don't lint on type aliases

@rustbot
Copy link
Collaborator

rustbot commented May 14, 2023

r? @llogiq

(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 May 14, 2023
Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

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

Thank you! This looks very good. In fact, the only improvement I can suggest is to move the is_ty_alias function into clippy_utils so we can use it from other lints.

Are you OK with doing that? Otherwise I'll r+ and make a note to do it next time I refactor stuff.

@llogiq
Copy link
Contributor

llogiq commented May 14, 2023

Thank you!

@bors r+

@bors
Copy link
Contributor

bors commented May 14, 2023

📌 Commit a36d9a7 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented May 14, 2023

⌛ Testing commit a36d9a7 with merge 590c9fc...

@bors
Copy link
Contributor

bors commented May 14, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 590c9fc to master...

@bors bors merged commit 590c9fc into rust-lang:master May 14, 2023
@Centri3 Centri3 deleted the type-alias-fix branch June 2, 2023 00:36
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.

Don't emit clippy::useless_conversion on type aliases
4 participants