Refactor Attribute
to use Path
and TokenStream
instead of MetaItem
.
This commit is contained in:
parent
460bf55f8a
commit
68c1cc68b4
41 changed files with 623 additions and 371 deletions
|
@ -65,6 +65,16 @@ macro_rules! panictry {
|
|||
})
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! unwrap_or {
|
||||
($opt:expr, $default:expr) => {
|
||||
match $opt {
|
||||
Some(x) => x,
|
||||
None => $default,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_use]
|
||||
pub mod diagnostics {
|
||||
#[macro_use]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue