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') 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