Update to syn/quote/proc-macro2 new apis

This commit is contained in:
Alex Crichton
2018-03-28 15:49:51 -07:00
parent b77cfb635d
commit b1c1d964e1
8 changed files with 31 additions and 25 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ pub fn with_self_bound(
}
pub fn with_lifetime_bound(generics: &syn::Generics, lifetime: &str) -> syn::Generics {
let bound = syn::Lifetime::new(Term::intern(lifetime), Span::call_site());
let bound = syn::Lifetime::new(Term::new(lifetime, Span::call_site()));
let def = syn::LifetimeDef {
attrs: Vec::new(),
lifetime: bound,