@@ -58,7 +58,7 @@ declare_lint! {
58
58
}
59
59
60
60
declare_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
62
62
/// that derives the Copy trait.
63
63
///
64
64
/// ### Example
@@ -76,7 +76,7 @@ declare_lint! {
76
76
/// Calling `std::mem::drop` [does nothing for types that
77
77
/// implement Copy](https://doc.rust-lang.org/std/mem/fn.drop.html), since the
78
78
/// value will be copied and moved into the function on invocation.
79
- pub DROP_COPY ,
79
+ pub DROPPING_COPY_TYPES ,
80
80
Warn ,
81
81
"calls to `std::mem::drop` with a value that implements Copy"
82
82
}
@@ -109,7 +109,7 @@ declare_lint! {
109
109
"calls to `std::mem::forget` with a value that implements Copy"
110
110
}
111
111
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 ] ) ;
113
113
114
114
impl < ' tcx > LateLintPass < ' tcx > for DropForgetUseless {
115
115
fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' tcx > ) {
@@ -129,7 +129,7 @@ impl<'tcx> LateLintPass<'tcx> for DropForgetUseless {
129
129
cx. emit_spanned_lint ( FORGET_REF , expr. span , ForgetRefDiag { arg_ty, label : arg. span } ) ;
130
130
} ,
131
131
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 } ) ;
133
133
}
134
134
sym:: mem_forget if is_copy => {
135
135
cx. emit_spanned_lint ( FORGET_COPY , expr. span , ForgetCopyDiag { arg_ty, label : arg. span } ) ;
0 commit comments