about summary refs log tree commit diff
path: root/src/libstd/io/stdio.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-02 09:19:00 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-02 09:19:00 -0800
commit009ec5d2b0c4ab0e7dc7ab2f6b15754b4da14caf (patch)
tree8b441fd58860857f2e7bf5eabbf2226b92bf13c7 /src/libstd/io/stdio.rs
parent0101bbe7acb38e8113c0cafeb7d5ae0be6448e5b (diff)
parentf3a7ec7028c76b3a1c6051131328f372b068e33a (diff)
downloadrust-009ec5d2b0c4ab0e7dc7ab2f6b15754b4da14caf.tar.gz
rust-009ec5d2b0c4ab0e7dc7ab2f6b15754b4da14caf.zip
rollup merge of #20315: alexcrichton/std-sync
Conflicts:
	src/libstd/rt/exclusive.rs
	src/libstd/sync/barrier.rs
	src/libstd/sys/unix/pipe.rs
	src/test/bench/shootout-binarytrees.rs
	src/test/bench/shootout-fannkuch-redux.rs
Diffstat (limited to 'src/libstd/io/stdio.rs')
-rw-r--r--src/libstd/io/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index 156c37c3be7..ba709b2dc74 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -218,7 +218,7 @@ pub fn stdin() -> StdinReader {
     static ONCE: Once = ONCE_INIT;
 
     unsafe {
-        ONCE.doit(|| {
+        ONCE.call_once(|| {
             // The default buffer capacity is 64k, but apparently windows doesn't like
             // 64k reads on stdin. See #13304 for details, but the idea is that on
             // windows we use a slightly smaller buffer that's been seen to be