RS.CLIPPY.BLANKET_CLIPPY_RESTRICTION_LINTS

Enabling the complete restriction group

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: blanket_clippy_restriction_lints. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for warn/deny/forbid attributes targeting the whole clippy::restriction category.

Why is this bad?

Restriction lints sometimes are in contrast with other lints or even go against idiomatic rust. These lints should only be enabled on a lint-by-lint basis and with careful consideration.

Example

#![deny(clippy::restriction)]

Use instead:

#![deny(clippy::as_conversions)]