From e3d39cf2b1f648ea0f1ab908913bff1942d02945 Mon Sep 17 00:00:00 2001 From: FlowerBOII <42295129+FlowerBOII@users.noreply.github.com> Date: Wed, 6 Jan 2021 12:23:19 +0100 Subject: Change the should_panic completion and his related attribute test --- crates/completion/src/completions/attribute.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crates/completion/src/completions/attribute.rs') 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] = &[ attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}")) .prefer_inner(), attr("repr(…)", Some("repr"), Some("repr(${0:C})")), - attr( - "should_panic(…)", - Some("should_panic"), - Some(r#"should_panic(expected = "${0:reason}")"#), - ), + attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)), attr( r#"target_feature = "…""#, Some("target_feature"), @@ -496,7 +492,7 @@ struct Test {} at proc_macro_attribute at proc_macro_derive(…) at repr(…) - at should_panic(…) + at should_panic at target_feature = "…" at test at track_caller @@ -551,7 +547,7 @@ struct Test {} at proc_macro_derive(…) at recursion_limit = … at repr(…) - at should_panic(…) + at should_panic at target_feature = "…" at test at track_caller -- cgit v1.2.3