Refactor ide handling for paths in derive inputs

This commit is contained in:
Lukas Wirth 2021-10-28 16:13:37 +02:00
parent f4ba64ee2a
commit 3018ffd85e
15 changed files with 142 additions and 77 deletions

View file

@ -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"]