]> git.lizzy.rs Git - rust.git/commit
Add lint `swap_ptr_to_ref`
authorJason Newcomb <jsnewcomb@pm.me>
Mon, 30 May 2022 16:36:05 +0000 (12:36 -0400)
committerJason Newcomb <jsnewcomb@pm.me>
Tue, 31 May 2022 17:08:05 +0000 (13:08 -0400)
commitca78e2428e25524831231263c579e390f7dbd1e3
tree6e0d140df8d64749611e0b569c2105295133d36c
parent5b1a4c0d763f51ba6ecd7e378e18a94d8b55c2bd
Add lint `swap_ptr_to_ref`
12 files changed:
CHANGELOG.md
clippy_lints/src/lib.register_all.rs
clippy_lints/src/lib.register_lints.rs
clippy_lints/src/lib.register_suspicious.rs
clippy_lints/src/lib.rs
clippy_lints/src/swap_ptr_to_ref.rs [new file with mode: 0644]
clippy_utils/src/paths.rs
tests/ui/swap_ptr_to_ref.fixed [new file with mode: 0644]
tests/ui/swap_ptr_to_ref.rs [new file with mode: 0644]
tests/ui/swap_ptr_to_ref.stderr [new file with mode: 0644]
tests/ui/swap_ptr_to_ref_unfixable.rs [new file with mode: 0644]
tests/ui/swap_ptr_to_ref_unfixable.stderr [new file with mode: 0644]