소스 검색

Mask deprecation warnings on abs_sub

Josh Stone 9 년 전
부모
커밋
b21c89de36
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      traits/src/float.rs
  2. 1 0
      traits/src/sign.rs

+ 1 - 0
traits/src/float.rs

@@ -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)
             }

+ 1 - 0
traits/src/sign.rs

@@ -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)
             }