mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +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
|
@ -3651,6 +3651,7 @@ use crate as foo$0;
|
|||
fn hover_attribute_in_macro() {
|
||||
check(
|
||||
r#"
|
||||
//- minicore:derive
|
||||
macro_rules! identity {
|
||||
($struct:item) => {
|
||||
$struct
|
||||
|
@ -3681,6 +3682,7 @@ identity!{
|
|||
fn hover_derive_input() {
|
||||
check(
|
||||
r#"
|
||||
//- minicore:derive
|
||||
#[rustc_builtin_macro]
|
||||
pub macro Copy {}
|
||||
#[derive(Copy$0)]
|
||||
|
@ -3700,6 +3702,7 @@ struct Foo;
|
|||
);
|
||||
check(
|
||||
r#"
|
||||
//- minicore:derive
|
||||
mod foo {
|
||||
#[rustc_builtin_macro]
|
||||
pub macro Copy {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue