Skip to content

Commit 35315ea

Browse files
committed
---
yaml --- r: 271939 b: refs/heads/master c: 33cc0ed h: refs/heads/master i: 271937: 9ff8e7f 271935: f613b1f
1 parent 38acbda commit 35315ea

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 89fcc00581fcde08924b8a13a43bb2387b67243e
2+
refs/heads/master: 33cc0ed1f0c7aab766f2572481cea5a0401b8b8e
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc/session/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -218,22 +218,10 @@ impl Session {
218218
None => self.warn(msg),
219219
}
220220
}
221-
pub fn opt_span_bug<S: Into<MultiSpan>>(&self, opt_sp: Option<S>, msg: &str) -> ! {
222-
match opt_sp {
223-
Some(sp) => self.span_bug(sp, msg),
224-
None => self.bug(msg),
225-
}
226-
}
227221
/// Delay a span_bug() call until abort_if_errors()
228222
pub fn delay_span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
229223
self.diagnostic().delay_span_bug(sp, msg)
230224
}
231-
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
232-
self.diagnostic().span_bug(sp, msg)
233-
}
234-
pub fn bug(&self, msg: &str) -> ! {
235-
self.diagnostic().bug(msg)
236-
}
237225
pub fn note_without_error(&self, msg: &str) {
238226
self.diagnostic().note_without_error(msg)
239227
}
@@ -281,11 +269,6 @@ impl Session {
281269
pub fn codemap<'a>(&'a self) -> &'a codemap::CodeMap {
282270
self.parse_sess.codemap()
283271
}
284-
// This exists to help with refactoring to eliminate impossible
285-
// cases later on
286-
pub fn impossible_case<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> ! {
287-
self.span_bug(sp, &format!("impossible case reached: {}", msg));
288-
}
289272
pub fn verbose(&self) -> bool { self.opts.debugging_opts.verbose }
290273
pub fn time_passes(&self) -> bool { self.opts.debugging_opts.time_passes }
291274
pub fn count_llvm_insns(&self) -> bool {

0 commit comments

Comments
 (0)