Skip to content

Commit 1349f6a

Browse files
bors[bot]bnjjj
andauthored
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>
2 parents 459e10e + cf32dbd commit 1349f6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide_completion/src/completions/attribute.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
101101
),
102102
attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)),
103103
attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)),
104+
attr(r#"doc(hidden)"#, Some("dochidden"), Some(r#"doc(hidden)"#)),
104105
attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(),
105106
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
106107
// FIXME: resolve through macro resolution?
@@ -471,6 +472,7 @@ struct Test {}
471472
at export_name = "…"
472473
at doc(alias = "…")
473474
at doc = "…"
475+
at doc(hidden)
474476
at forbid(…)
475477
at ignore = "…"
476478
at inline
@@ -519,6 +521,7 @@ struct Test {}
519521
at export_name = "…"
520522
at doc(alias = "…")
521523
at doc = "…"
524+
at doc(hidden)
522525
at feature(…)
523526
at forbid(…)
524527
at global_allocator

0 commit comments

Comments
 (0)