Remove the args for the must_use attibute and change the related tests

This commit is contained in:
FlowerBOII
2021-01-06 12:04:23 +01:00
parent db0a844ad8
commit 220c838bc6
@@ -121,7 +121,7 @@ const fn attr(
),
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 @@ fn test_attribute_completion() {
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 @@ fn test_inner_attribute_completion() {
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