Skip to content

Commit 2109464

Browse files
committed
Make some option descriptions fit the usual pattern.
- No trailing '.' chars. - Use a lower-case letter at the start.
1 parent a0e52b1 commit 2109464

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustc_session/options.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
721721
"linker flavor"),
722722
linker_plugin_lto: LinkerPluginLto = (LinkerPluginLto::Disabled,
723723
parse_linker_plugin_lto, [TRACKED],
724-
"generate build artifacts that are compatible with linker-based LTO."),
724+
"generate build artifacts that are compatible with linker-based LTO"),
725725
profile_generate: SwitchWithOptPath = (SwitchWithOptPath::Disabled,
726726
parse_switch_with_opt_path, [TRACKED],
727727
"compile the program with profiling instrumentation"),
@@ -875,9 +875,9 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
875875
sanitizer: Option<Sanitizer> = (None, parse_sanitizer, [TRACKED],
876876
"use a sanitizer"),
877877
sanitizer_recover: Vec<Sanitizer> = (vec![], parse_sanitizer_list, [TRACKED],
878-
"Enable recovery for selected sanitizers"),
878+
"enable recovery for selected sanitizers"),
879879
sanitizer_memory_track_origins: usize = (0, parse_sanitizer_memory_track_origins, [TRACKED],
880-
"Enable origins tracking in MemorySanitizer"),
880+
"enable origins tracking in MemorySanitizer"),
881881
fuel: Option<(String, u64)> = (None, parse_optimization_fuel, [TRACKED],
882882
"set the optimization fuel quota for a crate"),
883883
print_fuel: Option<String> = (None, parse_opt_string, [TRACKED],
@@ -897,7 +897,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
897897
nll_facts: bool = (false, parse_bool, [UNTRACKED],
898898
"dump facts from NLL analysis into side files"),
899899
dont_buffer_diagnostics: bool = (false, parse_bool, [UNTRACKED],
900-
"emit diagnostics rather than buffering (breaks NLL error downgrading, sorting)."),
900+
"emit diagnostics rather than buffering (breaks NLL error downgrading, sorting)"),
901901
polonius: bool = (false, parse_bool, [UNTRACKED],
902902
"enable polonius-based borrow-checker"),
903903
thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],
@@ -931,7 +931,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
931931
embed_bitcode: bool = (false, parse_bool, [TRACKED],
932932
"embed LLVM bitcode in object files"),
933933
strip_debuginfo_if_disabled: Option<bool> = (None, parse_opt_bool, [TRACKED],
934-
"tell the linker to strip debuginfo when building without debuginfo enabled."),
934+
"tell the linker to strip debuginfo when building without debuginfo enabled"),
935935
share_generics: Option<bool> = (None, parse_opt_bool, [TRACKED],
936936
"make the current crate share its generic instantiations"),
937937
no_parallel_llvm: bool = (false, parse_bool, [UNTRACKED],
@@ -981,7 +981,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
981981
new_llvm_pass_manager: Option<bool> = (None, parse_opt_bool, [TRACKED],
982982
"use new LLVM pass manager"),
983983
link_native_libraries: Option<bool> = (None, parse_opt_bool, [UNTRACKED],
984-
"Link native libraries in the linker invocation."),
984+
"link native libraries in the linker invocation"),
985985
src_hash_algorithm: Option<SourceFileHashAlgorithm> = (None, parse_src_file_hash, [TRACKED],
986986
"hash algorithm of source files in debug info (`md5`, or `sha1`)"),
987987
}

0 commit comments

Comments
 (0)