]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_errors/lib.rs
Remove unused methods from Handler
[rust.git] / src / librustc_errors / lib.rs
index b74a6035032fada69549e97b990932b9317fc801..bd57cc41ef335340d2b14c4d193311c99d75db83 100644 (file)
@@ -612,9 +612,6 @@ pub fn span_note_diag(&self,
         db.set_span(sp);
         db
     }
-    pub fn span_unimpl<S: Into<MultiSpan>>(&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);