File tree Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 14192d6df5cc714e5c9a3ca70b08f2514d977be2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: d649292e601a47b3b602415a2e9d9b6ebc298d45
4
+ refs/heads/snap-stage3: d6466ff13aef6af45f24f28e23f2f3dd36c96cf0
5
5
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ pub trait Neg {
485
485
macro_rules! neg_impl {
486
486
( $( $t: ty) * ) => ( $(
487
487
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488
+ #[ allow( unsigned_negation) ]
488
489
impl Neg for $t {
489
490
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
490
491
type Output = $t;
@@ -498,28 +499,7 @@ macro_rules! neg_impl {
498
499
) * )
499
500
}
500
501
501
- macro_rules! neg_uint_impl {
502
- ( $t: ty, $t_signed: ty) => {
503
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
504
- impl Neg for $t {
505
- type Output = $t;
506
-
507
- #[ inline]
508
- fn neg( self ) -> $t { -( self as $t_signed) as $t }
509
- }
510
-
511
- forward_ref_unop! { impl Neg , neg for $t }
512
- }
513
- }
514
-
515
- neg_impl ! { isize i8 i16 i32 i64 f32 f64 }
516
-
517
- neg_uint_impl ! { usize , isize }
518
- neg_uint_impl ! { u8 , i8 }
519
- neg_uint_impl ! { u16 , i16 }
520
- neg_uint_impl ! { u32 , i32 }
521
- neg_uint_impl ! { u64 , i64 }
522
-
502
+ neg_impl ! { usize u8 u16 u32 u64 isize i8 i16 i32 i64 f32 f64 }
523
503
524
504
/// The `Not` trait is used to specify the functionality of unary `!`.
525
505
///
Original file line number Diff line number Diff line change @@ -23,4 +23,6 @@ fn main() {
23
23
unsafe { libc:: exit ( 0 as libc:: c_int ) ; }
24
24
} ) ;
25
25
2_usize + ( loop { } ) ;
26
+ //~^ ERROR E0277
27
+ //~| ERROR E0277
26
28
}
You can’t perform that action at this time.
0 commit comments