mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-29 23:44:08 +00:00
this could arguably be 2 separate PRs, but both of these were brought up in the same issue, so.. fixes https://github.com/rust-lang/rust-clippy/issues/15398 - [x] I'm a bit doubtful about the last commit -- see the message for my reasoning and do let me know whether it's right. changelog: [`borrow_as_ptr`]: don't lint inside proc-macros changelog: [`ptr_as_ptr`]: don't lint inside proc-macros