Quote's default has changed to call_site
This commit is contained in:
parent
f3f006f411
commit
5f8fa33756
@ -43,14 +43,6 @@ extern crate proc_macro2;
|
||||
use proc_macro::TokenStream;
|
||||
use syn::DeriveInput;
|
||||
|
||||
// Quote's default is def_site but it appears call_site is likely to stabilize
|
||||
// before def_site. Thus we try to use only call_site.
|
||||
macro_rules! quote {
|
||||
($($tt:tt)*) => {
|
||||
quote_spanned!($crate::proc_macro2::Span::call_site()=> $($tt)*)
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_use]
|
||||
mod bound;
|
||||
#[macro_use]
|
||||
|
Loading…
x
Reference in New Issue
Block a user