about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-05-15 01:20:52 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-05-23 11:12:31 +0200
commit0a059d9e971863b02259cb23e6fa82043db8b304 (patch)
treecb00200d65952a09fce4db7cbe0ec8b59dfe0cd8 /compiler/rustc_codegen_gcc
parent40bead02a528980645dda94a63b16526f9d2ffc3 (diff)
downloadrust-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