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