diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:18:07 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:18:07 -0800 |
| commit | 907db6c8344a4df070ee2b21479062a63c3ae2be (patch) | |
| tree | b4950d1359d2d30a866039946cf4ff96ba8d6019 /src/libstd/io | |
| parent | b5de8333b3ef29fe3d0952d9207fd275c45da9f2 (diff) | |
| parent | 2c2480df5d340f4c7b2deeef0177e4fd22f2b03a (diff) | |
| download | rust-907db6c8344a4df070ee2b21479062a63c3ae2be.tar.gz rust-907db6c8344a4df070ee2b21479062a63c3ae2be.zip | |
rollup merge of #21444: petrochenkov/null
Conflicts: src/libstd/sync/mpsc/select.rs
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/stdio.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 9ee2f5705b8..a5664b9f013 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -40,6 +40,7 @@ use mem; use option::Option; use option::Option::{Some, None}; use ops::{Deref, DerefMut, FnOnce}; +use ptr; use result::Result::{Ok, Err}; use rt; use slice::SliceExt; @@ -238,7 +239,7 @@ pub fn stdin() -> StdinReader { // Make sure to free it at exit rt::at_exit(|| { mem::transmute::<_, Box<StdinReader>>(STDIN); - STDIN = 0 as *const _; + STDIN = ptr::null(); }); }); |
