diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 8ad3c414454..f511ca8eb78 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -559,7 +559,7 @@ impl [T] { // Use the llvm.bswap intrinsic to reverse u8s in a usize let chunk = mem::size_of::(); while i + chunk - 1 < ln / 2 { - // SAFETY: + // SAFETY: There are several things to check here: // // - Note that `chunk` is either 4 or 8 due to the cfg check // above. So `chunk - 1` is positive.