diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-20 14:18:34 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-20 14:18:34 +0000 |
commit | 1349f6a79177c6b1ba6880cd5d675c12df70688c (patch) | |
tree | dd3a04b5e518d60cb209dcf2aa65644e2c1facae /crates | |
parent | 459e10eb74796aeae78c1e741289881365d360f0 (diff) | |
parent | cf32dbd9bf20ac4fb4a28f4f7abb7d6a3484cef0 (diff) |
Merge #7726
7726: feat(completion): add doc(hidden) completion for attributes r=lnicola a=bnjjj
Co-authored-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide_completion/src/completions/attribute.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide_completion/src/completions/attribute.rs b/crates/ide_completion/src/completions/attribute.rs index ab25a8c58..3a5bc4381 100644 --- a/crates/ide_completion/src/completions/attribute.rs +++ b/crates/ide_completion/src/completions/attribute.rs | |||
@@ -101,6 +101,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ | |||
101 | ), | 101 | ), |
102 | attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)), | 102 | attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)), |
103 | attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)), | 103 | attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)), |
104 | attr(r#"doc(hidden)"#, Some("dochidden"), Some(r#"doc(hidden)"#)), | ||
104 | attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(), | 105 | attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(), |
105 | attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")), | 106 | attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")), |
106 | // FIXME: resolve through macro resolution? | 107 | // FIXME: resolve through macro resolution? |
@@ -471,6 +472,7 @@ struct Test {} | |||
471 | at export_name = "…" | 472 | at export_name = "…" |
472 | at doc(alias = "…") | 473 | at doc(alias = "…") |
473 | at doc = "…" | 474 | at doc = "…" |
475 | at doc(hidden) | ||
474 | at forbid(…) | 476 | at forbid(…) |
475 | at ignore = "…" | 477 | at ignore = "…" |
476 | at inline | 478 | at inline |
@@ -519,6 +521,7 @@ struct Test {} | |||
519 | at export_name = "…" | 521 | at export_name = "…" |
520 | at doc(alias = "…") | 522 | at doc(alias = "…") |
521 | at doc = "…" | 523 | at doc = "…" |
524 | at doc(hidden) | ||
522 | at feature(…) | 525 | at feature(…) |
523 | at forbid(…) | 526 | at forbid(…) |
524 | at global_allocator | 527 | at global_allocator |