From ab1defb1ce8d40d03fe0074b56d3066873f62911 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Wed, 25 Jul 2012 19:13:58 -0700 Subject: Make parsing about 0.3 seconds faster. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index de772b0ff1c..21248b496a4 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -232,7 +232,7 @@ class parser { fn warn(m: ~str) { self.sess.span_diagnostic.span_warn(copy self.span, m) } - fn get_str(i: token::str_num) -> @~str { + pure fn get_str(i: token::str_num) -> @~str { interner::get(*self.reader.interner(), i) } fn get_id() -> node_id { next_node_id(self.sess) } -- cgit 1.4.1-3-g733a5