Add a void ptr cast for extern type aliases containing Rust-native types

This commit is contained in:
David Tolnay 2021-03-26 18:13:32 -04:00
parent 3d656f87aa
commit 6edd2d2a59
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -19,7 +19,7 @@ impl<'a> Types<'a> {
} else if let Some(strct) = self.structs.get(ident) {
Depends(&strct.name.rust) // iterate to fixed-point
} else {
Definite(self.rust.contains(ident))
Definite(self.rust.contains(ident) || self.aliases.contains_key(ident))
}
}
Type::RustBox(_)