Rollup merge of #44889 - spastorino:remove_new, r=arielb1
Remove DepNodeIndex::new is already impl for Idx
This commit is contained in:
commit
37c74e1979
2 changed files with 1 additions and 9 deletions
|
|
@ -70,14 +70,6 @@ impl SerializedDepGraph {
|
|||
RustcEncodable, RustcDecodable)]
|
||||
pub struct DepNodeIndex(pub u32);
|
||||
|
||||
impl DepNodeIndex {
|
||||
#[inline]
|
||||
pub fn new(idx: usize) -> DepNodeIndex {
|
||||
assert!(idx <= ::std::u32::MAX as usize);
|
||||
DepNodeIndex(idx as u32)
|
||||
}
|
||||
}
|
||||
|
||||
impl Idx for DepNodeIndex {
|
||||
#[inline]
|
||||
fn new(idx: usize) -> Self {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use rustc::util::common::time;
|
|||
use rustc::util::nodemap::DefIdMap;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::graph;
|
||||
use rustc_data_structures::indexed_vec::IndexVec;
|
||||
use rustc_data_structures::indexed_vec::{IndexVec, Idx};
|
||||
use rustc_serialize::Encodable as RustcEncodable;
|
||||
use rustc_serialize::opaque::Encoder;
|
||||
use std::io::{self, Cursor, Write};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue