Skip to content

Commit de6e144

Browse files
committed
expand: nix unused method
1 parent ad5304a commit de6e144

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_expand/base.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor};
99
use rustc_attr::{self as attr, Deprecation, HasAttrs, Stability};
1010
use rustc_data_structures::fx::FxHashMap;
1111
use rustc_data_structures::sync::{self, Lrc};
12-
use rustc_errors::{DiagnosticBuilder, DiagnosticId, ErrorReported};
12+
use rustc_errors::{DiagnosticBuilder, ErrorReported};
1313
use rustc_parse::{self, parser, DirectoryOwnership, MACRO_ARGUMENTS};
1414
use rustc_session::parse::ParseSess;
1515
use 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

Comments
 (0)