1
1
use rustc_errors:: { IntoDiagnosticArg , MultiSpan } ;
2
- use rustc_macros:: { Diagnostic , LintDiagnostic , SessionSubdiagnostic } ;
2
+ use rustc_macros:: { Diagnostic , LintDiagnostic , Subdiagnostic } ;
3
3
use rustc_middle:: ty:: Ty ;
4
4
use rustc_span:: Span ;
5
5
@@ -23,7 +23,7 @@ pub(crate) struct HigherRankedLifetimeError {
23
23
pub span : Span ,
24
24
}
25
25
26
- #[ derive( SessionSubdiagnostic ) ]
26
+ #[ derive( Subdiagnostic ) ]
27
27
pub ( crate ) enum HigherRankedErrorCause {
28
28
#[ note( borrowck:: could_not_prove) ]
29
29
CouldNotProve { predicate : String } ,
@@ -72,7 +72,7 @@ pub(crate) struct FnMutError {
72
72
pub ty_err : FnMutReturnTypeErr ,
73
73
}
74
74
75
- #[ derive( SessionSubdiagnostic ) ]
75
+ #[ derive( Subdiagnostic ) ]
76
76
pub ( crate ) enum VarHereDenote {
77
77
#[ label( borrowck:: var_here_captured) ]
78
78
Captured {
@@ -91,7 +91,7 @@ pub(crate) enum VarHereDenote {
91
91
} ,
92
92
}
93
93
94
- #[ derive( SessionSubdiagnostic ) ]
94
+ #[ derive( Subdiagnostic ) ]
95
95
pub ( crate ) enum FnMutReturnTypeErr {
96
96
#[ label( borrowck:: returned_closure_escaped) ]
97
97
ReturnClosure {
@@ -117,7 +117,7 @@ pub(crate) struct LifetimeOutliveErr {
117
117
pub span : Span ,
118
118
}
119
119
120
- #[ derive( SessionSubdiagnostic ) ]
120
+ #[ derive( Subdiagnostic ) ]
121
121
pub ( crate ) enum LifetimeReturnCategoryErr < ' a > {
122
122
#[ label( borrowck:: returned_lifetime_wrong) ]
123
123
WrongReturn {
@@ -149,7 +149,7 @@ impl IntoDiagnosticArg for RegionName {
149
149
}
150
150
}
151
151
152
- #[ derive( SessionSubdiagnostic ) ]
152
+ #[ derive( Subdiagnostic ) ]
153
153
pub ( crate ) enum RequireStaticErr {
154
154
#[ note( borrowck:: used_impl_require_static) ]
155
155
UsedImpl {
0 commit comments