Skip to content

Commit 5a5bf3a

Browse files
author
Ariel Ben-Yehuda
committed
fix error message to not mention basic
1 parent f0487c9 commit 5a5bf3a

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,7 @@ mod desc {
875875
pub(crate) const parse_polonius: &str = "either no value or `legacy` (the default), or `next`";
876876
pub(crate) const parse_annotate_moves: &str =
877877
"either a boolean (`yes`, `no`, `on`, `off`, etc.), or a size limit in bytes";
878-
pub(crate) const parse_stack_protector: &str =
879-
"one of (`none` (default), `basic`, `strong`, or `all`)";
878+
pub(crate) const parse_stack_protector: &str = "one of (`none` (default), `strong`, or `all`)";
880879
pub(crate) const parse_branch_protection: &str = "a `,` separated combination of `bti`, `gcs`, `pac-ret`, (optionally with `pc`, `b-key`, `leaf` if `pac-ret` is set)";
881880
pub(crate) const parse_proc_macro_execution_strategy: &str =
882881
"one of supported execution strategies (`same-thread`, or `cross-thread`)";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
error: incorrect value `basic` for codegen option `stack-protector` - one of (`none` (default), `basic`, `strong`, or `all`) was expected
1+
error: incorrect value `basic` for codegen option `stack-protector` - one of (`none` (default), `strong`, or `all`) was expected
22

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
error: incorrect value `basic` for unstable option `stack-protector` - one of (`none` (default), `basic`, `strong`, or `all`) was expected
1+
error: incorrect value `basic` for unstable option `stack-protector` - one of (`none` (default), `strong`, or `all`) was expected
22

0 commit comments

Comments
 (0)