diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2017-09-27 16:41:35 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2017-09-27 16:41:35 -0300 |
| commit | e0e14c9a5b141cb86c1b2cde85c35388ba63ad23 (patch) | |
| tree | 85ab3c18631360a55b101683749d3f5c21fb3172 /src/librustc/dep_graph | |
| parent | 70c3a3da6d6aa9b818c76dc0c3afd31fb2249cfb (diff) | |
| download | rust-e0e14c9a5b141cb86c1b2cde85c35388ba63ad23.tar.gz rust-e0e14c9a5b141cb86c1b2cde85c35388ba63ad23.zip | |
Remove SerializedDepNodeIndex::new it is already impl for Idx
Diffstat (limited to 'src/librustc/dep_graph')
| -rw-r--r-- | src/librustc/dep_graph/serialized.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustc/dep_graph/serialized.rs b/src/librustc/dep_graph/serialized.rs index 21beac9214e..6110c270086 100644 --- a/src/librustc/dep_graph/serialized.rs +++ b/src/librustc/dep_graph/serialized.rs @@ -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 { |
