]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #24598 - lfairy:impl-debug-for-file, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 21 Apr 2015 11:46:15 +0000 (11:46 +0000)
committerbors <bors@rust-lang.org>
Tue, 21 Apr 2015 11:46:15 +0000 (11:46 +0000)
This patch adds a `Debug` impl for `std::fs::File`.

On all platforms (Unix and Windows) it shows the file descriptor.

On Linux, it displays the path and access mode as well.

Ideally we should show the path/mode for all platforms, not just Linux,
but this will do for now.

cc #24570


Trivial merge