about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2018-11-01 09:52:14 +0100
committerGeorg Brandl <georg@python.org>2018-11-01 09:52:14 +0100
commitcf1406c4e37b0c0710788aa81c989618650b8e43 (patch)
tree56aec3b98aa352092bfb3aacbb6114c819748dd8
parentc613d26ee2ed801f775af9872062775ab89609ac (diff)
downloadrust-cf1406c4e37b0c0710788aa81c989618650b8e43.tar.gz
rust-cf1406c4e37b0c0710788aa81c989618650b8e43.zip
Clarify error message for -C opt-level
The new levels s and z are not mentioned as possible values.
-rw-r--r--src/librustc/session/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs
index 569e7a24d23..459a748dd6a 100644
--- a/src/librustc/session/config.rs
+++ b/src/librustc/session/config.rs
@@ -2083,7 +2083,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
                         ),
                     );