mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-23 20:09:55 +00:00
Enable support for extern Rust types containing lifetimes
This commit is contained in:
parent
78c8ae037a
commit
58183e2228
@ -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)*);
|
||||
|
Loading…
Reference in New Issue
Block a user