diff options
author | FlowerBOII <[email protected]> | 2021-01-06 11:23:19 +0000 |
---|---|---|
committer | FlowerBOII <[email protected]> | 2021-01-06 11:23:19 +0000 |
commit | e3d39cf2b1f648ea0f1ab908913bff1942d02945 (patch) | |
tree | 5697930c8e659f6554308add5e076502c1fc05af /crates/completion/src | |
parent | 220c838bc6d97772f96a5b2b85579e49c6f8e929 (diff) |
Change the should_panic completion and his related attribute test
Diffstat (limited to 'crates/completion/src')
-rw-r--r-- | crates/completion/src/completions/attribute.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index 525ce7684..17276b5a4 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs | |||
@@ -136,11 +136,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ | |||
136 | attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}")) | 136 | attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}")) |
137 | .prefer_inner(), | 137 | .prefer_inner(), |
138 | attr("repr(…)", Some("repr"), Some("repr(${0:C})")), | 138 | attr("repr(…)", Some("repr"), Some("repr(${0:C})")), |
139 | attr( | 139 | attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)), |
140 | "should_panic(…)", | ||
141 | Some("should_panic"), | ||
142 | Some(r#"should_panic(expected = "${0:reason}")"#), | ||
143 | ), | ||
144 | attr( | 140 | attr( |
145 | r#"target_feature = "…""#, | 141 | r#"target_feature = "…""#, |
146 | Some("target_feature"), | 142 | Some("target_feature"), |
@@ -496,7 +492,7 @@ struct Test {} | |||
496 | at proc_macro_attribute | 492 | at proc_macro_attribute |
497 | at proc_macro_derive(…) | 493 | at proc_macro_derive(…) |
498 | at repr(…) | 494 | at repr(…) |
499 | at should_panic(…) | 495 | at should_panic |
500 | at target_feature = "…" | 496 | at target_feature = "…" |
501 | at test | 497 | at test |
502 | at track_caller | 498 | at track_caller |
@@ -551,7 +547,7 @@ struct Test {} | |||
551 | at proc_macro_derive(…) | 547 | at proc_macro_derive(…) |
552 | at recursion_limit = … | 548 | at recursion_limit = … |
553 | at repr(…) | 549 | at repr(…) |
554 | at should_panic(…) | 550 | at should_panic |
555 | at target_feature = "…" | 551 | at target_feature = "…" |
556 | at test | 552 | at test |
557 | at track_caller | 553 | at track_caller |