Skip to content

Commit cf1406c

Browse files
committed
Clarify error message for -C opt-level
The new levels s and z are not mentioned as possible values.
1 parent c613d26 commit cf1406c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ pub fn build_session_options_and_crate_config(
20832083
error_format,
20842084
&format!(
20852085
"optimization level needs to be \
2086-
between 0-3 (instead was `{}`)",
2086+
between 0-3, s or z (instead was `{}`)",
20872087
arg
20882088
),
20892089
);

0 commit comments

Comments
 (0)