From 965c8d88a75dceff595fd63389bb8df60057073e Mon Sep 17 00:00:00 2001 From: David McGillicuddy Date: Sun, 15 May 2022 01:25:07 +0100 Subject: [PATCH 1/2] update lto error message --- compiler/rustc_session/src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 14e918660dd39..41f45c0927a09 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -393,7 +393,7 @@ mod desc { pub const parse_unpretty: &str = "`string` or `string=string`"; pub const parse_treat_err_as_bug: &str = "either no value or a number bigger than 0"; pub const parse_lto: &str = - "either a boolean (`yes`, `no`, `on`, `off`, etc), `thin`, `fat`, or omitted"; + "either a boolean (`true`, `false`, `yes`, `no`, `on`, `off`, etc), or a string (`\"thin\"`, `\"fat\"`), or omitted"; pub const parse_linker_plugin_lto: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or the path to the linker plugin"; pub const parse_location_detail: &str = From 537f6e55fe2512d9f2f3c76a8eba13f13b408bd4 Mon Sep 17 00:00:00 2001 From: David McGillicuddy Date: Sun, 15 May 2022 02:55:41 +0100 Subject: [PATCH 2/2] fmt --- compiler/rustc_session/src/options.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 41f45c0927a09..11c5a4b6cd152 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -392,8 +392,7 @@ mod desc { "`all` (default), `except-unused-generics`, `except-unused-functions`, or `off`"; pub const parse_unpretty: &str = "`string` or `string=string`"; pub const parse_treat_err_as_bug: &str = "either no value or a number bigger than 0"; - pub const parse_lto: &str = - "either a boolean (`true`, `false`, `yes`, `no`, `on`, `off`, etc), or a string (`\"thin\"`, `\"fat\"`), or omitted"; + pub const parse_lto: &str = "either a boolean (`true`, `false`, `yes`, `no`, `on`, `off`, etc), or a string (`\"thin\"`, `\"fat\"`), or omitted"; pub const parse_linker_plugin_lto: &str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or the path to the linker plugin"; pub const parse_location_detail: &str =