diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-17 13:06:01 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-24 06:28:56 +0100 |
| commit | 2868045a28f959e612185022688c4469e0b752cd (patch) | |
| tree | 8dfb7aa0c320cf741e7df4d107faed358a493e85 | |
| parent | 1bfa2483d587cbb41fb335e18459127394242ec1 (diff) | |
| download | rust-2868045a28f959e612185022688c4469e0b752cd.tar.gz rust-2868045a28f959e612185022688c4469e0b752cd.zip | |
expand: nix unused method
| -rw-r--r-- | src/librustc_expand/base.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_expand/base.rs b/src/librustc_expand/base.rs index 518a214b4a5..59c1a5468f1 100644 --- a/src/librustc_expand/base.rs +++ b/src/librustc_expand/base.rs @@ -10,7 +10,7 @@ use rustc_ast::visit::{AssocCtxt, Visitor}; use rustc_attr::{self as attr, Deprecation, HasAttrs, Stability}; use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::sync::{self, Lrc}; -use rustc_errors::{DiagnosticBuilder, DiagnosticId, ErrorReported}; +use rustc_errors::{DiagnosticBuilder, ErrorReported}; use rustc_parse::{self, parser, MACRO_ARGUMENTS}; use rustc_session::parse::ParseSess; use rustc_span::edition::Edition; @@ -1026,9 +1026,6 @@ impl<'a> ExtCtxt<'a> { pub fn span_err<S: Into<MultiSpan>>(&self, sp: S, msg: &str) { self.parse_sess.span_diagnostic.span_err(sp, msg); } - pub fn span_err_with_code<S: Into<MultiSpan>>(&self, sp: S, msg: &str, code: DiagnosticId) { - self.parse_sess.span_diagnostic.span_err_with_code(sp, msg, code); - } pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: &str) { self.parse_sess.span_diagnostic.span_warn(sp, msg); } |
