-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: undocumented_unsafe_blocks
FP on trait/impl items
#13888
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Alexendoo (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
r? clippy |
r? clippy on a work trip and my notifications are packed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for the update (And sorry for the delay with the review. 😅 )
Roses are red,
Violets are blue,
Safety comments,
For unsafe code
tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs
Outdated
Show resolved
Hide resolved
322323a
to
fe44ed7
Compare
Looks like it is conflicted with the recent update on ui toml. Should be ok now, you may need to re-press the button though @xFrednet. |
Thanks for the rebase! I've checked the CI lintcheck output: https://github.com/rust-lang/rust-clippy/actions/runs/13364592312?pr=13888 and actually noticed a regression here: https://docs.rs/time/0.3.36/src/time/offset_date_time.rs.html#35. The linked code would now be linted while it wasn't before. Could you take a look at it and add a test? |
3879429
to
644122a
Compare
@xFrednet Can you check it now? I fixed that one and we also got 9 cases REMOVED. How wiered that this one in |
This is super nice, all of them have been FPs that you fixed now :D It might be that the lint is still incorrectly emitted. The CI only shows the difference. But I don't think we should block on this. This PR has already been open for quite some time :) |
This version looks good to me, could you rebase one last time? Thank you for your patience while waiting on my review 😅 |
Rebased |
// Safety: The following poem is not complete
unsafe {
Rose are red,
Violets are blue
} |
fixes #11709
Continuation of #12672. r? @Alexendoo if you don't mind?
changelog: [
undocumented_unsafe_blocks
] fix FP on trait/impl items