Quote's default has changed to call_site

This commit is contained in:
David Tolnay 2018-04-21 11:28:44 -07:00
parent f3f006f411
commit 5f8fa33756
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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]