@@ -82,7 +82,7 @@ declare_lint! {
82
82
}
83
83
84
84
declare_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
86
86
/// that derives the Copy trait.
87
87
///
88
88
/// ### Example
@@ -104,12 +104,12 @@ declare_lint! {
104
104
/// An alternative, but also valid, explanation is that Copy types do not
105
105
/// implement the Drop trait, which means they have no destructors. Without a
106
106
/// destructor, there is nothing for `std::mem::forget` to ignore.
107
- pub FORGET_COPY ,
107
+ pub FORGETTING_COPY_TYPES ,
108
108
Warn ,
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 , DROPPING_COPY_TYPES , FORGET_COPY ] ) ;
112
+ declare_lint_pass ! ( DropForgetUseless => [ DROP_REF , FORGET_REF , DROPPING_COPY_TYPES , FORGETTING_COPY_TYPES ] ) ;
113
113
114
114
impl < ' tcx > LateLintPass < ' tcx > for DropForgetUseless {
115
115
fn check_expr ( & mut self , cx : & LateContext < ' tcx > , expr : & ' tcx Expr < ' tcx > ) {
@@ -132,7 +132,7 @@ impl<'tcx> LateLintPass<'tcx> for DropForgetUseless {
132
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
- 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 } ) ;
136
136
}
137
137
_ => return ,
138
138
} ;
0 commit comments