@@ -10,7 +10,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor};
10
10
use rustc_attr:: { self as attr, Deprecation , HasAttrs , Stability } ;
11
11
use rustc_data_structures:: fx:: FxHashMap ;
12
12
use rustc_data_structures:: sync:: { self , Lrc } ;
13
- use rustc_errors:: { DiagnosticBuilder , DiagnosticId , ErrorReported } ;
13
+ use rustc_errors:: { DiagnosticBuilder , ErrorReported } ;
14
14
use rustc_parse:: { self , parser, MACRO_ARGUMENTS } ;
15
15
use rustc_session:: parse:: ParseSess ;
16
16
use rustc_span:: edition:: Edition ;
@@ -1026,9 +1026,6 @@ impl<'a> ExtCtxt<'a> {
1026
1026
pub fn span_err < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
1027
1027
self . parse_sess . span_diagnostic . span_err ( sp, msg) ;
1028
1028
}
1029
- pub fn span_err_with_code < S : Into < MultiSpan > > ( & self , sp : S , msg : & str , code : DiagnosticId ) {
1030
- self . parse_sess . span_diagnostic . span_err_with_code ( sp, msg, code) ;
1031
- }
1032
1029
pub fn span_warn < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
1033
1030
self . parse_sess . span_diagnostic . span_warn ( sp, msg) ;
1034
1031
}
0 commit comments