about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-08 20:48:34 +0530
committerGitHub <noreply@github.com>2022-09-08 20:48:34 +0530
commitb5ffbd32d4838a460a73ce9aa106a4e1856e52c0 (patch)
tree1e905d691d34858fa9b1c8ec42085ada806826dd /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1561922a1279abbf8dbb3620b9bbe7f725853a86 (diff)
parent48281b003ff84b230947f64aad9054113f757795 (diff)
downloadrust-b5ffbd32d4838a460a73ce9aa106a4e1856e52c0.tar.gz
rust-b5ffbd32d4838a460a73ce9aa106a4e1856e52c0.zip
Rollup merge of #101424 - compiler-errors:operator-err-sugg, r=TaKO8Ki
Adjust and slightly generalize operator error suggestion

(in no particular order)
* Stop passing around a whole extra `ProjectionPredicate`
* Add spaces around `=` in `Trait<..., Output = Ty>` suggestion
* Some code clean-ups, including
    * add `lang_item_for_op` to turn a `Op` into a `DefId`
    * avoid `SourceMap` because we don't really need to render an expr
    * Remove `TypeParamVisitor` in favor of just checking `ty.has_param_types_or_consts` -- this acts a bit differently, but shouldn't cause erroneous suggestions (actually might generalize them a bit)
* We now suggest `Output = Ty` in the `where` clause suggestion when we fail to add `Struct<T>` and `T`.

I can split this out into more PRs if needed, but they're all just miscellaneous generalizations, changes, and nitpicks I saw when messing with this operator code.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions