Skip to content

Commit 70d1b84

Browse files
bors[bot]avrong
andauthored
Merge #5330
5330: Fix ignore attribute autocompletion r=matklad a=avrong Fixes #5232 <img width="273" alt="image" src="https://user-images.githubusercontent.com/6342851/87242025-a4782400-c431-11ea-91b7-5127f9742122.png"> <img width="238" alt="image" src="https://user-images.githubusercontent.com/6342851/87242044-c96c9700-c431-11ea-8161-f197f8e97ca0.png"> Co-authored-by: Aleksei Trifonov <[email protected]>
2 parents 28f0171 + e78d468 commit 70d1b84

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)