From edf1622bb4f3bd2ba8c8cd13c12a22e7d776120f Mon Sep 17 00:00:00 2001 From: oyvindln Date: Wed, 13 Sep 2017 20:11:02 +0200 Subject: [PATCH 1/2] Add proper help line for inline threshold Also remove a period on a different help line for consistency --- src/librustc/session/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 59f600f39077c..a4b13bb2f4dbc 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -905,7 +905,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options, debug_assertions: Option = (None, parse_opt_bool, [TRACKED], "explicitly enable the cfg(debug_assertions) directive"), inline_threshold: Option = (None, parse_opt_uint, [TRACKED], - "set the inlining threshold for"), + "set the threshold for inlining a function (default: 225)"), panic: Option = (None, parse_panic_strategy, [TRACKED], "panic strategy to compile crate with"), } @@ -1052,7 +1052,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, linker_flavor: Option = (None, parse_linker_flavor, [UNTRACKED], "Linker flavor"), fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED], - "Set the optimization fuel quota for a crate."), + "Set the optimization fuel quota for a crate"), print_fuel: Option = (None, parse_opt_string, [TRACKED], "Make Rustc print the total optimization fuel used by a crate."), remap_path_prefix_from: Vec = (vec![], parse_string_push, [TRACKED], From e89748e54f059e72b4ab4b6948a992f273c64cc6 Mon Sep 17 00:00:00 2001 From: oyvindln Date: Wed, 13 Sep 2017 22:50:47 +0200 Subject: [PATCH 2/2] Remove the other period and start with lowercase for more consistency --- src/librustc/session/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index a4b13bb2f4dbc..4cc2a087d81b5 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1052,9 +1052,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, linker_flavor: Option = (None, parse_linker_flavor, [UNTRACKED], "Linker flavor"), fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED], - "Set the optimization fuel quota for a crate"), + "set the optimization fuel quota for a crate"), print_fuel: Option = (None, parse_opt_string, [TRACKED], - "Make Rustc print the total optimization fuel used by a crate."), + "make Rustc print the total optimization fuel used by a crate"), remap_path_prefix_from: Vec = (vec![], parse_string_push, [TRACKED], "add a source pattern to the file path remapping config"), remap_path_prefix_to: Vec = (vec![], parse_string_push, [TRACKED],