Uh oh!
There was an error while loading. Please reload this page.
Replace -O and -g with -C before handling options - #32399
Conversation
rust-highfive
commented
Mar 21, 2016
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
sanxiyn
commented
Mar 21, 2016
Travis failed because of conflict with #32369. (No textual conflict, but it changed Vec to slice.) |
alexcrichton
commented
Mar 21, 2016
I'm not sure that this is the best way to implement a change like this, it's modifying pre-parsed options which could perhaps mess with parsing other options. For example what if an argument to another argument is the string This is also a semantic change which may or may not be intended, I kinda forget the original motivation here... cc @rust-lang/tools |
nrc
commented
Mar 21, 2016
I would like to see some discussion of #32352 before landing a PR. Perhaps an internals thread? Given that it is the interface to the compiler, maybe even an RFC. |
nrc
commented
Mar 21, 2016
Sorry, I think I misunderstood that issue, it's not actually proposing anything new, just better handling overlap. In which case it seems more like just a bug. |
sanxiyn
commented
Mar 29, 2016
Rebased. |
alexcrichton
commented
Mar 29, 2016
This continues to not handle the case I mentioned which I would personally consider a blocker for this. |
sanxiyn
commented
Mar 29, 2016
Is this possible? I failed to come up with such |
alexcrichton
commented
Mar 29, 2016
This may involve tweaking getopts perhaps to learn about the position of arguments. Either that or we could just change the semantics so the opt level is the max, not the rightmost one (which makes more sense to me at least) |
sanxiyn
commented
Mar 30, 2016
"max not rightmost" would be different from GCC. |
alexcrichton
commented
Mar 30, 2016
Right, it's just easier to implement that a modification to getopts to track where each option came from positionally which I believe is the other alternative here. |
MagaTailor
commented
Mar 31, 2016
What about this case? (message is printed in plain text, no hint it's an error)
after providing |
alexcrichton
commented
May 1, 2016
Closing due to inactivity, but feel free to resubmit with comments addressed! |
Fix#32352.