Remove SerializedDepNodeIndex::new it is already impl for Idx
This commit is contained in:
parent
70c3a3da6d
commit
e0e14c9a5b
1 changed files with 0 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue