@@ -9,7 +9,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor};
99use rustc_attr:: { self as attr, Deprecation , HasAttrs , Stability } ;
1010use rustc_data_structures:: fx:: FxHashMap ;
1111use rustc_data_structures:: sync:: { self , Lrc } ;
12- use rustc_errors:: { DiagnosticBuilder , DiagnosticId , ErrorReported } ;
12+ use rustc_errors:: { DiagnosticBuilder , ErrorReported } ;
1313use rustc_parse:: { self , parser, DirectoryOwnership , MACRO_ARGUMENTS } ;
1414use rustc_session:: parse:: ParseSess ;
1515use rustc_span:: edition:: Edition ;
@@ -1019,9 +1019,6 @@ impl<'a> ExtCtxt<'a> {
10191019 pub fn span_err < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
10201020 self . parse_sess . span_diagnostic . span_err ( sp, msg) ;
10211021 }
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- }
10251022 pub fn span_warn < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
10261023 self . parse_sess . span_diagnostic . span_warn ( sp, msg) ;
10271024 }
0 commit comments