diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-01-17 12:24:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-17 12:24:44 +0000 |
| commit | 19f97802cacd60b68a3fdcbda198cbe3d3c6878f (patch) | |
| tree | 8627021c1234f359214c5e6efe6cf7ebad35004d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 152f425dcb118f5e92a060d259d3b5236aa59333 (diff) | |
| parent | b498870d9c992e61e0f7930f2679b091b5f2ddbc (diff) | |
| download | rust-19f97802cacd60b68a3fdcbda198cbe3d3c6878f.tar.gz rust-19f97802cacd60b68a3fdcbda198cbe3d3c6878f.zip | |
Rollup merge of #80635 - sexxi-goose:use-place-instead-of-symbol, r=nikomatsakis`
Improve diagnostics when closure doesn't meet trait bound Improves the diagnostics when closure doesn't meet trait bound by modifying `TypeckResuts::closure_kind_origins` such that `hir::Place` is used instead of `Symbol`. Using `hir::Place` to describe which capture influenced the decision of selecting a trait a closure satisfies to (Fn/FnMut/FnOnce, Copy) allows us to show precise path in the diagnostics when `capture_disjoint_field` feature is enabled. Closes rust-lang/project-rfc-2229/issues/21 r? ```@nikomatsakis```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
