File tree 2 files changed +1
-9
lines changed
src/librustc_incremental/persist
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,6 @@ impl SerializedDepGraph {
70
70
RustcEncodable , RustcDecodable ) ]
71
71
pub struct DepNodeIndex ( pub u32 ) ;
72
72
73
- impl DepNodeIndex {
74
- #[ inline]
75
- pub fn new ( idx : usize ) -> DepNodeIndex {
76
- assert ! ( idx <= :: std:: u32 :: MAX as usize ) ;
77
- DepNodeIndex ( idx as u32 )
78
- }
79
- }
80
-
81
73
impl Idx for DepNodeIndex {
82
74
#[ inline]
83
75
fn new ( idx : usize ) -> Self {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use rustc::util::common::time;
19
19
use rustc:: util:: nodemap:: DefIdMap ;
20
20
use rustc_data_structures:: fx:: FxHashMap ;
21
21
use rustc_data_structures:: graph;
22
- use rustc_data_structures:: indexed_vec:: IndexVec ;
22
+ use rustc_data_structures:: indexed_vec:: { IndexVec , Idx } ;
23
23
use rustc_serialize:: Encodable as RustcEncodable ;
24
24
use rustc_serialize:: opaque:: Encoder ;
25
25
use std:: io:: { self , Cursor , Write } ;
You can’t perform that action at this time.
0 commit comments