Skip to content

Commit 8a520ff

Browse files
committed
auto merge of #5000 : jld/rust/test-stdin-thing, r=graydon
As far as I can tell, the only reason run-pass/type-use-i1-versus-i8 is trying to do a read is because that code was left over from the original program the issue was found in. When that test is run as part of check-fast, and apparently only in that case, the test blocks indefinitely, which is bad.
2 parents 1f956fc + e8732bd commit 8a520ff

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
+1-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,14 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use io::ReaderUtil;
1211
pub fn main() {
1312
let mut x: bool = false;
1413
// this line breaks it
1514
vec::rusti::move_val_init(&mut x, false);
16-
17-
let input = io::stdin();
18-
let line = input.read_line(); // use core's io again
19-
20-
io::println(fmt!("got %?", line));
2115
}

0 commit comments

Comments
 (0)