about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:14:38 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-12 09:14:38 +0530
commite4e5640a6e189004c81417902a94242074acf530 (patch)
tree90c10b5f0e06db313088573503592150afa5ee04 /src/rustllvm/ExecutionEngineWrapper.cpp
parent99dc60dc249eca7a8ff4411aaafa49204403b38f (diff)
parent61004f88d1a250d2086c0ad28f005380a6a64f9f (diff)
downloadrust-e4e5640a6e189004c81417902a94242074acf530.tar.gz
rust-e4e5640a6e189004c81417902a94242074acf530.zip
Rollup merge of #23274 - rprichard:fix-21715, r=pnkfelix
  * Consumers of handle_options assume the unstable options are defined in
   the getopts::Matches value if -Z unstable-options is set, but that's not
   the case if there weren't any actual unstable options. Fix this by
   always reparsing options when -Z unstable-options is set.

 * If both argument parsing attempts fail, print the error from the second
   attempt rather than the first. The error from the first is very poor
   whenever unstable options are present. e.g.:

       $ rustc hello.rs -Z unstable-options --show-span
       error: Unrecognized option: 'show-span'.
       $ rustc hello.rs -Z unstable-options --pretty --pretty
       error: Unrecognized option: 'pretty'.
       $ rustc hello.rs -Z unstable-options --pretty --bad-option
       error: Unrecognized option: 'pretty'.

 * On the second parse, add a separate pass to reject unstable options if
   -Z unstable-options wasn't specified.

Fixes #21715.
r? @pnkfelix
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions