Store additional token information with extern type lifetimes
diff --git a/syntax/check.rs b/syntax/check.rs
index 29013cb..fcd5f9a 100644
--- a/syntax/check.rs
+++ b/syntax/check.rs
@@ -337,7 +337,7 @@
cx.error(derive, msg);
}
- if let Some(lifetime) = ety.lifetimes.first() {
+ if let Some(lifetime) = ety.generics.lifetimes.first() {
cx.error(lifetime, "extern type with lifetimes is not supported yet");
}
@@ -445,7 +445,7 @@
cx.error(derive, msg);
}
- if let Some(lifetime) = alias.lifetimes.first() {
+ if let Some(lifetime) = alias.generics.lifetimes.first() {
cx.error(lifetime, "extern type with lifetimes is not supported yet");
}
}