@@ -8,7 +8,7 @@ use crate::fluent_generated as fluent;
88
99#[ derive( Diagnostic ) ]
1010#[ diag( lint_overruled_attribute, code = E0453 ) ]
11- pub struct OverruledAttribute < ' a > {
11+ pub ( crate ) struct OverruledAttribute < ' a > {
1212 #[ primary_span]
1313 pub span : Span ,
1414 #[ label]
@@ -19,7 +19,7 @@ pub struct OverruledAttribute<'a> {
1919 pub sub : OverruledAttributeSub ,
2020}
2121
22- pub enum OverruledAttributeSub {
22+ pub ( crate ) enum OverruledAttributeSub {
2323 DefaultSource { id : String } ,
2424 NodeSource { span : Span , reason : Option < Symbol > } ,
2525 CommandLineSource ,
@@ -52,15 +52,15 @@ impl Subdiagnostic for OverruledAttributeSub {
5252
5353#[ derive( Diagnostic ) ]
5454#[ diag( lint_malformed_attribute, code = E0452 ) ]
55- pub struct MalformedAttribute {
55+ pub ( crate ) struct MalformedAttribute {
5656 #[ primary_span]
5757 pub span : Span ,
5858 #[ subdiagnostic]
5959 pub sub : MalformedAttributeSub ,
6060}
6161
6262#[ derive( Subdiagnostic ) ]
63- pub enum MalformedAttributeSub {
63+ pub ( crate ) enum MalformedAttributeSub {
6464 #[ label( lint_bad_attribute_argument) ]
6565 BadAttributeArgument ( #[ primary_span] Span ) ,
6666 #[ label( lint_reason_must_be_string_literal) ]
@@ -71,7 +71,7 @@ pub enum MalformedAttributeSub {
7171
7272#[ derive( Diagnostic ) ]
7373#[ diag( lint_unknown_tool_in_scoped_lint, code = E0710 ) ]
74- pub struct UnknownToolInScopedLint {
74+ pub ( crate ) struct UnknownToolInScopedLint {
7575 #[ primary_span]
7676 pub span : Option < Span > ,
7777 pub tool_name : Symbol ,
@@ -82,7 +82,7 @@ pub struct UnknownToolInScopedLint {
8282
8383#[ derive( Diagnostic ) ]
8484#[ diag( lint_builtin_ellipsis_inclusive_range_patterns, code = E0783 ) ]
85- pub struct BuiltinEllipsisInclusiveRangePatterns {
85+ pub ( crate ) struct BuiltinEllipsisInclusiveRangePatterns {
8686 #[ primary_span]
8787 pub span : Span ,
8888 #[ suggestion( style = "short" , code = "{replace}" , applicability = "machine-applicable" ) ]
@@ -92,20 +92,20 @@ pub struct BuiltinEllipsisInclusiveRangePatterns {
9292
9393#[ derive( Subdiagnostic ) ]
9494#[ note( lint_requested_level) ]
95- pub struct RequestedLevel < ' a > {
95+ pub ( crate ) struct RequestedLevel < ' a > {
9696 pub level : Level ,
9797 pub lint_name : & ' a str ,
9898}
9999
100100#[ derive( Diagnostic ) ]
101101#[ diag( lint_unsupported_group, code = E0602 ) ]
102- pub struct UnsupportedGroup {
102+ pub ( crate ) struct UnsupportedGroup {
103103 pub lint_group : String ,
104104}
105105
106106#[ derive( Diagnostic ) ]
107107#[ diag( lint_check_name_unknown_tool, code = E0602 ) ]
108- pub struct CheckNameUnknownTool < ' a > {
108+ pub ( crate ) struct CheckNameUnknownTool < ' a > {
109109 pub tool_name : Symbol ,
110110 #[ subdiagnostic]
111111 pub sub : RequestedLevel < ' a > ,
0 commit comments