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 https://github.com/rust-lang/rust/pull/61812#issuecomment-502394566
cc @Centril

@bors try
This commit is contained in:
bors 2019-06-22 17:59:05 +00:00
commit d6884aedd5
2 changed files with 1 additions and 2 deletions

View file

@ -69,7 +69,6 @@
#![feature(allow_internal_unstable)]
#![feature(arbitrary_self_types)]
#![feature(asm)]
#![feature(associated_type_defaults)]
#![feature(bound_cloned)]
#![feature(cfg_target_has_atomic)]
#![feature(concat_idents)]

View file

@ -508,7 +508,7 @@ div_impl_float! { f32 f64 }
pub trait Rem<Rhs=Self> {
/// The resulting type after applying the `%` operator.
#[stable(feature = "rust1", since = "1.0.0")]
type Output = Self;
type Output;
/// Performs the `%` operation.
#[must_use]