Skip to content

Commit b547dfc

Browse files
author
Ariel Ben-Yehuda
committed
fix error message to not mention basic
1 parent 2b54615 commit b547dfc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,7 @@ mod desc {
869869
pub(crate) const parse_polonius: &str = "either no value or `legacy` (the default), or `next`";
870870
pub(crate) const parse_annotate_moves: &str =
871871
"either a boolean (`yes`, `no`, `on`, `off`, etc.), or a size limit in bytes";
872-
pub(crate) const parse_stack_protector: &str =
873-
"one of (`none` (default), `basic`, `strong`, or `all`)";
872+
pub(crate) const parse_stack_protector: &str = "one of (`none` (default), `strong`, or `all`)";
874873
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)";
875874
pub(crate) const parse_proc_macro_execution_strategy: &str =
876875
"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)