diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-01 22:22:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-01 22:22:11 +0100 |
commit | ea8feca31ade2b23d1e1b4cb7b0ad816de792acd (patch) | |
tree | 0d385d5153ff36d9e19244fb9ad978b217004a45 /crates/hir_def/src/attr.rs | |
parent | 5ef0c7a21387c219478754393bf9ac1b1cebf0d4 (diff) | |
parent | 608a4653a3be3a35afce900e13d8b001fe4c5356 (diff) |
Merge #8265
8265: Improve rustc diagnostic mapping r=jonas-schievink a=jonas-schievink
Try to mirror rustc diagnostics more closely by:
* Emitting hint-level diagnostics at *all* macro invocation sites that caused the diagnostic
* Previously we emitted a copy of the diagnostic (not at hint level) at the last macro invocation site only
* Emitting the original diagnostic inside the macro, if it was caused by a macro
* Always including related information pointing to the invocation site or the macro, respectively (the old code contained a bug that would sometimes omit it)
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8260
![screenshot-2021-03-30-19:34:56](https://user-images.githubusercontent.com/1786438/113031484-1266a600-918f-11eb-9164-fed01c8ba37e.png)
![screenshot-2021-03-30-19:35:10](https://user-images.githubusercontent.com/1786438/113031486-12ff3c80-918f-11eb-8f15-9d7f23b69653.png)
Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src/attr.rs')
0 files changed, 0 insertions, 0 deletions