From 21087bf1a5120739dc865e18d4500a16a8a16648 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 9 Jun 2012 00:53:34 -0700 Subject: syntax: Intern @strs instead of strs --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a6c32f99a72..75dae09fd0d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -10,7 +10,7 @@ import lexer::reader; import prec::{as_prec, token_to_binop}; import attr::parser_attr; import common::{seq_sep, seq_sep_opt, seq_sep_none, token_to_str}; -import common::{parser_common}; +import common::*;//{parser_common}; import dvec::{dvec, extensions}; export file_type; @@ -151,7 +151,7 @@ class parser { self.sess.span_diagnostic.span_warn(copy self.span, m) } fn get_str(i: token::str_num) -> str { - interner::get(*self.reader.interner, i) + *interner::get(*self.reader.interner, i) } fn get_id() -> node_id { next_node_id(self.sess) } -- cgit 1.4.1-3-g733a5