Skip to content

Commit eef913b

Browse files
committed
auto merge of #10495 : alexcrichton/rust/more-native-io, r=brson
This implements a fair amount of the unimpl() functionality in io::native relating to filesystem operations. I've also modified all io::fs tests to run in both a native and uv environment (so everything is actually tested). There are a few bits of remaining functionality which I was unable to get working: * truncate on windows * change_file_times on windows * lstat on windows I think that change_file_times may just need a better interface, but the other two have large implementations in libuv which I didn't want to tackle trying to copy. I found a `chsize` function to work for truncate on windows, but it doesn't quite seem to be working out.
2 parents d57765d + 68d5510 commit eef913b

File tree

9 files changed

+1056
-716
lines changed

9 files changed

+1056
-716
lines changed

src/libstd/io/buffered.rs

-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ mod test {
391391
// newtype struct autoderef weirdness
392392
#[test]
393393
fn test_buffered_stream() {
394-
use rt;
395394
struct S;
396395

397396
impl io::Writer for S {

0 commit comments

Comments
 (0)