1
Fork 0

Stabilize intrinsics as const

This commit is contained in:
Jacob Pratt 2021-01-14 18:55:37 -05:00
parent 265e03332b
commit f55029ab04
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
3 changed files with 2 additions and 6 deletions

View file

@ -514,7 +514,6 @@ macro_rules! int_impl {
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_checked_int_methods", since = "1.51.0")]
#[rustc_allow_const_fn_unstable(const_int_unchecked_arith)]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -567,7 +566,6 @@ macro_rules! int_impl {
/// ```
#[stable(feature = "wrapping", since = "1.7.0")]
#[rustc_const_stable(feature = "const_checked_int_methods", since = "1.51.0")]
#[rustc_allow_const_fn_unstable(const_int_unchecked_arith)]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]