From 64f8ec46324ebe838d10bd2ae739b543ca894a86 Mon Sep 17 00:00:00 2001 From: FlowerBOII <42295129+FlowerBOII@users.noreply.github.com> Date: Wed, 6 Jan 2021 11:06:02 +0100 Subject: Remove a part of the deprecated autocompletion --- crates/completion/src/completions/attribute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/completion/src') diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index 8695eed39..89ba68dc7 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs @@ -98,7 +98,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ attr(r#"crate_name = """#, Some("crate_name"), Some(r#"crate_name = "${0:crate_name}""#)) .prefer_inner(), attr("deny(…)", Some("deny"), Some("deny(${0:lint})")), - attr(r#"deprecated = "…""#, Some("deprecated"), Some(r#"deprecated = "${0:reason}""#)), + attr(r#"deprecated "…""#, Some("deprecated"), Some(r#"deprecated"#)), attr("derive(…)", Some("derive"), Some(r#"derive(${0:Debug})"#)), attr( r#"export_name = "…""#, -- cgit v1.2.3 From db0a844ad83cb8a68e91ec40c2fa0680f512b012 Mon Sep 17 00:00:00 2001 From: FlowerBOII <42295129+FlowerBOII@users.noreply.github.com> Date: Wed, 6 Jan 2021 11:07:57 +0100 Subject: Update deprecated test --- crates/completion/src/completions/attribute.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/completion/src') diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index 89ba68dc7..53c2e87dc 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs @@ -98,7 +98,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ attr(r#"crate_name = """#, Some("crate_name"), Some(r#"crate_name = "${0:crate_name}""#)) .prefer_inner(), attr("deny(…)", Some("deny"), Some("deny(${0:lint})")), - attr(r#"deprecated "…""#, Some("deprecated"), Some(r#"deprecated"#)), + attr(r#"deprecated"#, Some("deprecated"), Some(r#"deprecated"#)), attr("derive(…)", Some("derive"), Some(r#"derive(${0:Debug})"#)), attr( r#"export_name = "…""#, @@ -476,7 +476,7 @@ struct Test {} at cfg(…) at cold at deny(…) - at deprecated = "…" + at deprecated at derive(…) at export_name = "…" at doc = "…" @@ -523,7 +523,7 @@ struct Test {} at cold at crate_name = "" at deny(…) - at deprecated = "…" + at deprecated at derive(…) at export_name = "…" at doc = "…" -- cgit v1.2.3 From 220c838bc6d97772f96a5b2b85579e49c6f8e929 Mon Sep 17 00:00:00 2001 From: FlowerBOII <42295129+FlowerBOII@users.noreply.github.com> Date: Wed, 6 Jan 2021 12:04:23 +0100 Subject: Remove the args for the must_use attibute and change the related tests --- crates/completion/src/completions/attribute.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/completion/src') diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index 53c2e87dc..525ce7684 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs @@ -121,7 +121,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ ), attr("macro_export", None, None), attr("macro_use", None, None), - attr(r#"must_use = "…""#, Some("must_use"), Some(r#"must_use = "${0:reason}""#)), + attr(r#"must_use"#, Some("must_use"), Some(r#"must_use"#)), attr("no_link", None, None).prefer_inner(), attr("no_implicit_prelude", None, None).prefer_inner(), attr("no_main", None, None).prefer_inner(), @@ -488,7 +488,7 @@ struct Test {} at link_section = "…" at macro_export at macro_use - at must_use = "…" + at must_use at no_mangle at non_exhaustive at path = "…" @@ -537,7 +537,7 @@ struct Test {} at link_section = "…" at macro_export at macro_use - at must_use = "…" + at must_use at no_link at no_implicit_prelude at no_main -- cgit v1.2.3 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') 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