We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mem::{size_of,align_of}
1 parent f2023ac commit a87b44dCopy full SHA for a87b44d
src/libcore/mem/mod.rs
@@ -236,7 +236,7 @@ pub fn forget_unsized<T: ?Sized>(t: T) {
236
/// ```
237
///
238
/// [alignment]: ./fn.align_of.html
239
-#[inline]
+#[inline(always)]
240
#[stable(feature = "rust1", since = "1.0.0")]
241
#[rustc_promotable]
242
pub const fn size_of<T>() -> usize {
@@ -328,7 +328,7 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
328
329
/// assert_eq!(4, mem::align_of::<i32>());
330
331
332
333
334
pub const fn align_of<T>() -> usize {
0 commit comments