Skip to content

Commit e77f118

Browse files
committed
Improve unimpl! docs
1 parent 23a9dcd commit e77f118

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unimpl.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ thread_local! {
1414
}
1515

1616
// Just public, because of the unimpl macro
17+
#[doc(hidden)]
1718
pub struct NonFatal(pub String);
1819

20+
/// Use when something in the current function is unimplemented.
21+
///
22+
/// This will emit an error and continue codegen at a different function.
1923
pub macro unimpl($($tt:tt)*) {
2024
panic!(NonFatal(format!($($tt)*)));
2125
}

0 commit comments

Comments
 (0)