Rollup merge of #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.
This commit is contained in:
Mark Rousskov 2018-11-08 18:14:46 -07:00 committed by GitHub
commit 6153ce127a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
),
);