fix: Fix lint completions not working for unclosed attributes

This commit is contained in:
Lukas Wirth 2021-12-11 15:55:25 +01:00
parent 03f6d92ae4
commit 0001a42570
3 changed files with 39 additions and 25 deletions

View file

@ -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 {