Add span_err_with_code method for BorrowckCtxt struct

This commit is contained in:
Guillaume Gomez 2015-09-17 23:31:37 +02:00
parent 37cfa75d43
commit bc72f540ac

View file

@ -803,6 +803,10 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
self.tcx.sess.span_err(s, m);
}
pub fn span_err_with_code(&self, s: Span, msg: &str, code: &str) {
self.tcx.sess.span_err_with_code(s, msg, code);
}
pub fn span_bug(&self, s: Span, m: &str) {
self.tcx.sess.span_bug(s, m);
}