Skip to content

Split -Dclippy::* categories into individual lints #1023

Open
@ojeda

Description

@ojeda

Denying entire categories is convenient, and works fine for the moment since we pin the compiler version.

However, in the future, we will want to carefully control which lints are enabled, so that new lints do not break the build. Even nowadays, it may make upgrades easier when new lints are added that we do not pass.

linux/Makefile

Lines 457 to 469 in d2e3115

export rust_common_flags := --edition=2021 \
-Zbinary_dep_depinfo=y \
-Dunsafe_op_in_unsafe_fn -Drust_2018_idioms \
-Dunreachable_pub -Dnon_ascii_idents \
-Wmissing_docs \
-Drustdoc::missing_crate_level_docs \
-Dclippy::correctness -Dclippy::style \
-Dclippy::suspicious -Dclippy::complexity \
-Dclippy::perf \
-Dclippy::let_unit_value -Dclippy::mut_mut \
-Dclippy::needless_bitwise_bool \
-Dclippy::needless_continue \
-Wclippy::dbg_macro

Metadata

Metadata

Assignees

No one assigned

    Labels

    • kbuildRelated to building the kernel, `make`, `Kbuild`, `Kconfig` options...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions