rust/crates
bors[bot] ea8feca31a
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 <jonasschievink@gmail.com>
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2021-04-01 21:22:11 +00:00
..
base_db internal: track missing .check_cancelled 2021-03-29 21:38:23 +03:00
cfg a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Resolve associated types with type anchors 2021-04-01 21:52:07 +02:00
hir_def Fix block inner item defined in macro 2021-04-01 03:45:21 +08:00
hir_expand internal: document semantics for missing names 2021-03-31 13:24:08 +03:00
hir_ty Merge #8283 2021-04-01 21:11:06 +00:00
ide Merge #8283 2021-04-01 21:11:06 +00:00
ide_assists Merge #8210 2021-03-31 12:26:57 +00:00
ide_completion Resolve associated types 2021-04-01 21:31:25 +02:00
ide_db Merge #8267 2021-03-31 10:01:56 +00:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
parser Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08:00
proc_macro_srv Fix parse u128 bug in proc-macro 2021-03-31 19:50:36 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile internal: revive google_cpu_profile infra 2021-03-30 17:29:43 +03:00
project_model clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
rust-analyzer Merge #8265 2021-04-01 21:22:11 +00:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Add support for doc on hover for macro 2.0 2021-03-27 14:57:11 +08:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00