-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix processing mod with multi-level path on Windows #51278
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
Fix processing mod with multi-level path on Windows #51278
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @michaelwoerister (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
fc0aaed
to
bd6c81a
Compare
r? @nikomatsakis for re-assignment |
@nikomatsakis You right. Rust works with it fine but |
If you have a relative path, it is completely valid to do replacements such as changing |
@bors r+ -- ok, I .. guess this is a good start then. |
📌 Commit 459e223 has been approved by |
@bors r- -- whoops |
@EPashkin can we add some form of test for this? It looks like there are some examples of tests that use |
At worst we could do a |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@nikomatsakis I almost sure that test don't use
|
459e223
to
b417701
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
da972b1
to
8e4c046
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
8e4c046
to
06939f4
Compare
06939f4
to
65fb2a4
Compare
65fb2a4
to
cb5e973
Compare
@EPashkin nice job going above and beyond with the test :) I think it's really good to test these sorts of properties, as they are easily overlooked during refactorings and things. (I presume that test fails without your PR?) |
@nikomatsakis Thanks. |
@nikomatsakis This is final test version. |
@nikomatsakis Friendly reminder of this PR |
Ping from triage @nikomatsakis! This PR needs your review. |
@bors r+ |
📌 Commit cb5e973 has been approved by |
…ows, r=nikomatsakis Fix processing mod with multi-level path on Windows Fix error in [rustfmt](rust-lang/rustfmt#1754) because libsyntax can not handle `mod` with multilevel path on Windows. Alternative is do almost same in https://github.com/rust-lang/rust/blob/master/src/libstd/sys/windows/fs.rs#L717 to allow work on paths with different separators, Ex. "\\\\?\\c:\\windows/temp"
☀️ Test successful - status-appveyor, status-travis |
Fix error in rustfmt because libsyntax can not handle
mod
with multilevel path on Windows.Alternative is do almost same in https://github.com/rust-lang/rust/blob/master/src/libstd/sys/windows/fs.rs#L717 to allow work on paths with different separators, Ex. "\\?\c:\windows/temp"