Skip to content

Commit

Permalink
Rollup merge of rust-lang#55576 - birkenfeld:opt-level-error-msg, r=c…
Browse files Browse the repository at this point in the history
…ramertj

Clarify error message for -C opt-level

The new levels s and z are not mentioned as possible values.
  • Loading branch information
Mark-Simulacrum authored Nov 9, 2018
2 parents 653da4f + cf1406c commit 6153ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ pub fn build_session_options_and_crate_config(
error_format,
&format!(
"optimization level needs to be \
between 0-3 (instead was `{}`)",
between 0-3, s or z (instead was `{}`)",
arg
),
);
Expand Down

0 comments on commit 6153ce1

Please sign in to comment.