Skip to content

Commit

Permalink
Remove SerializedDepNodeIndex::new it is already impl for Idx
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Sep 27, 2017
1 parent 70c3a3d commit e0e14c9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/librustc/dep_graph/serialized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ use rustc_data_structures::indexed_vec::{IndexVec, Idx};
RustcEncodable, RustcDecodable)]
pub struct SerializedDepNodeIndex(pub u32);

impl SerializedDepNodeIndex {
#[inline]
pub fn new(idx: usize) -> SerializedDepNodeIndex {
assert!(idx <= ::std::u32::MAX as usize);
SerializedDepNodeIndex(idx as u32)
}
}

impl Idx for SerializedDepNodeIndex {
#[inline]
fn new(idx: usize) -> Self {
Expand Down

0 comments on commit e0e14c9

Please sign in to comment.