xref: /linux/.clippy.toml (revision c016722fd57551f8a6fcf472c9d2bcf2130ea0ec)
17d56786eSMiguel Ojeda# SPDX-License-Identifier: GPL-2.0
28577c9dcSMiguel Ojeda
3f0915acdSMiguel Ojedamsrv = "1.78.0"
4f0915acdSMiguel Ojeda
5624063b9SMiguel Ojedacheck-private-items = true
6624063b9SMiguel Ojeda
78577c9dcSMiguel Ojedadisallowed-macros = [
88577c9dcSMiguel Ojeda    # The `clippy::dbg_macro` lint only works with `std::dbg!`, thus we simulate
98577c9dcSMiguel Ojeda    # it here, see: https://github.com/rust-lang/rust-clippy/issues/11303.
10*c016722fSMiguel Ojeda    { path = "kernel::dbg", reason = "the `dbg!` macro is intended as a debugging tool", allow-invalid = true },
118577c9dcSMiguel Ojeda]
12