Uplift clippy::invalid_null_ptr_usage as invalid_null_arguments

This commit is contained in:
Urgau
2025-03-09 14:38:16 +01:00
parent a20d2ef0d9
commit 96a2f69844
6 changed files with 590 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ use crate::LateContext;
/// Given an expression, peel all of casts (`<expr> as ...`, `<expr>.cast{,_mut,_const}()`,
/// `ptr::from_ref(<expr>)`, ...) and init expressions.
///
/// Returns the outermost expression and a boolean representing if one of the casts was
/// Returns the innermost expression and a boolean representing if one of the casts was
/// `UnsafeCell::raw_get(<expr>)`
pub(crate) fn peel_casts<'tcx>(
cx: &LateContext<'tcx>,