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 <avrong@avrong.me>
This commit is contained in:
commit
70d1b848eb
@ -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 = "…"
|
||||
|
Loading…
x
Reference in New Issue
Block a user