about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/messages.ftl
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-25 17:14:33 +0000
committerMichael Goulet <michael@errs.io>2025-02-13 05:45:53 +0000
commit72b4df3772a6c2cae8d9cf7ae618c010c10131b2 (patch)
tree7c2d611b8fce4d6776b7579df0a65d8078399290 /compiler/rustc_hir_analysis/messages.ftl
parent2189908170f86809b7de5275dcde0cf828c16b37 (diff)
downloadrust-72b4df3772a6c2cae8d9cf7ae618c010c10131b2.tar.gz
rust-72b4df3772a6c2cae8d9cf7ae618c010c10131b2.zip
Implement lint for definition site item shadowing too
Diffstat (limited to 'compiler/rustc_hir_analysis/messages.ftl')
-rw-r--r--compiler/rustc_hir_analysis/messages.ftl6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/messages.ftl b/compiler/rustc_hir_analysis/messages.ftl
index 7344ea01fb2..5560d087e96 100644
--- a/compiler/rustc_hir_analysis/messages.ftl
+++ b/compiler/rustc_hir_analysis/messages.ftl
@@ -506,6 +506,12 @@ hir_analysis_specialization_trait = implementing `rustc_specialization_trait` tr
 
 hir_analysis_static_specialize = cannot specialize on `'static` lifetime
 
+hir_analysis_supertrait_item_multiple_shadowee = items from several supertraits are shadowed: {$traits}
+
+hir_analysis_supertrait_item_shadowee = item from `{$supertrait}` is shadowed by a subtrait item
+
+hir_analysis_supertrait_item_shadowing = trait item `{$item}` from `{$subtrait}` shadows identically named item from supertrait
+
 hir_analysis_tait_forward_compat = item constrains opaque type that is not in its signature
     .note = this item must mention the opaque type in its signature in order to be able to register hidden types