Few small fixes for clippy_dev/new_lint (#16795)

---

*Please write a short comment explaining your change (or "none" for
internal only changes)*

changelog: none
This commit is contained in:
Jason Newcomb
2026-04-02 20:53:11 +00:00
committed by GitHub
+2 -2
View File
@@ -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;
@@ -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`
"
);