diff options
| author | bors <bors@rust-lang.org> | 2022-06-28 18:09:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-28 18:09:26 +0000 |
| commit | a4130e16124e58ae6c6e6eb201ffced2c1964145 (patch) | |
| tree | 5c05b6ac518cc058976e2120af332453606dfdc5 /compiler/rustc_codegen_llvm/src | |
| parent | 23c6765276c968bf0fe4ee01f619f357b78390ca (diff) | |
| parent | 5e2a2d3ac993cc6b89e561e69b4571d95d0f7627 (diff) | |
| download | rust-a4130e16124e58ae6c6e6eb201ffced2c1964145.tar.gz rust-a4130e16124e58ae6c6e6eb201ffced2c1964145.zip | |
Auto merge of #8355 - Jarcho:explicit_auto_deref_2, r=flip1995
Add lint `explicit_auto_deref` take 2 fixes: #234 fixes: #8367 fixes: #8380 Still things to do: * ~~This currently only lints `&*<expr>` when it doesn't trigger `needless_borrow`.~~ * ~~This requires a borrow after a deref to trigger. So `*<expr>` changing `&&T` to `&T` won't be caught.~~ * The `deref` and `deref_mut` trait methods aren't linted. * Neither ~~field accesses~~, nor method receivers are linted. * ~~This probably shouldn't lint reborrowing.~~ * Full slicing to deref should probably be handled here as well. e.g. `&vec[..]` when just `&vec` would do changelog: new lint `explicit_auto_deref`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
