File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -569,28 +569,20 @@ pub(super) struct DepNodeIndexNew {
569
569
}
570
570
571
571
impl Idx for DepNodeIndexNew {
572
- fn new ( idx : usize ) -> Self {
573
- DepNodeIndexNew :: new ( idx)
572
+ fn new ( v : usize ) -> DepNodeIndexNew {
573
+ assert ! ( ( v & 0xFFFF_FFFF ) == v) ;
574
+ DepNodeIndexNew { index : v as u32 }
574
575
}
576
+
575
577
fn index ( self ) -> usize {
576
- self . index ( )
578
+ self . index as usize
577
579
}
578
580
}
579
581
580
582
impl DepNodeIndexNew {
581
-
582
583
const INVALID : DepNodeIndexNew = DepNodeIndexNew {
583
584
index : :: std:: u32:: MAX ,
584
585
} ;
585
-
586
- fn new ( v : usize ) -> DepNodeIndexNew {
587
- assert ! ( ( v & 0xFFFF_FFFF ) == v) ;
588
- DepNodeIndexNew { index : v as u32 }
589
- }
590
-
591
- fn index ( self ) -> usize {
592
- self . index as usize
593
- }
594
586
}
595
587
596
588
#[ derive( Clone , Debug , PartialEq ) ]
You can’t perform that action at this time.
0 commit comments