@@ -218,22 +218,10 @@ impl Session {
218
218
None => self . warn ( msg) ,
219
219
}
220
220
}
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
- }
227
221
/// Delay a span_bug() call until abort_if_errors()
228
222
pub fn delay_span_bug < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
229
223
self . diagnostic ( ) . delay_span_bug ( sp, msg)
230
224
}
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
- }
237
225
pub fn note_without_error ( & self , msg : & str ) {
238
226
self . diagnostic ( ) . note_without_error ( msg)
239
227
}
@@ -281,11 +269,6 @@ impl Session {
281
269
pub fn codemap < ' a > ( & ' a self ) -> & ' a codemap:: CodeMap {
282
270
self . parse_sess . codemap ( )
283
271
}
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
- }
289
272
pub fn verbose ( & self ) -> bool { self . opts . debugging_opts . verbose }
290
273
pub fn time_passes ( & self ) -> bool { self . opts . debugging_opts . time_passes }
291
274
pub fn count_llvm_insns ( & self ) -> bool {
0 commit comments