From cf1406c4e37b0c0710788aa81c989618650b8e43 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 1 Nov 2018 09:52:14 +0100 Subject: [PATCH] Clarify error message for -C opt-level The new levels s and z are not mentioned as possible values. --- src/librustc/session/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 569e7a24d2353..459a748dd6a60 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 ), );