From 52bce6bf5d6a41ed5b2a3cd3606c8acf3918a9f9 Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Mon, 18 Jan 2021 20:49:59 +0100 Subject: Delete optional arg for inline attr and add doc alias attr completion #7167 Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/completion/src/completions/attribute.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index e5522980d..ab25a8c58 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs @@ -99,13 +99,14 @@ const ATTRIBUTES: &[AttrCompletion] = &[ Some("export_name"), Some(r#"export_name = "${0:exported_symbol_name}""#), ), + attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)), attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)), attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(), attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")), // FIXME: resolve through macro resolution? attr("global_allocator", None, None).prefer_inner(), attr(r#"ignore = "…""#, Some("ignore"), Some(r#"ignore = "${0:reason}""#)), - attr("inline(…)", Some("inline"), Some("inline(${0:lint})")), + attr("inline", Some("inline"), Some("inline")), attr("link", None, None), attr(r#"link_name = "…""#, Some("link_name"), Some(r#"link_name = "${0:symbol_name}""#)), attr( @@ -468,10 +469,11 @@ struct Test {} at deprecated at derive(…) at export_name = "…" + at doc(alias = "…") at doc = "…" at forbid(…) at ignore = "…" - at inline(…) + at inline at link at link_name = "…" at link_section = "…" @@ -515,12 +517,13 @@ struct Test {} at deprecated at derive(…) at export_name = "…" + at doc(alias = "…") at doc = "…" at feature(…) at forbid(…) at global_allocator at ignore = "…" - at inline(…) + at inline at link at link_name = "…" at link_section = "…" -- cgit v1.2.3