Skip to content

Implement Debug for File - #24598

Merged
bors merged 1 commit into
rust-lang:masterfrom
lambda-fairy:impl-debug-for-file
Apr 21, 2015
Merged

Implement Debug for File#24598
bors merged 1 commit into
rust-lang:masterfrom
lambda-fairy:impl-debug-for-file

Conversation

@lambda-fairy

Copy link
Copy Markdown
Contributor

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

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ 6d5da16

Thanks!

@bors

bors commented Apr 21, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 6d5da16 with merge 71d1b80...

@bors

bors commented Apr 21, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-32-opt

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
@lambda-fairy

Copy link
Copy Markdown
Contributor Author

I've fixed the lint error on OS X. It should pass this time (cross fingers)

@alexcrichton re-r?

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ 1131bc0

@bors

bors commented Apr 21, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1131bc0 with merge 77acda1...

bors added a commit that referenced this pull request Apr 21, 2015
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
@bors

bors commented Apr 21, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit 1131bc0 into rust-lang:master Apr 21, 2015
@lambda-fairy
lambda-fairy deleted the impl-debug-for-file branch February 4, 2016 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants