Complete crate, super and self in non-usetree paths

This commit is contained in:
Lukas Wirth 2021-07-07 19:08:37 +02:00
parent 2b6770c936
commit 9f9cc72ee5
10 changed files with 126 additions and 57 deletions

View file

@ -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::
"#]],
);
}