diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-30 16:30:33 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-01-03 14:01:59 -0800 |
| commit | 4c85cf7a40b4a63e7629d39d2a2ad0f348c1459c (patch) | |
| tree | d4de2940bbf4565d3c30a795e2ba010d846ad13b /src/libsyntax/parse | |
| parent | 39f39ed40bc7c8a2c01a61584fb88a723b3e62ca (diff) | |
| download | rust-4c85cf7a40b4a63e7629d39d2a2ad0f348c1459c.tar.gz rust-4c85cf7a40b4a63e7629d39d2a2ad0f348c1459c.zip | |
libsyntax: De-`@mut` `CodeMap::files`
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 5882749cdf1..3b81b09112b 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -361,7 +361,10 @@ fn consume_any_line_comment(rdr: @StringReader) // I guess this is the only way to figure out if // we're at the beginning of the file... let cmap = @CodeMap::new(); - (*cmap).files.push(rdr.filemap); + { + let mut files = cmap.files.borrow_mut(); + files.get().push(rdr.filemap); + } let loc = cmap.lookup_char_pos_adj(rdr.last_pos.get()); if loc.line == 1u && loc.col == CharPos(0u) { while rdr.curr.get() != '\n' && !is_eof(rdr) { bump(rdr); } |
