mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Complete crate
, super
and self
in non-usetree paths
This commit is contained in:
parent
2b6770c936
commit
9f9cc72ee5
10 changed files with 126 additions and 57 deletions
|
@ -22,11 +22,11 @@ mod foo {}
|
|||
// nothing here
|
||||
"#,
|
||||
expect![[r#"
|
||||
kw crate::
|
||||
kw self::
|
||||
kw super::
|
||||
md foo
|
||||
md other_crate
|
||||
kw self::
|
||||
kw super::
|
||||
kw crate::
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
@ -41,7 +41,6 @@ mod foo { pub struct S; }
|
|||
use self::{foo::*, bar$0};
|
||||
"#,
|
||||
expect![[r#"
|
||||
kw self
|
||||
st S
|
||||
md foo
|
||||
"#]],
|
||||
|
@ -230,10 +229,10 @@ pub mod bar {}
|
|||
pub use $0;
|
||||
"#,
|
||||
expect![[r#"
|
||||
kw crate::
|
||||
md bar
|
||||
kw self::
|
||||
kw super::
|
||||
md bar
|
||||
kw crate::
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
@ -247,10 +246,10 @@ mod bar {}
|
|||
use {$0};
|
||||
"#,
|
||||
expect![[r#"
|
||||
kw crate::
|
||||
md bar
|
||||
kw self::
|
||||
kw super::
|
||||
md bar
|
||||
kw crate::
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue