about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBenjamin Herr <ben@0x539.de>2016-03-29 02:24:15 +0200
committerBenjamin Herr <ben@0x539.de>2016-03-31 22:06:52 +0200
commit33cc0ed1f0c7aab766f2572481cea5a0401b8b8e (patch)
tree99455d3e9fe2641c477183580fade41237596dab
parent89fcc00581fcde08924b8a13a43bb2387b67243e (diff)
downloadrust-33cc0ed1f0c7aab766f2572481cea5a0401b8b8e.tar.gz
rust-33cc0ed1f0c7aab766f2572481cea5a0401b8b8e.zip
librustc: excise Session's now-unused bug methods
-rw-r--r--src/librustc/session/mod.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
index 31030ac96a7..d3005ff2ded 100644
--- a/src/librustc/session/mod.rs
+++ b/src/librustc/session/mod.rs
@@ -218,22 +218,10 @@ impl Session {
             None => self.warn(msg),
         }
     }
-    pub fn opt_span_bug<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, msg: &str) -> ! {
-        match opt_sp {
-            Some(sp) => self.span_bug(sp, msg),
-            None => self.bug(msg),
-        }
-    }
     /// Delay a span_bug() call until abort_if_errors()
     pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
         self.diagnostic().delay_span_bug(sp, msg)
     }
-    pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
-        self.diagnostic().span_bug(sp, msg)
-    }
-    pub fn bug(&self, msg: &str) -> ! {
-        self.diagnostic().bug(msg)
-    }
     pub fn note_without_error(&self, msg: &str) {
         self.diagnostic().note_without_error(msg)
     }
@@ -281,11 +269,6 @@ impl Session {
     pub fn codemap<'a>(&'a self) -> &'a codemap::CodeMap {
         self.parse_sess.codemap()
     }
-    // This exists to help with refactoring to eliminate impossible
-    // cases later on
-    pub fn impossible_case<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
-        self.span_bug(sp, &format!("impossible case reached: {}", msg));
-    }
     pub fn verbose(&self) -> bool { self.opts.debugging_opts.verbose }
     pub fn time_passes(&self) -> bool { self.opts.debugging_opts.time_passes }
     pub fn count_llvm_insns(&self) -> bool {