libsyntax: Remove the interner_get function and all uses
This commit is contained in:
committed by
Huon Wilson
parent
a695b62118
commit
e5dc347ccf
@@ -19,7 +19,7 @@ use codemap::{CodeMap, BytePos};
|
||||
use codemap;
|
||||
use diagnostic;
|
||||
use parse::classify::expr_is_simple_block;
|
||||
use parse::token::{IdentInterner, interner_get};
|
||||
use parse::token::IdentInterner;
|
||||
use parse::{comments, token};
|
||||
use parse;
|
||||
use print::pp::{break_offset, word, space, zerobreak, hardbreak};
|
||||
@@ -1544,7 +1544,8 @@ pub fn print_ident(s: &mut State, ident: ast::Ident) {
|
||||
}
|
||||
|
||||
pub fn print_name(s: &mut State, name: ast::Name) {
|
||||
word(&mut s.s, interner_get(name));
|
||||
let string = token::get_ident(name);
|
||||
word(&mut s.s, string.get());
|
||||
}
|
||||
|
||||
pub fn print_for_decl(s: &mut State, loc: &ast::Local, coll: &ast::Expr) {
|
||||
|
||||
Reference in New Issue
Block a user