File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -384,17 +384,6 @@ macro_rules! saturating_impl {
384
384
}
385
385
forward_ref_op_assign! { impl BitAndAssign , bitand_assign for Saturating <$t>, Saturating <$t> }
386
386
387
- #[ unstable( feature = "saturating_int_impl" , issue = "87920" ) ]
388
- impl Neg for Saturating <$t> {
389
- type Output = Self ;
390
- #[ inline]
391
- fn neg( self ) -> Self {
392
- Saturating ( 0 ) - self
393
- }
394
- }
395
- forward_ref_unop! { impl Neg , neg for Saturating <$t>,
396
- #[ unstable( feature = "saturating_int_impl" , issue = "87920" ) ] }
397
-
398
387
) * )
399
388
}
400
389
@@ -864,6 +853,17 @@ macro_rules! saturating_int_impl_signed {
864
853
self . 0 . is_negative( )
865
854
}
866
855
}
856
+
857
+ #[ unstable( feature = "saturating_int_impl" , issue = "87920" ) ]
858
+ impl Neg for Saturating <$t> {
859
+ type Output = Self ;
860
+ #[ inline]
861
+ fn neg( self ) -> Self {
862
+ Saturating ( self . 0 . saturating_neg( ) )
863
+ }
864
+ }
865
+ forward_ref_unop! { impl Neg , neg for Saturating <$t>,
866
+ #[ unstable( feature = "saturating_int_impl" , issue = "87920" ) ] }
867
867
) * )
868
868
}
869
869
You can’t perform that action at this time.
0 commit comments