From 2a767eec0cae5aedb197d8fb823df67d93257fbd Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sat, 7 Sep 2019 11:26:32 -0400 Subject: Remove unused methods from Handler --- src/librustc_errors/lib.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/librustc_errors') 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 @@ impl Handler { 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 @@ impl Handler { 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); -- cgit 1.4.1-3-g733a5