Prefer call site spans

This commit is contained in:
David Tolnay
2018-03-28 10:42:53 +02:00
parent 7c04c98e0e
commit d2b65e0a5d
5 changed files with 39 additions and 31 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::def_site());
let bound = syn::Lifetime::new(Term::intern(lifetime), Span::call_site());
let def = syn::LifetimeDef {
attrs: Vec::new(),
lifetime: bound,