about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
blob: 0f8c96c92689af8378dbe9f466c6bf15a3a27458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
tree 86cc1eb6c7f90d6f718fbe3bc2955276b316f91f
parent ca8bd3ec42c9ab98b53c3402041e1e78bcc948a4
parent 3dd5e273b6a86adb13a1b9d8677ff4116cbdb679
author bors[bot] <26634292+bors[bot]@users.noreply.github.com> 1641653161 +0000
committer GitHub <noreply@github.com> 1641653161 +0000
gpgsig -----BEGIN PGP SIGNATURE-----
 
 wsBcBAABCAAQBQJh2aOpCRBK7hj4Ov3rIwAARQMIAGCFhvz50WPwmVhvyPPH5wyI
 yJdvuyhB9+Kg3NJXWBruy1+okG2Qyq5lyQ495k/RXow6/vOsiHyQjPHqfq4m61Kv
 eFbtcJYhzp2kBzS9vUtWx34wFU7a03bwKaQQpM++fLInKzt3mRBeUUjhSgTperkd
 C0fKrb4pFHlZa2stBwV5AqTTVt7Y10sjm24f2kvcSSmty3fGono+ZPAc0JkCfHPH
 BtrEvr5EKgUPn/66Sx5ftTunMuC9DL3ynfu2TjpmbB8OC4COFQi7mhlL7ZtBJVKy
 MTLcI8UZh3DzJVGWQD2dFL2vY1nf4A6FoDOob+OjwWtu3bn556hIaH5As9uFSwE=
 =rfyd
 -----END PGP SIGNATURE-----
 

Merge #11238

11238: fix: shrink the span of errors from attribute macros and derives r=jonas-schievink a=jonas-schievink

Some procedural macros tend to get very large invocations, for example RTIC's, leading to issues like https://github.com/rtic-rs/cortex-m-rtic/issues/582, where almost the entire screen is underlined while editing incomplete code in the macro.

This PR shrinks the spans of errors from attribute macros and derives to point only at the attribute, which also matches rustc more closely.

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>