1
Fork 0

Auto merge of #83053 - oli-obk:const_stab_version, r=m-ou-se

Fix const stability `since` versions.

fixes #82085

r? `@m-ou-se`
This commit is contained in:
bors 2021-03-21 16:21:39 +00:00
commit f82664191d
9 changed files with 20 additions and 20 deletions

View file

@ -205,7 +205,7 @@ pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
#[inline(always)]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_promotable]
#[rustc_const_stable(feature = "const_ptr_null", since = "1.32.0")]
#[rustc_const_stable(feature = "const_ptr_null", since = "1.24.0")]
pub const fn null<T>() -> *const T {
0 as *const T
}
@ -223,7 +223,7 @@ pub const fn null<T>() -> *const T {
#[inline(always)]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_promotable]
#[rustc_const_stable(feature = "const_ptr_null", since = "1.32.0")]
#[rustc_const_stable(feature = "const_ptr_null", since = "1.24.0")]
pub const fn null_mut<T>() -> *mut T {
0 as *mut T
}