Skip to content

unused-features only warns unused non-language features #23528

@fhahn

Description

@fhahn

For the following snippet, rustc only warns about rustc_privat being unused:

#![feature(rustc_private)]
#![feature(box_syntax)]
#![feature(trace_macros)]
#![feature(slicing_syntax)]
#![feature(log_syntax)]

fn main() {}

According to the documentation, check_unused_or_stable_features only checks unused non-langauge features, but it is the only place that emits UNSUSED_FEATURES.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.L-unused_featuresLint: unused_featuresT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions