mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-19 16:51:03 +00:00
Quote's default has changed to call_site
This commit is contained in:
@@ -43,14 +43,6 @@ extern crate proc_macro2;
|
|||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use syn::DeriveInput;
|
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]
|
#[macro_use]
|
||||||
mod bound;
|
mod bound;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
Reference in New Issue
Block a user