We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 996a51b commit a2160e6Copy full SHA for a2160e6
src/libcore/mem/mod.rs
@@ -490,7 +490,7 @@ pub const fn needs_drop<T>() -> bool {
490
///
491
/// let _x: &i32 = unsafe { mem::zeroed() }; // Undefined behavior!
492
/// ```
493
-#[inline]
+#[inline(always)]
494
#[stable(feature = "rust1", since = "1.0.0")]
495
#[allow(deprecated_in_future)]
496
#[allow(deprecated)]
@@ -525,7 +525,7 @@ pub unsafe fn zeroed<T>() -> T {
525
/// [uninit]: union.MaybeUninit.html#method.uninit
526
/// [assume_init]: union.MaybeUninit.html#method.assume_init
527
/// [inv]: union.MaybeUninit.html#initialization-invariant
528
529
#[rustc_deprecated(since = "1.39.0", reason = "use `mem::MaybeUninit` instead")]
530
531
0 commit comments