Make parsing about 0.3 seconds faster.

This commit is contained in:
Eric Holk 2012-07-25 19:13:58 -07:00 committed by Paul Stansifer
parent 94f29e0c94
commit 5805616aad
3 changed files with 14 additions and 13 deletions

View file

@ -223,7 +223,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) }