summaryrefslogtreecommitdiff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2022-12-28 23:21:04 +0100
committerXiretza <xiretza@xiretza.xyz>2023-02-01 21:56:28 +0100
commit0d0d36991599d230d4781432391608f9821765fa (patch)
tree9c43880852c0a5bf7654766a9994d83a122d7fb9 /compiler/rustc_error_messages
parenta476683c8478f548adee406e036328412a0f9d19 (diff)
downloadrust-0d0d36991599d230d4781432391608f9821765fa.tar.gz
Make "use latest edition" subdiagnostic translatable
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl4
-rw-r--r--compiler/rustc_error_messages/locales/en-US/parse.ftl4
2 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl b/compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl
index ca72b7faa92..0f13d29d0fc 100644
--- a/compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl
@@ -57,3 +57,7 @@ hir_typeck_lang_start_incorrect_param = parameter {$param_num} of the `start` la
hir_typeck_lang_start_incorrect_ret_ty = the return type of the `start` lang item is incorrect
.suggestion = change the type from `{$found_ty}` to `{$expected_ty}`
+
+hir_typeck_help_set_edition_cargo = set `edition = "{$edition}"` in `Cargo.toml`
+hir_typeck_help_set_edition_standalone = pass `--edition {$edition}` to `rustc`
+hir_typeck_note_edition_guide = for more on editions, read https://doc.rust-lang.org/edition-guide
diff --git a/compiler/rustc_error_messages/locales/en-US/parse.ftl b/compiler/rustc_error_messages/locales/en-US/parse.ftl
index 91902081d90..21cf4bd789c 100644
--- a/compiler/rustc_error_messages/locales/en-US/parse.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/parse.ftl
@@ -574,3 +574,7 @@ parse_negative_bounds_not_supported = negative bounds are not supported
[one] remove the bound
*[other] remove the bounds
}
+
+parse_help_set_edition_cargo = set `edition = "{$edition}"` in `Cargo.toml`
+parse_help_set_edition_standalone = pass `--edition {$edition}` to `rustc`
+parse_note_edition_guide = for more on editions, read https://doc.rust-lang.org/edition-guide