@@ -8,7 +8,7 @@ use crate::fluent_generated as fluent;
88
99#[ derive( Diagnostic ) ]
1010#[ diag( monomorphize_recursion_limit) ]
11- pub struct RecursionLimit {
11+ pub ( crate ) struct RecursionLimit {
1212 #[ primary_span]
1313 pub span : Span ,
1414 pub shrunk : String ,
@@ -22,13 +22,13 @@ pub struct RecursionLimit {
2222
2323#[ derive( Diagnostic ) ]
2424#[ diag( monomorphize_no_optimized_mir) ]
25- pub struct NoOptimizedMir {
25+ pub ( crate ) struct NoOptimizedMir {
2626 #[ note]
2727 pub span : Span ,
2828 pub crate_name : Symbol ,
2929}
3030
31- pub struct UnusedGenericParamsHint {
31+ pub ( crate ) struct UnusedGenericParamsHint {
3232 pub span : Span ,
3333 pub param_spans : Vec < Span > ,
3434 pub param_names : Vec < String > ,
@@ -53,7 +53,7 @@ impl<G: EmissionGuarantee> Diagnostic<'_, G> for UnusedGenericParamsHint {
5353#[ derive( LintDiagnostic ) ]
5454#[ diag( monomorphize_large_assignments) ]
5555#[ note]
56- pub struct LargeAssignmentsLint {
56+ pub ( crate ) struct LargeAssignmentsLint {
5757 #[ label]
5858 pub span : Span ,
5959 pub size : u64 ,
@@ -62,21 +62,21 @@ pub struct LargeAssignmentsLint {
6262
6363#[ derive( Diagnostic ) ]
6464#[ diag( monomorphize_symbol_already_defined) ]
65- pub struct SymbolAlreadyDefined {
65+ pub ( crate ) struct SymbolAlreadyDefined {
6666 #[ primary_span]
6767 pub span : Option < Span > ,
6868 pub symbol : String ,
6969}
7070
7171#[ derive( Diagnostic ) ]
7272#[ diag( monomorphize_couldnt_dump_mono_stats) ]
73- pub struct CouldntDumpMonoStats {
73+ pub ( crate ) struct CouldntDumpMonoStats {
7474 pub error : String ,
7575}
7676
7777#[ derive( Diagnostic ) ]
7878#[ diag( monomorphize_encountered_error_while_instantiating) ]
79- pub struct EncounteredErrorWhileInstantiating {
79+ pub ( crate ) struct EncounteredErrorWhileInstantiating {
8080 #[ primary_span]
8181 pub span : Span ,
8282 pub formatted_item : String ,
@@ -85,10 +85,10 @@ pub struct EncounteredErrorWhileInstantiating {
8585#[ derive( Diagnostic ) ]
8686#[ diag( monomorphize_start_not_found) ]
8787#[ help]
88- pub struct StartNotFound ;
88+ pub ( crate ) struct StartNotFound ;
8989
9090#[ derive( Diagnostic ) ]
9191#[ diag( monomorphize_unknown_cgu_collection_mode) ]
92- pub struct UnknownCguCollectionMode < ' a > {
92+ pub ( crate ) struct UnknownCguCollectionMode < ' a > {
9393 pub mode : & ' a str ,
9494}
0 commit comments