We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e87c528 commit e583c57Copy full SHA for e583c57
library/core/src/mem/mod.rs
@@ -729,7 +729,7 @@ pub const fn swap<T>(x: &mut T, y: &mut T) {
729
cfg_if! {
730
// NOTE(eddyb) SPIR-V's Logical addressing model doesn't allow for arbitrary
731
// reinterpretation of values as (chunkable) byte arrays, and the loop in the
732
- // block optimization in `typed_swap_many` is hard to rewrite back
+ // block optimization in `ptr::swap_nonoverlapping` is hard to rewrite back
733
// into the (unoptimized) direct swapping implementation, so we disable it.
734
if #[cfg(any(target_arch = "spirv"))] {
735
swap_simple(x, y)
0 commit comments