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/proc_macro_test/Cargo.toml | |
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


Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/proc_macro_test/Cargo.toml')
0 files changed, 0 insertions, 0 deletions