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.
diff --git a/src/dox.rs b/src/dox.rs
index 1c93efe..d3f9ccc 100644
--- a/src/dox.rs
+++ b/src/dox.rs
@@ -68,13 +68,13 @@
}
#[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;
}