From 2a767eec0cae5aedb197d8fb823df67d93257fbd Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sat, 7 Sep 2019 11:26:32 -0400 Subject: [PATCH] Remove unused methods from Handler --- src/librustc/session/mod.rs | 6 ------ src/librustc_errors/lib.rs | 6 ------ src/libsyntax/ext/base.rs | 3 --- 3 files changed, 15 deletions(-) diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index afaea540060..a24fed8f21c 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -365,12 +365,6 @@ pub fn note_without_error(&self, msg: &str) { pub fn span_note_without_error>(&self, sp: S, msg: &str) { self.diagnostic().span_note_without_error(sp, msg) } - pub fn span_unimpl>(&self, sp: S, msg: &str) -> ! { - self.diagnostic().span_unimpl(sp, msg) - } - pub fn unimpl(&self, msg: &str) -> ! { - self.diagnostic().unimpl(msg) - } pub fn buffer_lint>( &self, diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index b74a6035032..bd57cc41ef3 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -612,9 +612,6 @@ pub fn span_note_diag(&self, db.set_span(sp); db } - pub fn span_unimpl>(&self, sp: S, msg: &str) -> ! { - self.span_bug(sp, &format!("unimplemented {}", msg)); - } pub fn failure(&self, msg: &str) { DiagnosticBuilder::new(self, FailureNote, msg).emit() } @@ -648,9 +645,6 @@ pub fn bug(&self, msg: &str) -> ! { db.emit(); panic!(ExplicitBug); } - pub fn unimpl(&self, msg: &str) -> ! { - self.bug(&format!("unimplemented {}", msg)); - } fn bump_err_count(&self) { self.err_count.fetch_add(1, SeqCst); diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 384c0555c85..a6be5b10178 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -1048,9 +1048,6 @@ pub fn mut_span_err>(&self, sp: S, msg: &str) pub fn span_warn>(&self, sp: S, msg: &str) { self.parse_sess.span_diagnostic.span_warn(sp, msg); } - pub fn span_unimpl>(&self, sp: S, msg: &str) -> ! { - self.parse_sess.span_diagnostic.span_unimpl(sp, msg); - } pub fn span_bug>(&self, sp: S, msg: &str) -> ! { self.parse_sess.span_diagnostic.span_bug(sp, msg); } -- 2.44.0