diff options
| author | bors <bors@rust-lang.org> | 2022-10-02 10:39:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-02 10:39:04 +0000 |
| commit | 5d837b58f7b534ef78f2144b79ad71f21148df1b (patch) | |
| tree | 036d8ee8dc898531e10feae532f526b48dab1dd9 /tests/codegen/src-hash-algorithm | |
| parent | cb8da671949616bde5e8cec995de4c7bd12e12ca (diff) | |
| parent | 52a68dc097cc8064a7464598bca959f2706aab18 (diff) | |
| download | rust-5d837b58f7b534ef78f2144b79ad71f21148df1b.tar.gz rust-5d837b58f7b534ef78f2144b79ad71f21148df1b.zip | |
Auto merge of #9573 - Alexendoo:needless-borrowed-ref-slice, r=dswij
lint nested patterns and slice patterns in `needless_borrowed_reference` Now lints in positions other than top level, e.g. `Some(&ref a)`. Or patterns are excluded as that can cause issues Slice patterns of `ref`s are now linted, e.g. `&[ref a, ref b]`. An easy one to walk into as you might expect that to match against a slice you should use `&[]`, then to get around a `cannot move out of type [T]` error you apply a `ref` changelog: [`needless_borrowed_reference`]: lint nested patterns and slice patterns
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
