Skip to content

Commit a284733

Browse files
authored
Rollup merge of rust-lang#55576 - birkenfeld:opt-level-error-msg, r=cramertj
Clarify error message for -C opt-level The new levels s and z are not mentioned as possible values.
2 parents 127e7f8 + cf1406c commit a284733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/session/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ pub fn build_session_options_and_crate_config(
20822082
error_format,
20832083
&format!(
20842084
"optimization level needs to be \
2085-
between 0-3 (instead was `{}`)",
2085+
between 0-3, s or z (instead was `{}`)",
20862086
arg
20872087
),
20882088
);

0 commit comments

Comments
 (0)