mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Refactor ide handling for paths in derive inputs
This commit is contained in:
parent
f4ba64ee2a
commit
3018ffd85e
15 changed files with 142 additions and 77 deletions
|
@ -11,19 +11,11 @@ fn test_highlighting() {
|
|||
check_highlighting(
|
||||
r#"
|
||||
//- proc_macros: identity, mirror
|
||||
//- minicore: derive, copy
|
||||
//- /main.rs crate:main deps:foo
|
||||
use inner::{self as inner_mod};
|
||||
mod inner {}
|
||||
|
||||
#[rustc_builtin_macro]
|
||||
macro Copy {}
|
||||
|
||||
// Needed for function consuming vs normal
|
||||
pub mod marker {
|
||||
#[lang = "copy"]
|
||||
pub trait Copy {}
|
||||
}
|
||||
|
||||
#[proc_macros::identity]
|
||||
pub mod ops {
|
||||
#[lang = "fn_once"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue