about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-06-28 13:55:12 +0100
committerDavid Wood <david.wood@huawei.com>2022-06-30 08:59:22 +0100
commitdbced105db2b417d40b90a55c4c1a68a4f0ee6aa (patch)
tree8acde3b2079fb51c6c83064451c87efeff946361 /compiler/rustc_error_messages
parent23ee3e09141fd01ba3ec648123aa319810867c86 (diff)
downloadrust-dbced105db2b417d40b90a55c4c1a68a4f0ee6aa.tar.gz
rust-dbced105db2b417d40b90a55c4c1a68a4f0ee6aa.zip
lint: port unreachable `pub` diagnostic
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/locales/en-US/lint.ftl4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/lint.ftl b/compiler/rustc_error_messages/locales/en-US/lint.ftl
index 7c6a17aec58..34ce4b9d967 100644
--- a/compiler/rustc_error_messages/locales/en-US/lint.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/lint.ftl
@@ -354,3 +354,7 @@ lint-builtin-mutable-transmutes =
     transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
 
 lint-builtin-unstable-features = unstable feature
+
+lint-builtin-unreachable-pub = unreachable `pub` {$what}
+    .suggestion = consider restricting its visibility
+    .help = or consider exporting it for use by other crates