Add some docs to bug
, span_bug
and delay_span_bug
This commit is contained in:
parent
e5e5fcb0b7
commit
0047e25090
4 changed files with 34 additions and 3 deletions
|
@ -973,6 +973,7 @@ impl Handler {
|
|||
self.inner.borrow_mut().span_bug(span, msg)
|
||||
}
|
||||
|
||||
/// For documentation on this, see `Session::delay_span_bug`.
|
||||
#[track_caller]
|
||||
pub fn delay_span_bug(
|
||||
&self,
|
||||
|
@ -1518,6 +1519,7 @@ impl HandlerInner {
|
|||
self.emit_diagnostic(diag.set_span(sp));
|
||||
}
|
||||
|
||||
/// For documentation on this, see `Session::delay_span_bug`.
|
||||
#[track_caller]
|
||||
fn delay_span_bug(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue