mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 02:28:00 +00:00
Prefer call site spans
This commit is contained in:
@@ -41,6 +41,14 @@ 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]
|
||||
|
||||
Reference in New Issue
Block a user