Merge the different identifier contexts into one enum

This commit is contained in:
Lukas Wirth 2022-05-07 15:05:43 +02:00
parent 99fa37d6e3
commit 44c3cc100b
13 changed files with 138 additions and 91 deletions

View file

@ -579,25 +579,6 @@ fn attr_on_fn() {
);
}
#[test]
fn attr_on_expr() {
cov_mark::check!(no_keyword_completion_in_attr_of_expr);
check(
r#"fn main() { #[$0] foo() }"#,
expect![[r#"
at allow()
at cfg()
at cfg_attr()
at deny()
at forbid()
at warn()
kw crate::
kw self::
kw super::
"#]],
);
}
#[test]
fn attr_in_source_file_end() {
check(