diff options
Diffstat (limited to 'src/librustc/lib.rs')
| -rw-r--r-- | src/librustc/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index ef046419789..c5f7d61c224 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -241,8 +241,8 @@ pub fn run_compiler(args: &[~str], demitter: @diagnostic::Emitter) { 1u => { let ifile = matches.free[0].as_slice(); if ifile == "-" { - let src = - str::from_utf8_owned(io::stdin().read_to_end()).unwrap(); + let contents = io::stdin().read_to_end().unwrap(); + let src = str::from_utf8_owned(contents).unwrap(); (d::StrInput(src), None) } else { (d::FileInput(Path::new(ifile)), Some(Path::new(ifile))) |
