-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement check_attribute
to forbid #[allow_internal_unsafe]
#57467
Implement check_attribute
to forbid #[allow_internal_unsafe]
#57467
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
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.
Can you add a test if no preexisting test is touched by this change?
I’m not sure where and how add a test, advise me? |
Tests for diagnostics are added in |
All of tests were passed. I searched for |
Yes |
OK. I added the test in
But I got no stdout and stderr.
What did I do wrong? |
@oli-obk I’ve done all I can. Could you review my code?
|
You don't need to specify the entire message, just a part of it is enough.
Nope, lgtm
Should be fixed by the |
Wonderful. Thanks for going all the way and making it an @bors r+ |
📌 Commit bd1551e has been approved by |
…bute-1, r=oli-obk Implement `check_attribute` to forbid `#[allow_internal_unsafe]` Fixes rust-lang#56768. r? @oli-obk
Rollup of 8 pull requests Successful merges: - #56044 (Drop partially bound function parameters in the expected order) - #57352 (forbid manually impl'ing one of an object type's marker traits) - #57456 (RawVec doesn't always abort on allocation errors) - #57467 (Implement `check_attribute` to forbid `#[allow_internal_unsafe]`) - #57579 (Add core::iter::once_with()) - #57587 (Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test) - #57608 (Simplify 'product' factorial example) - #57614 ([rustdoc] Fix crates filtering box not being filled) Failed merges: r? @ghost
Fixes #56768.
r? @oli-obk