@@ -58,7 +58,7 @@ declare_lint! {
5858}
5959
6060declare_lint ! {
61- /// The `drop_copy ` lint checks for calls to `std::mem::drop` with a value
61+ /// The `dropping_copy_types ` lint checks for calls to `std::mem::drop` with a value
6262 /// that derives the Copy trait.
6363 ///
6464 /// ### Example
@@ -76,7 +76,7 @@ declare_lint! {
7676 /// Calling `std::mem::drop` [does nothing for types that
7777 /// implement Copy](https://doc.rust-lang.org/std/mem/fn.drop.html), since the
7878 /// value will be copied and moved into the function on invocation.
79- pub DROP_COPY ,
79+ pub DROPPING_COPY_TYPES ,
8080 Warn ,
8181 "calls to `std::mem::drop` with a value that implements Copy"
8282}
@@ -109,7 +109,7 @@ declare_lint! {
109109 "calls to `std::mem::forget` with a value that implements Copy"
110110}
111111
112- declare_lint_pass ! ( DropForgetUseless => [ DROP_REF , FORGET_REF , DROP_COPY , FORGET_COPY ] ) ;
112+ declare_lint_pass ! ( DropForgetUseless => [ DROP_REF , FORGET_REF , DROPPING_COPY_TYPES , FORGET_COPY ] ) ;
113113
114114impl < ' tcx > LateLintPass < ' tcx > for DropForgetUseless {
115115 fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' tcx > ) {
@@ -129,7 +129,7 @@ impl<'tcx> LateLintPass<'tcx> for DropForgetUseless {
129129 cx. emit_spanned_lint ( FORGET_REF , expr. span , ForgetRefDiag { arg_ty, label : arg. span } ) ;
130130 } ,
131131 sym:: mem_drop if is_copy && !drop_is_single_call_in_arm => {
132- cx. emit_spanned_lint ( DROP_COPY , expr. span , DropCopyDiag { arg_ty, label : arg. span } ) ;
132+ cx. emit_spanned_lint ( DROPPING_COPY_TYPES , expr. span , DropCopyDiag { arg_ty, label : arg. span } ) ;
133133 }
134134 sym:: mem_forget if is_copy => {
135135 cx. emit_spanned_lint ( FORGET_COPY , expr. span , ForgetCopyDiag { arg_ty, label : arg. span } ) ;
0 commit comments