From 750e57819573e16cb6c6578e41d0cbb547e4e5f8 Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Thu, 2 Apr 2026 22:24:00 +0300 Subject: [PATCH 1/2] clippy_dev/new_lint: fix path to the file where MSRVs reside --- clippy_dev/src/new_lint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index 2abe471bed2b..114c267fbe36 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -319,7 +319,7 @@ pub fn new(conf: &'static Conf) -> Self {{ impl {pass_type}{pass_lifetimes} for {name_camel} {{{extract_msrv}}} - // TODO: Add MSRV level to `clippy_config/src/msrvs.rs` if needed. + // TODO: Add MSRV level to `clippy_utils/src/msrvs.rs` if needed. // TODO: Update msrv config comment in `clippy_config/src/conf.rs` " ); From a390a52e74b3ee7f7562becba7901aaf45191c02 Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Thu, 2 Apr 2026 22:32:44 +0300 Subject: [PATCH 2/2] clippy_dev/new_lint: sort imports in the snippet --- clippy_dev/src/new_lint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index 114c267fbe36..dc2c6d8aa520 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -275,8 +275,8 @@ fn get_lint_file_contents(lint: &LintData<'_>, enable_msrv: bool) -> String { let _: fmt::Result = writedoc!( result, r" - use clippy_utils::msrvs::{{self, {msrv_ty}}}; use clippy_config::Conf; + use clippy_utils::msrvs::{{self, {msrv_ty}}}; {pass_import} use rustc_lint::{{{context_import}, {pass_type}}}; use rustc_session::impl_lint_pass;