mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
when generating rust bindings for webidl typedef, the `<D>` generic Type would not be added for record<Key, DomInterface> because `containsDomInterface` does not take record into account. This change add the is_Record check in `containsDomInterface`, so `typedef record<Key, DomInterface>` can be successfully build. Testing: Manually tested with https://github.com/servo/servo/issues/42362, and building from scratch with `./mach build` is successful. Fixes: https://github.com/servo/servo/issues/42362 --------- Signed-off-by: rayguo17 <rayguo17@gmail.com>