Rollup merge of #106287 - Nilstrieb:its-bugging-me-how-we-dont-have-docs, r=jyn514
Add some docs to `bug`, `span_bug` and `delay_span_bug` cc `@mejrs` as you wanted me to do this, does this look good and understandable?
This commit is contained in:
commit
7568c49bf0
4 changed files with 34 additions and 3 deletions
|
@ -978,6 +978,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,
|
||||
|
@ -1529,6 +1530,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