We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62d7ed4 commit b2829e5Copy full SHA for b2829e5
compiler/rustc_privacy/messages.ftl
@@ -8,6 +8,8 @@ privacy_from_private_dep_in_public_interface =
8
privacy_in_public_interface = {$vis_descr} {$kind} `{$descr}` in public interface
9
.label = can't leak {$vis_descr} {$kind}
10
.visibility_label = `{$descr}` declared as {$vis_descr}
11
+ .help = - Either remove the `pub` from the function
12
+ - Or add `pub` to `{$descr}`
13
14
privacy_item_is_private = {$kind} `{$descr}` is private
15
.label = private {$kind}
compiler/rustc_privacy/src/errors.rs
@@ -48,6 +48,7 @@ pub struct UnnamedItemIsPrivate {
48
}
49
50
#[derive(Diagnostic)]
51
+#[help]
52
#[diag(privacy_in_public_interface, code = "E0446")]
53
pub struct InPublicInterface<'a> {
54
#[primary_span]
0 commit comments