diff options
| author | bors <bors@rust-lang.org> | 2022-07-12 15:48:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-12 15:48:55 +0000 |
| commit | 9ebacd48742e2cdefa406de2a84753f4a078912d (patch) | |
| tree | 557b7ac1c3d2404eeb993726bd206ab962b87869 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | eabad8ea53235103e86688b2e39f63067a17ea87 (diff) | |
| parent | 8878d674b1d030cbf87605fce2ebbd05cc8f3670 (diff) | |
| download | rust-9ebacd48742e2cdefa406de2a84753f4a078912d.tar.gz rust-9ebacd48742e2cdefa406de2a84753f4a078912d.zip | |
Auto merge of #8703 - aldhsu:add_repeated_where_clause_or_trait_bound, r=flip1995
Add `repeated_where_clause_or_trait_bound` lint I thought I would try and scratch my own itch for #8674. 1. Is comparing the `Res` the correct way for ensuring we have the same trait? 2. Is there a way to get the spans for the bounds and clauses for suggestions? I tried to use `GenericParam::bounds_span_for_suggestions` but it only gave me an empty span at the end of the spans. I tried `WhereClause::span_for_predicates_or_empty_place` and it included the comma. 3. Is there a simpler way to get the trait names? I have used the spans of the traits because I didn't see a way to get it off the `Res` or `Def`. changelog: Add ``[`repeated_where_clause_or_trait_bound`]`` lint.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
