about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-12 15:48:55 +0000
committerbors <bors@rust-lang.org>2022-07-12 15:48:55 +0000
commit9ebacd48742e2cdefa406de2a84753f4a078912d (patch)
tree557b7ac1c3d2404eeb993726bd206ab962b87869 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parenteabad8ea53235103e86688b2e39f63067a17ea87 (diff)
parent8878d674b1d030cbf87605fce2ebbd05cc8f3670 (diff)
downloadrust-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 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions