File tree 1 file changed +5
-0
lines changed
compiler/rustc_expand/src
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1110,6 +1110,7 @@ impl<'a> ExtCtxt<'a> {
1110
1110
}
1111
1111
1112
1112
#[ rustc_lint_diagnostics]
1113
+ #[ track_caller]
1113
1114
pub fn struct_span_err < S : Into < MultiSpan > > (
1114
1115
& self ,
1115
1116
sp : S ,
@@ -1118,13 +1119,15 @@ impl<'a> ExtCtxt<'a> {
1118
1119
self . sess . parse_sess . span_diagnostic . struct_span_err ( sp, msg)
1119
1120
}
1120
1121
1122
+ #[ track_caller]
1121
1123
pub fn create_err (
1122
1124
& self ,
1123
1125
err : impl IntoDiagnostic < ' a > ,
1124
1126
) -> DiagnosticBuilder < ' a , ErrorGuaranteed > {
1125
1127
self . sess . create_err ( err)
1126
1128
}
1127
1129
1130
+ #[ track_caller]
1128
1131
pub fn emit_err ( & self , err : impl IntoDiagnostic < ' a > ) -> ErrorGuaranteed {
1129
1132
self . sess . emit_err ( err)
1130
1133
}
@@ -1135,10 +1138,12 @@ impl<'a> ExtCtxt<'a> {
1135
1138
/// Compilation will be stopped in the near future (at the end of
1136
1139
/// the macro expansion phase).
1137
1140
#[ rustc_lint_diagnostics]
1141
+ #[ track_caller]
1138
1142
pub fn span_err < S : Into < MultiSpan > > ( & self , sp : S , msg : impl Into < DiagnosticMessage > ) {
1139
1143
self . sess . parse_sess . span_diagnostic . span_err ( sp, msg) ;
1140
1144
}
1141
1145
#[ rustc_lint_diagnostics]
1146
+ #[ track_caller]
1142
1147
pub fn span_warn < S : Into < MultiSpan > > ( & self , sp : S , msg : impl Into < DiagnosticMessage > ) {
1143
1148
self . sess . parse_sess . span_diagnostic . span_warn ( sp, msg) ;
1144
1149
}
You can’t perform that action at this time.
0 commit comments