mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
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 ATTRIBUTES: &[AttrCompletion] = &[
|
|||||||
),
|
),
|
||||||
attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)),
|
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 = "…""#, 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("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(),
|
||||||
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
|
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
|
||||||
// FIXME: resolve through macro resolution?
|
// FIXME: resolve through macro resolution?
|
||||||
@ -471,6 +472,7 @@ struct Test {}
|
|||||||
at export_name = "…"
|
at export_name = "…"
|
||||||
at doc(alias = "…")
|
at doc(alias = "…")
|
||||||
at doc = "…"
|
at doc = "…"
|
||||||
|
at doc(hidden)
|
||||||
at forbid(…)
|
at forbid(…)
|
||||||
at ignore = "…"
|
at ignore = "…"
|
||||||
at inline
|
at inline
|
||||||
@ -519,6 +521,7 @@ struct Test {}
|
|||||||
at export_name = "…"
|
at export_name = "…"
|
||||||
at doc(alias = "…")
|
at doc(alias = "…")
|
||||||
at doc = "…"
|
at doc = "…"
|
||||||
|
at doc(hidden)
|
||||||
at feature(…)
|
at feature(…)
|
||||||
at forbid(…)
|
at forbid(…)
|
||||||
at global_allocator
|
at global_allocator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user