Improve unimpl! docs
This commit is contained in:
parent
23a9dcd947
commit
e77f1185a1
1 changed files with 4 additions and 0 deletions
|
@ -14,8 +14,12 @@ thread_local! {
|
|||
}
|
||||
|
||||
// Just public, because of the unimpl macro
|
||||
#[doc(hidden)]
|
||||
pub struct NonFatal(pub String);
|
||||
|
||||
/// Use when something in the current function is unimplemented.
|
||||
///
|
||||
/// This will emit an error and continue codegen at a different function.
|
||||
pub macro unimpl($($tt:tt)*) {
|
||||
panic!(NonFatal(format!($($tt)*)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue