diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-10-23 18:06:11 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-11-10 01:10:07 +0100 |
| commit | d1d2aa22c0d15465af1daccdb3821450c98d0ed0 (patch) | |
| tree | 18c62f427f6e1efd2edd878b565fcfd1e2897c5c /src/libcore/alloc.rs | |
| parent | 53fe6294170e5f872877e87c1b05795b2b4d11d1 (diff) | |
| download | rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.tar.gz rust-d1d2aa22c0d15465af1daccdb3821450c98d0ed0.zip | |
reduce list to functions callable in const ctx.
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 8b9f7f2c816..045fabca268 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -116,7 +116,7 @@ impl Layout { /// The minimum size in bytes for a memory block of this layout. #[stable(feature = "alloc_layout", since = "1.28.0")] #[inline] - pub const fn size(&self) -> usize { self.size_ } + pub fn size(&self) -> usize { self.size_ } /// The minimum byte alignment for a memory block of this layout. #[stable(feature = "alloc_layout", since = "1.28.0")] |
