Skip to content

Commit f5807eb

Browse files
committed
revert const Add
it causes ICEs since we assume that the only substs are on the trait and the method has no generic parameters
1 parent 04956a0 commit f5807eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/ops/arith.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
append_const_msg
7474
)]
7575
#[doc(alias = "+")]
76-
#[const_trait]
76+
// FIXME(effects) #[const_trait]
7777
pub trait Add<Rhs = Self> {
7878
/// The resulting type after applying the `+` operator.
7979
#[stable(feature = "rust1", since = "1.0.0")]
@@ -95,8 +95,8 @@ pub trait Add<Rhs = Self> {
9595
macro_rules! add_impl {
9696
($($t:ty)*) => ($(
9797
#[stable(feature = "rust1", since = "1.0.0")]
98-
#[rustc_const_unstable(feature = "const_ops", issue = "90080")]
99-
impl const Add for $t {
98+
// FIXME(effects) #[rustc_const_unstable(feature = "const_ops", issue = "90080")]
99+
impl /* const */ Add for $t {
100100
type Output = $t;
101101

102102
#[inline]

0 commit comments

Comments
 (0)