summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-06-22 01:16:56 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-06-28 05:28:25 +0000
commit36a4eb994099ad9763c32b229cac645cf76dff7a (patch)
treec8ddb6de043a46dedc6ef7f4dada8393764c6af4 /src/libsyntax
parent4a13bcb4fbd2a305ebc6906960a00f72342295a9 (diff)
downloadrust-36a4eb994099ad9763c32b229cac645cf76dff7a.tar.gz
rust-36a4eb994099ad9763c32b229cac645cf76dff7a.zip
cleanup: refactor away `ast::NodeIdAssigner`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index a352715b20b..cc033cec8b8 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -19,7 +19,6 @@ pub use util::ThinVec;
 use syntax_pos::{mk_sp, Span, DUMMY_SP, ExpnId};
 use codemap::{respan, Spanned};
 use abi::Abi;
-use errors;
 use parse::token::{self, keywords, InternedString};
 use print::pprust;
 use ptr::P;
@@ -362,15 +361,6 @@ pub const CRATE_NODE_ID: NodeId = 0;
 /// small, positive ids.
 pub const DUMMY_NODE_ID: NodeId = !0;
 
-pub trait NodeIdAssigner {
-    fn next_node_id(&self) -> NodeId;
-    fn peek_node_id(&self) -> NodeId;
-
-    fn diagnostic(&self) -> &errors::Handler {
-        panic!("this ID assigner cannot emit diagnostics")
-    }
-}
-
 /// The AST represents all type param bounds as types.
 /// typeck::collect::compute_bounds matches these against
 /// the "special" built-in traits (see middle::lang_items) and