diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-24 21:26:19 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-27 15:54:43 -0700 |
| commit | fcc031c5b4dc8f64c497b8dd1e066068e862bd72 (patch) | |
| tree | d31401261cbe92f9d5039c193dfcb66b3767e018 /src/comp/syntax/parse | |
| parent | 20178b9312675f4889bd656916a1f32cbacc94d6 (diff) | |
| download | rust-fcc031c5b4dc8f64c497b8dd1e066068e862bd72.tar.gz rust-fcc031c5b4dc8f64c497b8dd1e066068e862bd72.zip | |
Convert std::io to istrs. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 59cea6e131d..b5d71a6ee9c 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -63,7 +63,7 @@ type parser = fn new_parser_from_file(sess: parse_sess, cfg: ast::crate_cfg, path: str, chpos: uint, byte_pos: uint, ftype: file_type) -> parser { - let src = io::read_whole_file_str(path); + let src = istr::to_estr(io::read_whole_file_str(istr::from_estr(path))); let filemap = codemap::new_filemap(path, chpos, byte_pos); sess.cm.files += [filemap]; let itr = @interner::mk(str::hash, str::eq); |
