Apply review comments + use shallow_lint_levels_on

This commit is contained in:
blyxyas 2024-10-15 22:15:07 +02:00
parent e427a4e694
commit e518d66dc0
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use rustc_session::declare_lint_pass;
use rustc_span::Span; use rustc_span::Span;
/// Ensures that Constant-time Function Evaluation is being done (specifically, MIR lint passes). /// Ensures that Constant-time Function Evaluation is being done (specifically, MIR lint passes).
/// See rust-lang/rust#125116 for more info. /// As Clippy deactivates codegen, this lint ensures that CTFE (used in hard errors) is still ran.
#[clippy::version = "1.82.0"] #[clippy::version = "1.82.0"]
pub static CLIPPY_CTFE: &Lint = &Lint { pub static CLIPPY_CTFE: &Lint = &Lint {
name: &"clippy::CLIPPY_CTFE", name: &"clippy::CLIPPY_CTFE",

View file

@ -65,7 +65,7 @@ extern crate clippy_utils;
#[cfg_attr(feature = "internal", allow(clippy::missing_clippy_version_attribute))] #[cfg_attr(feature = "internal", allow(clippy::missing_clippy_version_attribute))]
mod utils; mod utils;
pub mod ctfe; // Very important lint (rust#125116) pub mod ctfe; // Very important lint, do not remove (rust#125116)
pub mod declared_lints; pub mod declared_lints;
pub mod deprecated_lints; pub mod deprecated_lints;