Skip to content

lint hints should use attribute syntax, not command line syntax #6580

Closed
@brson

Description

@brson

I see output like this: warning: unnecessaryunsafeblock [-W unused-unsafe (default)].

rustc is telling you the command line argument to control this warning, but command line arguments are not our preferred way of turning on warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions