Enable support for extern Rust types containing lifetimes

This commit is contained in:
David Tolnay 2021-01-02 23:47:16 -08:00
parent 78c8ae037a
commit 58183e2228
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -335,13 +335,6 @@ fn check_api_type(cx: &mut Check, ety: &ExternType) {
cx.error(derive, msg);
}
if let Some(lifetime) = ety.generics.lifetimes.first() {
if ety.lang == Lang::Rust {
let msg = "extern Rust type with lifetimes is not supported yet";
cx.error(lifetime, msg);
}
}
if !ety.bounds.is_empty() {
let bounds = &ety.bounds;
let span = quote!(#(#bounds)*);