Skip to content

Commit bc72f54

Browse files
Add span_err_with_code method for BorrowckCtxt struct
1 parent 37cfa75 commit bc72f54

File tree

1 file changed

+4
-0
lines changed
  • src/librustc_borrowck/borrowck

1 file changed

+4
-0
lines changed

src/librustc_borrowck/borrowck/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,10 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
803803
self.tcx.sess.span_err(s, m);
804804
}
805805

806+
pub fn span_err_with_code(&self, s: Span, msg: &str, code: &str) {
807+
self.tcx.sess.span_err_with_code(s, msg, code);
808+
}
809+
806810
pub fn span_bug(&self, s: Span, m: &str) {
807811
self.tcx.sess.span_bug(s, m);
808812
}

0 commit comments

Comments
 (0)