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 DirEntry. #36631

Merged
merged 1 commit into from
Sep 23, 2016
Merged

Conversation

frewsxcv
Copy link
Member

No description provided.

@sfackler
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 21, 2016

📌 Commit 84b68f3 has been approved by sfackler

@frewsxcv
Copy link
Member Author

Updated. @sfackler can I get another r?

@sfackler
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 21, 2016

📌 Commit 8b8681e has been approved by sfackler

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Sep 21, 2016
@sophiajt
Copy link
Contributor

sophiajt commented Sep 21, 2016

@bors r-

Removing it since it seems like it fails on Windows (tried it during a rollup).

test fs::tests::dir_entry_debug ... FAILED
test fs::tests::dir_entry_methods ... ok
thread '<unnamed>' panicked at 'assertion failed: `(left == right)` (left: `"DirEntry(\"C:\\\\Users\\\\RUSTBU~1\\\\AppData\\\\Local\\\\Temp\\\\rust-3438732025\\\\b\")"`, right: `"DirEntry(\"C:\\Users\\RUSTBU~1\\AppData\\Local\\Temp\\rust-3438732025\\b\")"`)', C:\bot\slave\auto-win-gnu-32-opt-rustbuild\build\src\libstd\fs.rs:2662
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Happy to run it through again once a fix is ready.

@frewsxcv
Copy link
Member Author

Uh, if anyone has insight why Windows renders path with \\\\, information would be greatly appreciated

@Aatch
Copy link
Contributor

Aatch commented Sep 22, 2016

@frewsxcv your debug impl will format the inner string using the Debug format. Whereas your test uses Display.

@frewsxcv frewsxcv force-pushed the dir-entry-debug branch 4 times, most recently from 52df75e to 6efe708 Compare September 22, 2016 17:02
@frewsxcv
Copy link
Member Author

I think I fixed it. Can I get a re-review?

@sfackler
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 22, 2016

📌 Commit 6b697a3 has been approved by sfackler

@bors
Copy link
Contributor

bors commented Sep 23, 2016

⌛ Testing commit 6b697a3 with merge f2c53ea...

bors added a commit that referenced this pull request Sep 23, 2016
@bors bors merged commit 6b697a3 into rust-lang:master Sep 23, 2016
@frewsxcv frewsxcv deleted the dir-entry-debug branch September 23, 2016 13:12
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