Skip to content

Commit e78d468

Browse files
committed
Fix ignore attribute autocompletion
1 parent 1a9d772 commit e78d468

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ra_ide/src/completion/complete_attribute.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
8585
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
8686
// FIXME: resolve through macro resolution?
8787
attr("global_allocator", None, None).prefer_inner(),
88-
attr("ignore(…)", Some("ignore"), Some("ignore(${0:lint})")),
88+
attr(r#"ignore = "…""#, Some("ignore"), Some(r#"ignore = "${0:reason}""#)),
8989
attr("inline(…)", Some("inline"), Some("inline(${0:lint})")),
9090
attr(r#"link_name = "…""#, Some("link_name"), Some(r#"link_name = "${0:symbol_name}""#)),
9191
attr("link", None, None),
@@ -300,7 +300,7 @@ struct Test {}
300300
at derive(…)
301301
at doc = "…"
302302
at forbid(…)
303-
at ignore(…)
303+
at ignore = "…"
304304
at inline(…)
305305
at link
306306
at link_name = "…"
@@ -343,7 +343,7 @@ struct Test {}
343343
at feature(…)
344344
at forbid(…)
345345
at global_allocator
346-
at ignore(…)
346+
at ignore = "…"
347347
at inline(…)
348348
at link
349349
at link_name = "…"

0 commit comments

Comments
 (0)