From e78d468b22eb3624ada96cb3ad0d99a7220a0334 Mon Sep 17 00:00:00 2001 From: Aleksei Trifonov Date: Sun, 12 Jul 2020 11:17:15 +0300 Subject: Fix ignore attribute autocompletion --- crates/ra_ide/src/completion/complete_attribute.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_ide/src/completion') diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs index 047299de9..d268c92be 100644 --- a/crates/ra_ide/src/completion/complete_attribute.rs +++ b/crates/ra_ide/src/completion/complete_attribute.rs @@ -85,7 +85,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")), // FIXME: resolve through macro resolution? attr("global_allocator", None, None).prefer_inner(), - attr("ignore(…)", Some("ignore"), Some("ignore(${0:lint})")), + attr(r#"ignore = "…""#, Some("ignore"), Some(r#"ignore = "${0:reason}""#)), attr("inline(…)", Some("inline"), Some("inline(${0:lint})")), attr(r#"link_name = "…""#, Some("link_name"), Some(r#"link_name = "${0:symbol_name}""#)), attr("link", None, None), @@ -300,7 +300,7 @@ struct Test {} at derive(…) at doc = "…" at forbid(…) - at ignore(…) + at ignore = "…" at inline(…) at link at link_name = "…" @@ -343,7 +343,7 @@ struct Test {} at feature(…) at forbid(…) at global_allocator - at ignore(…) + at ignore = "…" at inline(…) at link at link_name = "…" -- cgit v1.2.3