Auto merge of #964 - npmccallum:master, r=alexcrichton

Default RHS to Self for Div and Shl

This fixes a consistency issue with the other operator traits.
This commit is contained in:
bors 2018-04-06 18:58:53 +00:00
commit cc835c9a76

View File

@ -68,13 +68,13 @@ mod imp {
}
#[lang = "div"]
pub trait Div<RHS> {
pub trait Div<RHS=Self> {
type Output;
fn div(self, rhs: RHS) -> Self::Output;
}
#[lang = "shl"]
pub trait Shl<RHS> {
pub trait Shl<RHS=Self> {
type Output;
fn shl(self, rhs: RHS) -> Self::Output;
}