mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Merge the different identifier contexts into one enum
This commit is contained in:
parent
99fa37d6e3
commit
44c3cc100b
13 changed files with 138 additions and 91 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue