Skip to content

Commit edf1622

Browse files
committed
Add proper help line for inline threshold
Also remove a period on a different help line for consistency
1 parent 824952f commit edf1622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/session/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
905905
debug_assertions: Option<bool> = (None, parse_opt_bool, [TRACKED],
906906
"explicitly enable the cfg(debug_assertions) directive"),
907907
inline_threshold: Option<usize> = (None, parse_opt_uint, [TRACKED],
908-
"set the inlining threshold for"),
908+
"set the threshold for inlining a function (default: 225)"),
909909
panic: Option<PanicStrategy> = (None, parse_panic_strategy,
910910
[TRACKED], "panic strategy to compile crate with"),
911911
}
@@ -1052,7 +1052,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
10521052
linker_flavor: Option<LinkerFlavor> = (None, parse_linker_flavor, [UNTRACKED],
10531053
"Linker flavor"),
10541054
fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED],
1055-
"Set the optimization fuel quota for a crate."),
1055+
"Set the optimization fuel quota for a crate"),
10561056
print_fuel: Option<String> = (None, parse_opt_string, [TRACKED],
10571057
"Make Rustc print the total optimization fuel used by a crate."),
10581058
remap_path_prefix_from: Vec<String> = (vec![], parse_string_push, [TRACKED],

0 commit comments

Comments
 (0)