summaryrefslogtreecommitdiff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2023-02-21 22:27:16 +0200
committerTshepang Mbambo <tshepang@gmail.com>2023-02-21 22:27:16 +0200
commitb483816d88ebea5890f4810617ef5f2fabb25494 (patch)
tree13cea97d0276d8902083ba43af44fa65c2dacf83 /compiler/rustc_error_messages
parent3200982b7689ff496e63584c5c8f9bf707b98ae3 (diff)
downloadrust-b483816d88ebea5890f4810617ef5f2fabb25494.tar.gz
hir-analysis: make one diagnostic translatable
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl b/compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
index 41f458f6c17..f8d28817fec 100644
--- a/compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl
@@ -124,3 +124,6 @@ hir_analysis_linkage_type =
hir_analysis_auto_deref_reached_recursion_limit = reached the recursion limit while auto-dereferencing `{$ty}`
.label = deref recursion limit reached
.help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)
+
+hir_analysis_track_caller_on_main = `main` function is not allowed to be `#[track_caller]`
+ .label = `main` function is not allowed to be `#[track_caller]`