diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-10-23 23:09:44 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-11-10 01:10:07 +0100 |
| commit | e15c62d61fa02fac93992db9297aa4a8a56cef93 (patch) | |
| tree | 7f1e21f22c66f3d4988fdbf347031bd6d67a3af0 /src/libcore/alloc.rs | |
| parent | d1d2aa22c0d15465af1daccdb3821450c98d0ed0 (diff) | |
revert making internal APIs const fn.
Diffstat (limited to 'src/libcore/alloc.rs')
| -rw-r--r-- | src/libcore/alloc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index 045fabca268..113a85abecb 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -25,7 +25,7 @@ use num::NonZeroUsize; #[derive(Debug)] pub struct Excess(pub NonNull<u8>, pub usize); -const fn size_align<T>() -> (usize, usize) { +fn size_align<T>() -> (usize, usize) { (mem::size_of::<T>(), mem::align_of::<T>()) } |
