diff options
Diffstat (limited to 'src/libcore/alloc/layout.rs')
| -rw-r--r-- | src/libcore/alloc/layout.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/alloc/layout.rs b/src/libcore/alloc/layout.rs index c798aacc90b..fa644cfe99e 100644 --- a/src/libcore/alloc/layout.rs +++ b/src/libcore/alloc/layout.rs @@ -141,6 +141,7 @@ impl Layout { /// sentinel value. Types that lazily allocate must track initialization by /// some other means. #[unstable(feature = "alloc_layout_extra", issue = "55724")] + #[inline] pub const fn dangling(&self) -> NonNull<u8> { // align is non-zero and a power of two unsafe { NonNull::new_unchecked(self.align() as *mut u8) } |
