about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-30 13:38:34 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-30 16:47:56 +0100
commit0047e250909dd4739fcd20e77a49685f45490987 (patch)
tree0d8d558e4ad845bf20ed47600c417a8c0a7c5be2 /compiler/rustc_errors/src
parente5e5fcb0b758fcf7f149cc9206155dcfa18ec909 (diff)
downloadrust-0047e250909dd4739fcd20e77a49685f45490987.tar.gz
rust-0047e250909dd4739fcd20e77a49685f45490987.zip
Add some docs to `bug`, `span_bug` and `delay_span_bug`
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index b03352d5fec..9ed31d9419c 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -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,