mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
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.
This commit is contained in:
commit
8a520ff99f
@ -1,4 +1,4 @@
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
@ -8,14 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use io::ReaderUtil;
|
||||
pub fn main() {
|
||||
let mut x: bool = false;
|
||||
// this line breaks it
|
||||
vec::rusti::move_val_init(&mut x, false);
|
||||
|
||||
let input = io::stdin();
|
||||
let line = input.read_line(); // use core's io again
|
||||
|
||||
io::println(fmt!("got %?", line));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user