Update to quote 0.4
diff --git a/tests/test_generics.rs b/tests/test_generics.rs
index 18dd43f..93cb44f 100644
--- a/tests/test_generics.rs
+++ b/tests/test_generics.rs
@@ -32,14 +32,14 @@
params: punctuated![
GenericParam::Lifetime(LifetimeDef {
attrs: Default::default(),
- lifetime: Lifetime::new(Term::intern("'a"), Span::default()),
+ lifetime: Lifetime::new(Term::intern("'a"), Span::def_site()),
bounds: Default::default(),
colon_token: None,
}),
GenericParam::Lifetime(LifetimeDef {
attrs: Default::default(),
- lifetime: Lifetime::new(Term::intern("'b"), Span::default()),
- bounds: punctuated![Lifetime::new(Term::intern("'a"), Span::default())],
+ lifetime: Lifetime::new(Term::intern("'b"), Span::def_site()),
+ bounds: punctuated![Lifetime::new(Term::intern("'a"), Span::def_site())],
colon_token: Some(token::Colon::default()),
}),
GenericParam::Type(TypeParam {
@@ -55,7 +55,7 @@
],
ident: "T".into(),
bounds: punctuated![
- TypeParamBound::Lifetime(Lifetime::new(Term::intern("'a"), Span::default())),
+ TypeParamBound::Lifetime(Lifetime::new(Term::intern("'a"), Span::def_site())),
],
default: Some(
TypeTuple {
@@ -111,7 +111,7 @@
#[test]
fn test_ty_param_bound() {
let tokens = quote!('a);
- let expected = TypeParamBound::Lifetime(Lifetime::new(Term::intern("'a"), Span::default()));
+ let expected = TypeParamBound::Lifetime(Lifetime::new(Term::intern("'a"), Span::def_site()));
assert_eq!(
expected,
common::parse::syn::<TypeParamBound>(tokens.into())