Merge #7726
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:
commit
1349f6a791
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user