Open
Description
openedon Oct 28, 2024
If you want to do it in this PR (otherwise in a follow-up), we could add an
rustc
attribute to thoseas_ptr
/as_mut_ptr
methods.You can follow afcb09b and 2a930d3 (from a PR of mine) with
check_applied_to_fn_or_method
instead, and something similar to this to check the attributerust/compiler/rustc_lint/src/ptr_nulls.rs
Lines 49 to 50 in e454c45
Originally posted by @Urgau in #128985 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: Lints (warnings about flaws in source code) such as unused_mut.Category: PRs that clean code up or issues documenting cleanup.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.