We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ff4da commit 7b41494Copy full SHA for 7b41494
library/core/src/mem/mod.rs
@@ -654,6 +654,8 @@ pub unsafe fn zeroed<T>() -> T {
654
/// produce a value of type `T`, while doing nothing at all.
655
///
656
/// **This function is deprecated.** Use [`MaybeUninit<T>`] instead.
657
+/// It also might be slower than using `MaybeUninit<T>` due to mitigations that were put in place to
658
+/// limit the potential harm caused by incorrect use of this function in legacy code.
659
660
/// The reason for deprecation is that the function basically cannot be used
661
/// correctly: it has the same effect as [`MaybeUninit::uninit().assume_init()`][uninit].
0 commit comments