Skip to content

Commit d6884ae

Browse files
committed
Auto merge of #61874 - jonas-schievink:remove-rem-output-default, r=Centril
Remove the default type of `Rem::Output` Associated type defaults are not yet stable, and `Rem` is the only trait that specifies a default. Let's see what breaks when it's removed. cc #61812 (comment) cc @Centril @bors try
2 parents 4a365a2 + ba30dca commit d6884ae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/libcore/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
#![feature(allow_internal_unstable)]
7070
#![feature(arbitrary_self_types)]
7171
#![feature(asm)]
72-
#![feature(associated_type_defaults)]
7372
#![feature(bound_cloned)]
7473
#![feature(cfg_target_has_atomic)]
7574
#![feature(concat_idents)]

src/libcore/ops/arith.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ div_impl_float! { f32 f64 }
508508
pub trait Rem<Rhs=Self> {
509509
/// The resulting type after applying the `%` operator.
510510
#[stable(feature = "rust1", since = "1.0.0")]
511-
type Output = Self;
511+
type Output;
512512

513513
/// Performs the `%` operation.
514514
#[must_use]

0 commit comments

Comments
 (0)