Skip to content

Commit 156698e

Browse files
authored
Rollup merge of rust-lang#44548 - oyvindln:rustc_help_fix, r=arielb1
Add proper help line for `-C inline threshold` Looks like someone accidentally some words when adding this. This also remove a period on a different help line for consistency, as no options have a period.
2 parents 8dae2b0 + e89748e commit 156698e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/session/config.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
938938
debug_assertions: Option<bool> = (None, parse_opt_bool, [TRACKED],
939939
"explicitly enable the cfg(debug_assertions) directive"),
940940
inline_threshold: Option<usize> = (None, parse_opt_uint, [TRACKED],
941-
"set the inlining threshold for"),
941+
"set the threshold for inlining a function (default: 225)"),
942942
panic: Option<PanicStrategy> = (None, parse_panic_strategy,
943943
[TRACKED], "panic strategy to compile crate with"),
944944
}
@@ -1085,9 +1085,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
10851085
linker_flavor: Option<LinkerFlavor> = (None, parse_linker_flavor, [UNTRACKED],
10861086
"Linker flavor"),
10871087
fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED],
1088-
"Set the optimization fuel quota for a crate."),
1088+
"set the optimization fuel quota for a crate"),
10891089
print_fuel: Option<String> = (None, parse_opt_string, [TRACKED],
1090-
"Make Rustc print the total optimization fuel used by a crate."),
1090+
"make Rustc print the total optimization fuel used by a crate"),
10911091
remap_path_prefix_from: Vec<String> = (vec![], parse_string_push, [TRACKED],
10921092
"add a source pattern to the file path remapping config"),
10931093
remap_path_prefix_to: Vec<String> = (vec![], parse_string_push, [TRACKED],

0 commit comments

Comments
 (0)