mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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})")),
|
||||
// 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…
Reference in a new issue