]> gcc.gnu.org Git - gcc.git/commitdiff
gccrs: Fix translation mistakes 2023 in GCC/Rust [PR108890]
authorTieWay59 <tieway59@foxmail.com>
Wed, 19 Apr 2023 06:07:34 +0000 (14:07 +0800)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:11 +0000 (18:34 +0100)
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 <tieway59@foxmail.com>
gcc/rust/lang.opt

index 38cc1a9d171734a1434a2f4a15a99c3a36afc6a1..1c3b5b0dbf2fb8b734b49323a3382107036a4dfd 100644 (file)
@@ -64,7 +64,7 @@ Dump various Rust front end internals.
 
 frust-dump-
 Rust Joined RejectNegative
--frust-dump-<type>     Dump Rust frontend internal information.
+-frust-dump-<type>              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=<integer>
 
 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)
This page took 0.063642 seconds and 5 git commands to generate.