]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/mem/mod.rs
Rollup merge of #104577 - GuillaumeGomez:remove-focus-on-blur, r=notriddle
[rust.git] / library / core / src / mem / mod.rs
index 956a69eda8a57af9038d125b0ded989c79adb75b..ec35914f1e3b5a9fe8878902d09aaa9c5f25d607 100644 (file)
@@ -725,10 +725,7 @@ pub const fn swap<T>(x: &mut T, y: &mut T) {
     // understanding `mem::replace`, `Option::take`, etc. - a better overall
     // solution might be to make `ptr::swap_nonoverlapping` into an intrinsic, which
     // a backend can choose to implement using the block optimization, or not.
-    // NOTE(scottmcm) MIRI is disabled here as reading in smaller units is a
-    // pessimization for it.  Also, if the type contains any unaligned pointers,
-    // copying those over multiple reads is difficult to support.
-    #[cfg(not(any(target_arch = "spirv", miri)))]
+    #[cfg(not(any(target_arch = "spirv")))]
     {
         // For types that are larger multiples of their alignment, the simple way
         // tends to copy the whole thing to stack rather than doing it one part