mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Change the should_panic completion and his related attribute test
This commit is contained in:
parent
220c838bc6
commit
e3d39cf2b1
1 changed files with 3 additions and 7 deletions
|
@ -136,11 +136,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
|
||||||
attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}"))
|
attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}"))
|
||||||
.prefer_inner(),
|
.prefer_inner(),
|
||||||
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
|
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
|
||||||
attr(
|
attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
|
||||||
"should_panic(…)",
|
|
||||||
Some("should_panic"),
|
|
||||||
Some(r#"should_panic(expected = "${0:reason}")"#),
|
|
||||||
),
|
|
||||||
attr(
|
attr(
|
||||||
r#"target_feature = "…""#,
|
r#"target_feature = "…""#,
|
||||||
Some("target_feature"),
|
Some("target_feature"),
|
||||||
|
@ -496,7 +492,7 @@ struct Test {}
|
||||||
at proc_macro_attribute
|
at proc_macro_attribute
|
||||||
at proc_macro_derive(…)
|
at proc_macro_derive(…)
|
||||||
at repr(…)
|
at repr(…)
|
||||||
at should_panic(…)
|
at should_panic
|
||||||
at target_feature = "…"
|
at target_feature = "…"
|
||||||
at test
|
at test
|
||||||
at track_caller
|
at track_caller
|
||||||
|
@ -551,7 +547,7 @@ struct Test {}
|
||||||
at proc_macro_derive(…)
|
at proc_macro_derive(…)
|
||||||
at recursion_limit = …
|
at recursion_limit = …
|
||||||
at repr(…)
|
at repr(…)
|
||||||
at should_panic(…)
|
at should_panic
|
||||||
at target_feature = "…"
|
at target_feature = "…"
|
||||||
at test
|
at test
|
||||||
at track_caller
|
at track_caller
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue