Fix error message for -C panic=xxx.

This commit is contained in:
Eric Huss 2018-11-19 13:29:35 -08:00
parent 39852cae2b
commit b8da719024
5 changed files with 5 additions and 5 deletions

View file

@ -802,7 +802,7 @@ macro_rules! options {
pub const parse_opt_uint: Option<&'static str> =
Some("a number");
pub const parse_panic_strategy: Option<&'static str> =
Some("either `panic` or `abort`");
Some("either `unwind` or `abort`");
pub const parse_relro_level: Option<&'static str> =
Some("one of: `full`, `partial`, or `off`");
pub const parse_sanitizer: Option<&'static str> =

View file

@ -9,6 +9,6 @@
// except according to those terms.
// compile-flags:-C panic=foo
// error-pattern:either `panic` or `abort` was expected
// error-pattern:either `unwind` or `abort` was expected
fn main() {}

View file

@ -1,2 +1,2 @@
error: incorrect value `foo` for codegen option `panic` - either `panic` or `abort` was expected
error: incorrect value `foo` for codegen option `panic` - either `unwind` or `abort` was expected

View file

@ -9,6 +9,6 @@
// except according to those terms.
// compile-flags:-C panic
// error-pattern:requires either `panic` or `abort`
// error-pattern:requires either `unwind` or `abort`
fn main() {}

View file

@ -1,2 +1,2 @@
error: codegen option `panic` requires either `panic` or `abort` (C panic=<value>)
error: codegen option `panic` requires either `unwind` or `abort` (C panic=<value>)