@@ -10,7 +10,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor};
1010use rustc_attr:: { self as attr, Deprecation , HasAttrs , Stability } ;
1111use rustc_data_structures:: fx:: FxHashMap ;
1212use rustc_data_structures:: sync:: { self , Lrc } ;
13- use rustc_errors:: { DiagnosticBuilder , DiagnosticId , ErrorReported } ;
13+ use rustc_errors:: { DiagnosticBuilder , ErrorReported } ;
1414use rustc_parse:: { self , parser, MACRO_ARGUMENTS } ;
1515use rustc_session:: parse:: ParseSess ;
1616use rustc_span:: edition:: Edition ;
@@ -1026,9 +1026,6 @@ impl<'a> ExtCtxt<'a> {
10261026 pub fn span_err < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
10271027 self . parse_sess . span_diagnostic . span_err ( sp, msg) ;
10281028 }
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- }
10321029 pub fn span_warn < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
10331030 self . parse_sess . span_diagnostic . span_warn ( sp, msg) ;
10341031 }
0 commit comments