@@ -7,14 +7,14 @@ use rustc_span::Span;
7
7
8
8
#[ derive( Diagnostic ) ]
9
9
#[ diag( ty_utils_needs_drop_overflow) ]
10
- pub struct NeedsDropOverflow < ' tcx > {
10
+ pub ( crate ) struct NeedsDropOverflow < ' tcx > {
11
11
pub query_ty : Ty < ' tcx > ,
12
12
}
13
13
14
14
#[ derive( Diagnostic ) ]
15
15
#[ diag( ty_utils_generic_constant_too_complex) ]
16
16
#[ help]
17
- pub struct GenericConstantTooComplex {
17
+ pub ( crate ) struct GenericConstantTooComplex {
18
18
#[ primary_span]
19
19
pub span : Span ,
20
20
#[ note( ty_utils_maybe_supported) ]
@@ -24,7 +24,7 @@ pub struct GenericConstantTooComplex {
24
24
}
25
25
26
26
#[ derive( Subdiagnostic ) ]
27
- pub enum GenericConstantTooComplexSub {
27
+ pub ( crate ) enum GenericConstantTooComplexSub {
28
28
#[ label( ty_utils_borrow_not_supported) ]
29
29
BorrowNotSupported ( #[ primary_span] Span ) ,
30
30
#[ label( ty_utils_address_and_deref_not_supported) ]
@@ -71,40 +71,40 @@ pub enum GenericConstantTooComplexSub {
71
71
72
72
#[ derive( Diagnostic ) ]
73
73
#[ diag( ty_utils_unexpected_fnptr_associated_item) ]
74
- pub struct UnexpectedFnPtrAssociatedItem {
74
+ pub ( crate ) struct UnexpectedFnPtrAssociatedItem {
75
75
#[ primary_span]
76
76
pub span : Span ,
77
77
}
78
78
79
79
#[ derive( Diagnostic ) ]
80
80
#[ diag( ty_utils_zero_length_simd_type) ]
81
- pub struct ZeroLengthSimdType < ' tcx > {
81
+ pub ( crate ) struct ZeroLengthSimdType < ' tcx > {
82
82
pub ty : Ty < ' tcx > ,
83
83
}
84
84
85
85
#[ derive( Diagnostic ) ]
86
86
#[ diag( ty_utils_multiple_array_fields_simd_type) ]
87
- pub struct MultipleArrayFieldsSimdType < ' tcx > {
87
+ pub ( crate ) struct MultipleArrayFieldsSimdType < ' tcx > {
88
88
pub ty : Ty < ' tcx > ,
89
89
}
90
90
91
91
#[ derive( Diagnostic ) ]
92
92
#[ diag( ty_utils_oversized_simd_type) ]
93
- pub struct OversizedSimdType < ' tcx > {
93
+ pub ( crate ) struct OversizedSimdType < ' tcx > {
94
94
pub ty : Ty < ' tcx > ,
95
95
pub max_lanes : u64 ,
96
96
}
97
97
98
98
#[ derive( Diagnostic ) ]
99
99
#[ diag( ty_utils_non_primitive_simd_type) ]
100
- pub struct NonPrimitiveSimdType < ' tcx > {
100
+ pub ( crate ) struct NonPrimitiveSimdType < ' tcx > {
101
101
pub ty : Ty < ' tcx > ,
102
102
pub e_ty : Ty < ' tcx > ,
103
103
}
104
104
105
105
#[ derive( Diagnostic ) ]
106
106
#[ diag( ty_utils_impl_trait_duplicate_arg) ]
107
- pub struct DuplicateArg < ' tcx > {
107
+ pub ( crate ) struct DuplicateArg < ' tcx > {
108
108
pub arg : GenericArg < ' tcx > ,
109
109
#[ primary_span]
110
110
#[ label]
@@ -115,7 +115,7 @@ pub struct DuplicateArg<'tcx> {
115
115
116
116
#[ derive( Diagnostic ) ]
117
117
#[ diag( ty_utils_impl_trait_not_param, code = E0792 ) ]
118
- pub struct NotParam < ' tcx > {
118
+ pub ( crate ) struct NotParam < ' tcx > {
119
119
pub arg : GenericArg < ' tcx > ,
120
120
#[ primary_span]
121
121
#[ label]
0 commit comments