@@ -82,7 +82,7 @@ declare_lint! {
8282}
8383
8484declare_lint ! {
85- /// The `forget_copy ` lint checks for calls to `std::mem::forget` with a value
85+ /// The `forgetting_copy_types ` lint checks for calls to `std::mem::forget` with a value
8686 /// that derives the Copy trait.
8787 ///
8888 /// ### Example
@@ -104,12 +104,12 @@ declare_lint! {
104104 /// An alternative, but also valid, explanation is that Copy types do not
105105 /// implement the Drop trait, which means they have no destructors. Without a
106106 /// destructor, there is nothing for `std::mem::forget` to ignore.
107- pub FORGET_COPY ,
107+ pub FORGETTING_COPY_TYPES ,
108108 Warn ,
109109 "calls to `std::mem::forget` with a value that implements Copy"
110110}
111111
112- declare_lint_pass ! ( DropForgetUseless => [ DROP_REF , FORGET_REF , DROPPING_COPY_TYPES , FORGET_COPY ] ) ;
112+ declare_lint_pass ! ( DropForgetUseless => [ DROP_REF , FORGET_REF , DROPPING_COPY_TYPES , FORGETTING_COPY_TYPES ] ) ;
113113
114114impl < ' tcx > LateLintPass < ' tcx > for DropForgetUseless {
115115 fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' tcx > ) {
@@ -132,7 +132,7 @@ impl<'tcx> LateLintPass<'tcx> for DropForgetUseless {
132132 cx. emit_spanned_lint ( DROPPING_COPY_TYPES , expr. span , DropCopyDiag { arg_ty, label : arg. span } ) ;
133133 }
134134 sym:: mem_forget if is_copy => {
135- cx. emit_spanned_lint ( FORGET_COPY , expr. span , ForgetCopyDiag { arg_ty, label : arg. span } ) ;
135+ cx. emit_spanned_lint ( FORGETTING_COPY_TYPES , expr. span , ForgetCopyDiag { arg_ty, label : arg. span } ) ;
136136 }
137137 _ => return ,
138138 } ;
0 commit comments