Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Debug for File #24598

Merged
merged 1 commit into from Apr 21, 2015
Merged

Implement Debug for File #24598

merged 1 commit into from Apr 21, 2015

Conversation

lambda-fairy
Copy link
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
Collaborator

r? @nikomatsakis

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

@alexcrichton
Copy link
Member

@bors: r+ 6d5da16

Thanks!

@bors
Copy link
Contributor

bors commented Apr 21, 2015

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

@bors
Copy link
Contributor

bors commented Apr 21, 2015

💔 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
Contributor Author

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

@alexcrichton re-r?

@alexcrichton
Copy link
Member

@bors: r+ 1131bc0

@bors
Copy link
Contributor

bors commented Apr 21, 2015

⌛ 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 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.

None yet

5 participants