about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-01-30 19:52:38 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-31 14:29:10 -0800
commit03b8c8df0174967206d1d65c1ac311e205050e1c (patch)
tree40ef7b5b384f08ac49a4130643ceb3204a46cf1d /src/comp/driver
parent24668d7578d89406eaf1a6db4502360e73e2a8fd (diff)
downloadrust-03b8c8df0174967206d1d65c1ac311e205050e1c.tar.gz
rust-03b8c8df0174967206d1d65c1ac311e205050e1c.zip
Rename str::from_byte(s) to str::unsafe::from_byte(s),
mark them as unsafe,
make comp/driver/driver.rs use str::from_bytes...
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/driver.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs
index ac6d785e8b5..8781c07b4aa 100644
--- a/src/comp/driver/driver.rs
+++ b/src/comp/driver/driver.rs
@@ -80,7 +80,7 @@ fn parse_input(sess: session, cfg: ast::crate_cfg, input: str)
     if !input_is_stdin(input) {
         parser::parse_crate_from_file(input, cfg, sess.parse_sess)
     } else {
-        let src = @str::unsafe_from_bytes(io::stdin().read_whole_stream());
+        let src = @str::from_bytes(io::stdin().read_whole_stream());
         parser::parse_crate_from_source_str(input, src, cfg, sess.parse_sess)
     }
 }