File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 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 =
88privacy_in_public_interface = { $vis_descr } { $kind } `{ $descr } ` in public interface
99 .label = can't leak { $vis_descr } { $kind }
1010 .visibility_label = `{ $descr } ` declared as { $vis_descr }
11+ .help = - Either remove the `pub` from the function
12+ - Or add `pub` to `{ $descr } `
1113
1214privacy_item_is_private = { $kind } `{ $descr } ` is private
1315 .label = private { $kind }
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ pub struct InPublicInterfaceTraits<'a> {
6363
6464// Duplicate of `InPublicInterfaceTraits` but with a different error code, shares the same slug.
6565#[ derive( Diagnostic ) ]
66+ #[ help]
6667#[ diag( privacy_in_public_interface, code = "E0446" ) ]
6768pub struct InPublicInterface < ' a > {
6869 #[ primary_span]
You can’t perform that action at this time.
0 commit comments