Skip to content

Commit 8e068c7

Browse files
committed
---
yaml --- r: 273853 b: refs/heads/beta c: 33cc0ed h: refs/heads/master i: 273851: b6de95b
1 parent cf0be5b commit 8e068c7

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 89fcc00581fcde08924b8a13a43bb2387b67243e
26+
refs/heads/beta: 33cc0ed1f0c7aab766f2572481cea5a0401b8b8e
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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)