File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ pub static LINTS: &[&::declare_clippy_lint::LintInfo] = &[
572572 crate :: needless_update:: NEEDLESS_UPDATE_INFO ,
573573 crate :: neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD_INFO ,
574574 crate :: neg_multiply:: NEG_MULTIPLY_INFO ,
575- crate :: new_without_default :: NEW_WITHOUT_DEFAULT_INFO ,
575+ crate :: new_vs_default :: NEW_WITHOUT_DEFAULT_INFO ,
576576 crate :: no_effect:: NO_EFFECT_INFO ,
577577 crate :: no_effect:: NO_EFFECT_UNDERSCORE_BINDING_INFO ,
578578 crate :: no_effect:: UNNECESSARY_OPERATION_INFO ,
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ mod needless_question_mark;
269269mod needless_update;
270270mod neg_cmp_op_on_partial_ord;
271271mod neg_multiply;
272- mod new_without_default ;
272+ mod new_vs_default ;
273273mod no_effect;
274274mod no_mangle_with_rust_abi;
275275mod non_canonical_impls;
@@ -626,7 +626,7 @@ rustc_lint::late_lint_methods!(
626626 UselessFormat : format:: UselessFormat = format:: UselessFormat :: new( format_args. clone( ) ) ,
627627 Swap : swap:: Swap = swap:: Swap ,
628628 PanickingOverflowChecks : panicking_overflow_checks:: PanickingOverflowChecks = panicking_overflow_checks:: PanickingOverflowChecks ,
629- NewWithoutDefault : new_without_default :: NewWithoutDefault = <new_without_default :: NewWithoutDefault >:: default ( ) ,
629+ NewVsDefault : new_vs_default :: NewVsDefault = <new_vs_default :: NewVsDefault >:: default ( ) ,
630630 DisallowedNames : disallowed_names:: DisallowedNames = disallowed_names:: DisallowedNames :: new( conf) ,
631631 Functions : functions:: Functions = functions:: Functions :: new( tcx, conf) ,
632632 Documentation : doc:: Documentation = doc:: Documentation :: new( conf) ,
Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ declare_clippy_lint! {
5050 "`pub fn new() -> Self` method without `Default` implementation"
5151}
5252
53- impl_lint_pass ! ( NewWithoutDefault => [ NEW_WITHOUT_DEFAULT ] ) ;
53+ impl_lint_pass ! ( NewVsDefault => [ NEW_WITHOUT_DEFAULT ] ) ;
5454
5555#[ derive( Clone , Default ) ]
56- pub struct NewWithoutDefault {
56+ pub struct NewVsDefault {
5757 impling_types : Option < HirIdSet > ,
5858}
5959
60- impl < ' tcx > LateLintPass < ' tcx > for NewWithoutDefault {
60+ impl < ' tcx > LateLintPass < ' tcx > for NewVsDefault {
6161 #[ expect( clippy:: too_many_lines) ]
6262 fn check_item ( & mut self , cx : & LateContext < ' tcx > , item : & ' tcx hir:: Item < ' _ > ) {
6363 let hir:: ItemKind :: Impl ( hir:: Impl {
You can’t perform that action at this time.
0 commit comments