about summary refs log tree commit diff
path: root/src/comp/syntax/parse/parser.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-07-12 10:59:18 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-07-14 12:00:48 -0700
commitbe489ee9e2f30d2daf1c9726536631162e21dff5 (patch)
tree532d570a7b7971a4be83eeeb969bff9b12ecfb87 /src/comp/syntax/parse/parser.rs
parent4664b67ea2d0240cf121851d6c47e72bc26222b8 (diff)
downloadrust-be489ee9e2f30d2daf1c9726536631162e21dff5.tar.gz
rust-be489ee9e2f30d2daf1c9726536631162e21dff5.zip
rustc: Move much of metadata reading over to interior vectors
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
-rw-r--r--src/comp/syntax/parse/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index a8fd51993b1..d238e6eb2e7 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1,5 +1,5 @@
 
-import std::io;
+import std::ioivec;
 import std::ivec;
 import std::vec;
 import std::str;
@@ -59,8 +59,8 @@ fn new_parser_from_file(parse_sess sess, ast::crate_cfg cfg,
                         str path, uint pos) -> parser {
     auto ftype = SOURCE_FILE;
     if (str::ends_with(path, ".rc")) { ftype = CRATE_FILE; }
-    auto srdr = io::file_reader(path);
-    auto src = str::unsafe_from_bytes(srdr.read_whole_stream());
+    auto srdr = ioivec::file_reader(path);
+    auto src = str::unsafe_from_bytes_ivec(srdr.read_whole_stream());
     auto filemap = codemap::new_filemap(path, pos);
     vec::push(sess.cm.files, filemap);
     auto itr = @interner::mk(str::hash, str::eq);