mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Improve unimpl! docs
This commit is contained in:
parent
23a9dcd947
commit
e77f1185a1
@ -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…
Reference in New Issue
Block a user