mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
fix: Fix lint completions not working for unclosed attributes
This commit is contained in:
parent
03f6d92ae4
commit
0001a42570
3 changed files with 39 additions and 25 deletions
|
@ -831,6 +831,20 @@ mod lint {
|
|||
r#"#[allow(rustdoc::bare_urls)] struct Test;"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn lint_unclosed() {
|
||||
check_edit(
|
||||
"deprecated",
|
||||
r#"#[allow(dep$0 struct Test;"#,
|
||||
r#"#[allow(deprecated struct Test;"#,
|
||||
);
|
||||
check_edit(
|
||||
"bare_urls",
|
||||
r#"#[allow(rustdoc::$0 struct Test;"#,
|
||||
r#"#[allow(rustdoc::bare_urls struct Test;"#,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
mod repr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue