mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Fix ignore attribute autocompletion
This commit is contained in:
parent
1a9d7724da
commit
e78d468b22
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
|
||||||
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
|
attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")),
|
||||||
// FIXME: resolve through macro resolution?
|
// FIXME: resolve through macro resolution?
|
||||||
attr("global_allocator", None, None).prefer_inner(),
|
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("inline(…)", Some("inline"), Some("inline(${0:lint})")),
|
||||||
attr(r#"link_name = "…""#, Some("link_name"), Some(r#"link_name = "${0:symbol_name}""#)),
|
attr(r#"link_name = "…""#, Some("link_name"), Some(r#"link_name = "${0:symbol_name}""#)),
|
||||||
attr("link", None, None),
|
attr("link", None, None),
|
||||||
|
@ -300,7 +300,7 @@ struct Test {}
|
||||||
at derive(…)
|
at derive(…)
|
||||||
at doc = "…"
|
at doc = "…"
|
||||||
at forbid(…)
|
at forbid(…)
|
||||||
at ignore(…)
|
at ignore = "…"
|
||||||
at inline(…)
|
at inline(…)
|
||||||
at link
|
at link
|
||||||
at link_name = "…"
|
at link_name = "…"
|
||||||
|
@ -343,7 +343,7 @@ struct Test {}
|
||||||
at feature(…)
|
at feature(…)
|
||||||
at forbid(…)
|
at forbid(…)
|
||||||
at global_allocator
|
at global_allocator
|
||||||
at ignore(…)
|
at ignore = "…"
|
||||||
at inline(…)
|
at inline(…)
|
||||||
at link
|
at link
|
||||||
at link_name = "…"
|
at link_name = "…"
|
||||||
|
|
Loading…
Reference in a new issue