Make parsing about 0.3 seconds faster.
This commit is contained in:
parent
94f29e0c94
commit
5805616aad
3 changed files with 14 additions and 13 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue