Mask deprecation warnings on abs_sub

This commit is contained in:
Josh Stone 2016-07-12 00:34:55 -07:00
parent 15949b257a
commit b21c89de36
2 changed files with 2 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@ macro_rules! float_impl {
<$T>::min(self, other)
}
#[allow(deprecated)]
fn abs_sub(self, other: Self) -> Self {
<$T>::abs_sub(self, other)
}

View File

@ -86,6 +86,7 @@ macro_rules! signed_float_impl {
/// less than or equal to `other`, otherwise the difference between`self`
/// and `other` is returned.
#[inline]
#[allow(deprecated)]
fn abs_sub(&self, other: &$t) -> $t {
<$t>::abs_sub(*self, *other)
}