Uh oh!
There was an error while loading. Please reload this page.
Implement --remap-path-prefix - #48359
Conversation
rust-highfive
commented
Feb 19, 2018
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (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. |
There was a problem hiding this comment.
The evaluation of components in tuple constructors is probably defined, but I still find this hard to read. And it's probably the wrong order because the iterator starts at the end :) Could you rewrite this to something like:
letmut parts = ...;let to = parts.next();let from = parts.next();match(from, to){ ...}There was a problem hiding this comment.
Is there anything that implements FromIterator<Item=T> for Option<(T,...)>? I keep ending up in situations where it would be useful (mostly parsing with split), but I suspect it would clash with an existing FromIterator for Option<T> (unless specialization helps?).
michaelwoerister
commented
Feb 20, 2018
jsgf
commented
Feb 20, 2018
Yes, documentation was my next question. |
Removed unstable book documentation and updated rustc.1 man page, which seems to be the only place I could find written documentation on command-line options. |
steveklabnik
commented
Feb 21, 2018
Yes, for now that's true. We haven't created a space for |
michaelwoerister
commented
Feb 21, 2018
bors
commented
Feb 21, 2018
📌 Commit ffd8ea7 has been approved by |
jsgf
commented
Feb 22, 2018
Ah, I just found a problem - it looks like having this option on the command line changes the crate hash. |
jsgf
commented
Feb 22, 2018
jsgf
commented
Feb 22, 2018
Rebasing to master seems to have fixed it, so maybe I just didn't have the other change before. |
Remove experimental -Zremap-path-prefix-from/to, and replace it with the stabilized --remap-path-prefix=from=to variant. This is an implementation for issue of rust-lang#41555.
sanxiyn
commented
Feb 26, 2018
@bors r+ |
bors
commented
Feb 26, 2018
📌 Commit 56a6828 has been approved by |
Remove experimental -Zremap-path-prefix-from/to, and replace it with
the stabilized --remap-path-prefix=from=to variant.
Implementation for #41555