1
Fork 0

lint: port unreachable pub diagnostic

Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
David Wood 2022-06-28 13:55:12 +01:00
parent 23ee3e0914
commit dbced105db
2 changed files with 8 additions and 3 deletions

View file

@ -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