Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unnecessary_cast suggestion for type aliasses #8596

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

Jaic1
Copy link
Contributor

@Jaic1 Jaic1 commented Mar 28, 2022

Fix #6923. The [unnecessary_cast] lint now will skip casting to non-primitive type.

changelog: fix lint [unnecessary_cast ]

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @flip1995 (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 28, 2022
@flip1995
Copy link
Member

flip1995 commented Apr 6, 2022

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Apr 6, 2022

📌 Commit ec851b8 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Apr 6, 2022

⌛ Testing commit ec851b8 with merge 880ff24...

@bors
Copy link
Collaborator

bors commented Apr 6, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 880ff24 to master...

@bors bors merged commit 880ff24 into rust-lang:master Apr 6, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 22, 2023
Remove `#[cfg(all())]` workarounds from `c_char`

Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596

Closes rust-lang/rust-clippy#8093
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 22, 2023
Remove `#[cfg(all())]` workarounds from `c_char`

Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596

Closes rust-lang/rust-clippy#8093
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 22, 2023
Remove `#[cfg(all())]` workarounds from `c_char`

Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596

Closes rust-lang/rust-clippy#8093
thomcc pushed a commit to tcdi/postgrestd that referenced this pull request Oct 17, 2023
Remove `#[cfg(all())]` workarounds from `c_char`

Casts to type aliases are now ignored by Clippy rust-lang/rust-clippy#8596

Closes rust-lang/rust-clippy#8093
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.

unnecessary_cast suggestion for type aliasses
4 participants