Skip to content

Tracking issue for inclusion of derive in lint unused_attributes #54651

Closed
@Havvy

Description

@Havvy

The following code emits an unsquelchable warning.

#![crate_type="lib"]

#[derive()]
struct Struct;
warning: empty trait list in `derive`
 --> src/lib.rs:4:1
  |
4 | #[derive()]
  | ^^^^^^^^^^^

This warning should have a named lint unused_derive that is a part of the unused group of lints.

This warning should be a part of unused_attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions