]> git.lizzy.rs Git - rust.git/commitdiff
Fix invalid panic setup message
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 22 Nov 2018 21:17:23 +0000 (22:17 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 22 Nov 2018 23:13:44 +0000 (00:13 +0100)
src/librustc/session/config.rs
src/test/ui/panic-runtime/bad-panic-flag1.rs
src/test/ui/panic-runtime/bad-panic-flag1.stderr
src/test/ui/panic-runtime/bad-panic-flag2.rs
src/test/ui/panic-runtime/bad-panic-flag2.stderr

index 78aabf86e300d72ae2a8784897db7bff0356a679..07f095fc6139c69ea1b3e28e33a1a665f95eb063 100644 (file)
@@ -802,7 +802,7 @@ mod $mod_desc {
         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> =
index f067b6b8349b67b746ca270fab40f252d484495a..4e553c4df2fd49a9b7b3b86b95881eee1997bdf1 100644 (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() {}
index 3a65419c98fb71e6005e5168f73114afa7529f82..013373c6f93132eb30a8b00bd37f54811a6a0ed8 100644 (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
 
index 0ecf65f080fa9e19ebd8a20fba0b68151262fe3b..f560e7f4eb2de8046d27a9a5fe50288d63c3f2f8 100644 (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() {}
index 8d919e55c90682cf1946af096c6be7f88b7dd100..6ab94ea704d30c19f30b4322ffec3979cb01e939 100644 (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>)