Skip to content

Commit e0e14c9

Browse files
committed
Remove SerializedDepNodeIndex::new it is already impl for Idx
1 parent 70c3a3d commit e0e14c9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/librustc/dep_graph/serialized.rs

-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ use rustc_data_structures::indexed_vec::{IndexVec, Idx};
1919
RustcEncodable, RustcDecodable)]
2020
pub struct SerializedDepNodeIndex(pub u32);
2121

22-
impl SerializedDepNodeIndex {
23-
#[inline]
24-
pub fn new(idx: usize) -> SerializedDepNodeIndex {
25-
assert!(idx <= ::std::u32::MAX as usize);
26-
SerializedDepNodeIndex(idx as u32)
27-
}
28-
}
29-
3022
impl Idx for SerializedDepNodeIndex {
3123
#[inline]
3224
fn new(idx: usize) -> Self {

0 commit comments

Comments
 (0)