From 2109464cc5b0553c1016dd7acee0951c99796fae Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 1 Apr 2020 10:53:24 +1100 Subject: [PATCH] Make some option descriptions fit the usual pattern. - No trailing '.' chars. - Use a lower-case letter at the start. --- src/librustc_session/options.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs index 94e65093e71b..b759887cf5c0 100644 --- a/src/librustc_session/options.rs +++ b/src/librustc_session/options.rs @@ -721,7 +721,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options, "linker flavor"), linker_plugin_lto: LinkerPluginLto = (LinkerPluginLto::Disabled, parse_linker_plugin_lto, [TRACKED], - "generate build artifacts that are compatible with linker-based LTO."), + "generate build artifacts that are compatible with linker-based LTO"), profile_generate: SwitchWithOptPath = (SwitchWithOptPath::Disabled, parse_switch_with_opt_path, [TRACKED], "compile the program with profiling instrumentation"), @@ -875,9 +875,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, sanitizer: Option = (None, parse_sanitizer, [TRACKED], "use a sanitizer"), sanitizer_recover: Vec = (vec![], parse_sanitizer_list, [TRACKED], - "Enable recovery for selected sanitizers"), + "enable recovery for selected sanitizers"), sanitizer_memory_track_origins: usize = (0, parse_sanitizer_memory_track_origins, [TRACKED], - "Enable origins tracking in MemorySanitizer"), + "enable origins tracking in MemorySanitizer"), fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED], "set the optimization fuel quota for a crate"), print_fuel: Option = (None, parse_opt_string, [TRACKED], @@ -897,7 +897,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, nll_facts: bool = (false, parse_bool, [UNTRACKED], "dump facts from NLL analysis into side files"), dont_buffer_diagnostics: bool = (false, parse_bool, [UNTRACKED], - "emit diagnostics rather than buffering (breaks NLL error downgrading, sorting)."), + "emit diagnostics rather than buffering (breaks NLL error downgrading, sorting)"), polonius: bool = (false, parse_bool, [UNTRACKED], "enable polonius-based borrow-checker"), thinlto: Option = (None, parse_opt_bool, [TRACKED], @@ -931,7 +931,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, embed_bitcode: bool = (false, parse_bool, [TRACKED], "embed LLVM bitcode in object files"), strip_debuginfo_if_disabled: Option = (None, parse_opt_bool, [TRACKED], - "tell the linker to strip debuginfo when building without debuginfo enabled."), + "tell the linker to strip debuginfo when building without debuginfo enabled"), share_generics: Option = (None, parse_opt_bool, [TRACKED], "make the current crate share its generic instantiations"), no_parallel_llvm: bool = (false, parse_bool, [UNTRACKED], @@ -981,7 +981,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, new_llvm_pass_manager: Option = (None, parse_opt_bool, [TRACKED], "use new LLVM pass manager"), link_native_libraries: Option = (None, parse_opt_bool, [UNTRACKED], - "Link native libraries in the linker invocation."), + "link native libraries in the linker invocation"), src_hash_algorithm: Option = (None, parse_src_file_hash, [TRACKED], "hash algorithm of source files in debug info (`md5`, or `sha1`)"), }