File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ privacy_from_private_dep_in_public_interface =
8
8
privacy_in_public_interface = { $vis_descr } { $kind } `{ $descr } ` in public interface
9
9
.label = can't leak { $vis_descr } { $kind }
10
10
.visibility_label = `{ $descr } ` declared as { $vis_descr }
11
+ .help = - Either remove the `pub` from the function
12
+ - Or add `pub` to `{ $descr } `
11
13
12
14
privacy_item_is_private = { $kind } `{ $descr } ` is private
13
15
.label = private { $kind }
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ pub struct InPublicInterfaceTraits<'a> {
63
63
64
64
// Duplicate of `InPublicInterfaceTraits` but with a different error code, shares the same slug.
65
65
#[ derive( Diagnostic ) ]
66
+ #[ help]
66
67
#[ diag( privacy_in_public_interface, code = "E0446" ) ]
67
68
pub struct InPublicInterface < ' a > {
68
69
#[ primary_span]
You can’t perform that action at this time.
0 commit comments