diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2021-03-12 13:45:13 +0000 |
|---|---|---|
| committer | Oli Scherer <github35764891676564198441@oli-obk.de> | 2021-03-15 14:39:18 +0000 |
| commit | 6f3635d87ba074308786f9e33c76fc165f41f806 (patch) | |
| tree | 206dd0b64ac0f4f3490a800e76e1f54ea9f257bf /library/core/src/alloc | |
| parent | 0cc64a34e9823a4ce6491dc5e13e920cd4f5aa31 (diff) | |
| download | rust-6f3635d87ba074308786f9e33c76fc165f41f806.tar.gz rust-6f3635d87ba074308786f9e33c76fc165f41f806.zip | |
Fix const stability `since` versions.
Diffstat (limited to 'library/core/src/alloc')
| -rw-r--r-- | library/core/src/alloc/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/alloc/layout.rs b/library/core/src/alloc/layout.rs index 8b95b70396b..0e7667dd89e 100644 --- a/library/core/src/alloc/layout.rs +++ b/library/core/src/alloc/layout.rs @@ -93,7 +93,7 @@ impl Layout { /// This function is unsafe as it does not verify the preconditions from /// [`Layout::from_size_align`]. #[stable(feature = "alloc_layout", since = "1.28.0")] - #[rustc_const_stable(feature = "alloc_layout", since = "1.28.0")] + #[rustc_const_stable(feature = "alloc_layout", since = "1.36.0")] #[inline] pub const unsafe fn from_size_align_unchecked(size: usize, align: usize) -> Self { // SAFETY: the caller must ensure that `align` is greater than zero. |
