diff options
| author | Bryanskiy <ivakin.kir@gmail.com> | 2023-05-18 14:57:45 +0300 |
|---|---|---|
| committer | Bryanskiy <ivakin.kir@gmail.com> | 2023-06-12 01:02:19 +0300 |
| commit | 6d46382f6f0688df0fc5c67386f86ccd6fdb975f (patch) | |
| tree | da222fe6ab404e953e1683070bdd60a700b5991c /compiler/rustc_privacy/messages.ftl | |
| parent | d0ee1908ed791d3e91d2ad74ba502eaa203cff6d (diff) | |
| download | rust-6d46382f6f0688df0fc5c67386f86ccd6fdb975f.tar.gz rust-6d46382f6f0688df0fc5c67386f86ccd6fdb975f.zip | |
Private-in-public lints implementation
Diffstat (limited to 'compiler/rustc_privacy/messages.ftl')
| -rw-r--r-- | compiler/rustc_privacy/messages.ftl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_privacy/messages.ftl b/compiler/rustc_privacy/messages.ftl index b68e8a78aab..6f51981cf09 100644 --- a/compiler/rustc_privacy/messages.ftl +++ b/compiler/rustc_privacy/messages.ftl @@ -17,7 +17,14 @@ privacy_private_in_public_lint = *[other] E0446 }) +privacy_private_interface_or_bounds_lint = {$ty_kind} `{$ty_descr}` is more private than the item `{$item_descr}` + .item_note = {$item_kind} `{$item_descr}` is reachable at visibility `{$item_vis_descr}` + .ty_note = but {$ty_kind} `{$ty_descr}` is only usable at visibility `{$ty_vis_descr}` + privacy_report_effective_visibility = {$descr} +privacy_unnameable_types_lint = {$kind} `{$descr}` is reachable but cannot be named + .label = reachable at visibility `{$reachable_vis}`, but can only be named at visibility `{$reexported_vis}` + privacy_unnamed_item_is_private = {$kind} is private .label = private {$kind} |
