From: TieWay59 Date: Wed, 19 Apr 2023 06:07:34 +0000 (+0800) Subject: gccrs: Fix translation mistakes 2023 in GCC/Rust [PR108890] X-Git-Tag: basepoints/gcc-15~2635 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=747d9a92ddb74fa7ba1bb6ca0079abd5eaa38791;p=thirdparty%2Fgcc.git gccrs: Fix translation mistakes 2023 in GCC/Rust [PR108890] In https://gcc.gnu.org/PR108890 "Translation mistakes 2023" @rillig lists several issues with GCC/Rust diagnostics and option help texts (but also a few non-GCC/Rust). This commit fix mistakes only related to GCC/Rust, specifically to the file `gcc/rust/lang.opt`. closes https://github.com/Rust-GCC/gccrs/issues/1916 PR translation/108890 gcc/rust/ * lang.opt: Fix translation mistakes 2023 in GCC/Rust [PR108890] (line 67): change the inconsistent tab to spaces (line 75): wrap bare placeholder `integer` (line 79): remove redundant text of `Choose which` (line 96): remove redundant text of `Choose which` (line 112): remove redundant `Flag to` (line 124): correct the exclusive term `When to stop` (line 124): correct typo of `copimlation` Signed-off-by: Tieway59 --- diff --git a/gcc/rust/lang.opt b/gcc/rust/lang.opt index 38cc1a9d1717..1c3b5b0dbf2f 100644 --- a/gcc/rust/lang.opt +++ b/gcc/rust/lang.opt @@ -64,7 +64,7 @@ Dump various Rust front end internals. frust-dump- Rust Joined RejectNegative --frust-dump- Dump Rust frontend internal information. +-frust-dump- Dump Rust frontend internal information. frust-incomplete-and-experimental-compiler-do-not-use Rust Var(flag_rust_experimental) @@ -72,11 +72,11 @@ Enable experimental compilation of Rust files at your own risk frust-max-recursion-depth= Rust RejectNegative Type(int) Var(rust_max_recursion_depth) Init(64) --frust-max-recursion-depth=integer +-frust-max-recursion-depth= frust-mangling= Rust Joined RejectNegative Enum(frust_mangling) Var(flag_rust_mangling) --frust-mangling=[legacy|v0] Choose which version to use for name mangling +-frust-mangling=[legacy|v0] Version to use for name mangling Enum Name(frust_mangling) Type(int) UnknownError(unknown rust mangling option %qs) @@ -93,7 +93,7 @@ Rust Joined RejectNegative frust-edition= Rust Joined RejectNegative Enum(frust_edition) Var(flag_rust_edition) --frust-edition=[2015|2018|2021] Choose which edition to use when compiling rust code +-frust-edition=[2015|2018|2021] Edition to use when compiling rust code Enum Name(frust_edition) Type(int) UnknownError(unknown rust edition %qs) @@ -109,7 +109,7 @@ Enum(frust_edition) String(2021) Value(2) frust-embed-metadata Rust Var(flag_rust_embed_metadata) -Flag to enable embeding metadata directly into object files +Enable embedding metadata directly into object files frust-metadata-output= Rust Joined RejectNegative @@ -121,7 +121,7 @@ Rust Joined Separate frust-compile-until= Rust Joined RejectNegative Enum(frust_compile_until) Var(flag_rust_compile_until) --frust-compile-until=[ast|attributecheck|expansion|nameresolution|lowering|typecheck|privacy|unsafety|const|copimlation|end] When to stop in the pipeline when compiling Rust code +-frust-compile-until=[ast|attributecheck|expansion|nameresolution|lowering|typecheck|privacy|unsafety|const|compilation|end] The pipeline will run up until this stage when compiling Rust code Enum Name(frust_compile_until) Type(int) UnknownError(unknown rust compile-until %qs)