diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-25 19:13:58 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-26 11:37:57 -0700 |
| commit | 5805616aad056327c19831634708e90175f1a4a0 (patch) | |
| tree | d791c24721acbd7c7c7c4c2f212c5afd143192fa /src/libsyntax/parse/parser.rs | |
| parent | 94f29e0c9485e2867c6e48cdf74ff7ca1b764e4b (diff) | |
| download | rust-5805616aad056327c19831634708e90175f1a4a0.tar.gz rust-5805616aad056327c19831634708e90175f1a4a0.zip | |
Make parsing about 0.3 seconds faster.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d14905e1290..0723103877b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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) } |
