diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-05-15 01:20:52 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-05-23 11:12:31 +0200 |
| commit | 0a059d9e971863b02259cb23e6fa82043db8b304 (patch) | |
| tree | cb00200d65952a09fce4db7cbe0ec8b59dfe0cd8 /compiler/rustc_codegen_gcc | |
| parent | 40bead02a528980645dda94a63b16526f9d2ffc3 (diff) | |
| download | rust-0a059d9e971863b02259cb23e6fa82043db8b304.tar.gz rust-0a059d9e971863b02259cb23e6fa82043db8b304.zip | |
`needless_borrow`: do not contradict `dangerous_implicit_autorefs`
Rust 1.88 introduces the `dangerous_implicit_autorefs` lint which warns about using implicit autorefs on a place obtained from a raw pointer, as this may create aliasing issues. Prevent `clippy::needless_borrow` from triggering in this case, by disabling the lint when taking a reference on a raw pointer dereference. There might be a better way for doing this in the long run with a finer way of distinguish the problematic cases, but this will prevent Clippy from contradicting the compiler in the meantime.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
