]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused methods from Handler
authorMark Rousskov <mark.simulacrum@gmail.com>
Sat, 7 Sep 2019 15:26:32 +0000 (11:26 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Tue, 17 Sep 2019 13:30:45 +0000 (09:30 -0400)
src/librustc/session/mod.rs
src/librustc_errors/lib.rs
src/libsyntax/ext/base.rs

index afaea54006018f8ce4e9453125d226e65dbb623a..a24fed8f21c5a1edcb2d25eb911d02f54be20ac2 100644 (file)
@@ -365,12 +365,6 @@ pub fn note_without_error(&self, msg: &str) {
     pub fn span_note_without_error<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
         self.diagnostic().span_note_without_error(sp, msg)
     }
-    pub fn span_unimpl<S: Into<MultiSpan>>(&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<S: Into<MultiSpan>>(
         &self,
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);
index 384c0555c85bd683ed43353f2dfdcacc1003f857..a6be5b101788e36b2e343213083478793e0b71e2 100644 (file)
@@ -1048,9 +1048,6 @@ pub fn mut_span_err<S: Into<MultiSpan>>(&self, sp: S, msg: &str)
     pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
         self.parse_sess.span_diagnostic.span_warn(sp, msg);
     }
-    pub fn span_unimpl<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
-        self.parse_sess.span_diagnostic.span_unimpl(sp, msg);
-    }
     pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
         self.parse_sess.span_diagnostic.span_bug(sp, msg);
     }