about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
blob: 13da28cc2bc1b59f7af817eca36927a71edb023c (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 a8cb03b4e8afd7d499308bd9f4b387db90b353a3
parent d616a6a45697589a5fb4eeb4a30382322f8b8184
parent 1d5c60ff548c082a59eebda4bbaede99cec3cc4d
author bors[bot] <26634292+bors[bot]@users.noreply.github.com> 1622991006 +0000
committer GitHub <noreply@github.com> 1622991006 +0000
gpgsig -----BEGIN PGP SIGNATURE-----
 
 wsBcBAABCAAQBQJgvOCeCRBK7hj4Ov3rIwAA2twIAI2y1Jf+M9iSk5uPT42FaPMs
 CM8PNwS1IgN8d+4Ib7QRgatYfHrUDnC1P88fHGU1RtadGVX7cwK/WwhLLwwA/U68
 mHcr4MeM0tC3FsqE7be8rNHxstozGjaF1PQaxuyWYlJ03N7cKRfYMEZdsnDKVb95
 l9xK8MV67/UQczt6IlbVLXMa9LF2qHXgbZsYcEWKz0eDPut23D25vQzs5htxvRJo
 77E4jsx5roeK/98wehEKmCAGAT4bpHsgl7n8XIp/Myh/wnvIMIQgfoloQEI5l2mf
 vEGdFdK0RX2nyrRCNg9zyw6KEjLxe2KQblgM3qLBv+3kTmiFxxQFZ7j1IRt3GiA=
 =OYM6
 -----END PGP SIGNATURE-----
 

Merge #9155

9155: internal: replace attribute with equivalent whitespace r=jonas-schievink a=jonas-schievink

This is needed to that the `TokenMap` we create contains offsets that match the source. Currently the offsets don't match because the attribute is removed, shifting all subsequent token offsets by the attribute's text length.

Currently this fix has no visible effect because we don't remap tokens in attribute macros.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>