7726: feat(completion): add doc(hidden) completion for attributes r=lnicola a=bnjjj



Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
bors[bot] 2021-02-20 14:18:34 +00:00 committed by GitHub
commit 1349f6a791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,7 @@ const fn attr(
),
attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)),
attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)),
attr(r#"doc(hidden)"#, Some("dochidden"), Some(r#"doc(hidden)"#)),
attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(),
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
// FIXME: resolve through macro resolution?
@ -471,6 +472,7 @@ fn test_attribute_completion() {
at export_name = ""
at doc(alias = "")
at doc = ""
at doc(hidden)
at forbid()
at ignore = ""
at inline
@ -519,6 +521,7 @@ fn test_inner_attribute_completion() {
at export_name = ""
at doc(alias = "")
at doc = ""
at doc(hidden)
at feature()
at forbid()
at global_allocator