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

add from_raw_with_void_ptr lint #9690

Merged
merged 1 commit into from
Oct 23, 2022
Merged

add from_raw_with_void_ptr lint #9690

merged 1 commit into from
Oct 23, 2022

Conversation

roynrishingha
Copy link
Contributor

@roynrishingha roynrishingha commented Oct 22, 2022

This PR fixes #9679

  • Followed [lint naming conventions][lint_naming]
  • Added passing UI tests (including committed .stderr file)
  • cargo test passes locally
  • Executed cargo dev update_lints
  • Added lint documentation
  • Run cargo dev fmt

changelog: [from_raw_with_void_ptr]: added new lint

@rust-highfive
Copy link

r? @flip1995

(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 Oct 22, 2022
clippy_lints/src/boxed_void.rs Outdated Show resolved Hide resolved
clippy_lints/src/boxed_void.rs Outdated Show resolved Hide resolved
clippy_lints/src/boxed_void.rs Outdated Show resolved Hide resolved
clippy_lints/src/boxed_void.rs Outdated Show resolved Hide resolved
@roynrishingha roynrishingha changed the title add boxed_void lint add raw_box_from_void_ptr lint Oct 23, 2022
Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

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

The impl LGTM now. But this lint could potentially also apply to Rc Arc and Weak, not only box. This can also be done in a future PR though, so I don't want to block this PR on it. However, I would chose the lint name, so that applying this lint to other types is possible in the future.

Possible names:

  • from_raw_with_void_ptr
  • from_raw_from_void_ptr
  • ...? Better ideas?

@roynrishingha roynrishingha changed the title add raw_box_from_void_ptr lint add from_raw_with_void_ptr lint Oct 23, 2022
@roynrishingha roynrishingha requested review from flip1995 and llogiq and removed request for flip1995 and llogiq October 23, 2022 15:52
@roynrishingha
Copy link
Contributor Author

@flip1995 is the PR okay now ? Please let me know.

@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Oct 23, 2022

📌 Commit b083a39 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 23, 2022

⌛ Testing commit b083a39 with merge 191c983...

@bors
Copy link
Collaborator

bors commented Oct 23, 2022

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

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.

7 participants