mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
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:
@@ -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`
|
||||
"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user