]> git.lizzy.rs Git - rust.git/commit
Merge #8942
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 25 May 2021 02:30:47 +0000 (02:30 +0000)
committerGitHub <noreply@github.com>
Tue, 25 May 2021 02:30:47 +0000 (02:30 +0000)
commit8b049ec393230e4b9fea3022a3ebf34e2af5395d
treed75b9290e907898027eab2e723ed1c0040e43e4e
parent6d473c0a8f6acecbae680b69528b3f88a31dc5fc
parentd75277b66b07e3fa4fed5088b92c6f65b2de8fe9
Merge #8942

8942: Add `library` semantic token modifier to items from other crates r=arzg a=arzg

Closes #5772.

A lot of code here is pretty repetitive; please let me know if you have any ideas how to improve it, or whether it’s fine as-is.

Side-note: How can I add tests for this? I don’t see a way for the test Rust code in `test_highlighting` to reference other crates to observe the new behaviour.

Co-authored-by: Aramis Razzaghipour <aramisnoah@gmail.com>
crates/hir/src/lib.rs
crates/ide/src/inlay_hints.rs
crates/rust-analyzer/src/to_proto.rs