about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/utils.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-03-09 14:38:16 +0100
committerUrgau <urgau@numericable.fr>2025-03-30 19:33:15 +0200
commit96a2f698444144efe2cb359102ca15a48d66ad6b (patch)
tree1065a00740d31b4b42637f94f7df3cff9c45649a /compiler/rustc_lint/src/utils.rs
parenta20d2ef0d9f10d65080216e7e7a1ace57ee210e8 (diff)
downloadrust-96a2f698444144efe2cb359102ca15a48d66ad6b.tar.gz
rust-96a2f698444144efe2cb359102ca15a48d66ad6b.zip
Uplift `clippy::invalid_null_ptr_usage` as `invalid_null_arguments`
Diffstat (limited to 'compiler/rustc_lint/src/utils.rs')
-rw-r--r--compiler/rustc_lint/src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/utils.rs b/compiler/rustc_lint/src/utils.rs
index 64bfa428ae4..a7295d9c532 100644
--- a/compiler/rustc_lint/src/utils.rs
+++ b/compiler/rustc_lint/src/utils.rs
@@ -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>,