Skip to content

Commit 3f0df08

Browse files
committed
fix: don't duplicate must_use for functions and traits
1 parent 23f79c1 commit 3f0df08

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rust-analyzer/crates/ide-completion/src/completions

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/ide-completion/src/completions/attribute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ static KIND_TO_ATTRIBUTES: LazyLock<FxHashMap<SyntaxKind, &[&str]>> = LazyLock::
264264
FN,
265265
attrs!(
266266
item, linkable,
267-
"cold", "ignore", "inline", "must_use", "panic_handler", "proc_macro",
267+
"cold", "ignore", "inline", "panic_handler", "proc_macro",
268268
"proc_macro_derive", "proc_macro_attribute", "should_panic", "target_feature",
269269
"test", "track_caller"
270270
),
271271
),
272272
(STATIC, attrs!(item, linkable, "global_allocator", "used")),
273-
(TRAIT, attrs!(item, "must_use")),
273+
(TRAIT, attrs!(item)),
274274
(IMPL, attrs!(item, "automatically_derived")),
275275
(ASSOC_ITEM_LIST, attrs!(item)),
276276
(EXTERN_BLOCK, attrs!(item, "link")),

0 commit comments

Comments
 (0)