]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_session/node_id.rs
Do not base path to append extension
[rust.git] / src / librustc_session / node_id.rs
index b94c11391ebac5bcd72897e1580aabc3f237cc66..9fefe908e578e3838b1cc2b90c276668a63c2efa 100644 (file)
@@ -1,4 +1,3 @@
-use rustc_index::vec::Idx;
 use rustc_serialize::{Decoder, Encoder};
 use rustc_span::ExpnId;
 use std::fmt;
@@ -10,6 +9,8 @@ pub struct NodeId {
     }
 }
 
+rustc_data_structures::define_id_collections!(NodeMap, NodeSet, NodeId);
+
 impl NodeId {
     pub fn placeholder_from_expn_id(expn_id: ExpnId) -> Self {
         NodeId::from_u32(expn_id.as_u32())