Skip to content

Commit

Permalink
Merge pull request #781 from dtolnay/aliascast
Browse files Browse the repository at this point in the history
Add a void ptr cast for extern type aliases containing Rust-native types
  • Loading branch information
dtolnay committed Mar 26, 2021
2 parents 3d656f8 + 6edd2d2 commit f014a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/improper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_)
Expand Down

0 comments on commit f014a35

Please sign in to comment.