@@ -19,9 +19,10 @@ use crate::component::{
1919 CanonicalAbiInfo , ComponentTypesBuilder , FLAG_MAY_ENTER , FLAG_MAY_LEAVE , FixedEncoding as FE ,
2020 FlatType , InterfaceType , MAX_FLAT_ASYNC_PARAMS , MAX_FLAT_PARAMS , PREPARE_ASYNC_NO_RESULT ,
2121 PREPARE_ASYNC_WITH_RESULT , START_FLAG_ASYNC_CALLEE , StringEncoding , Transcode ,
22- TypeComponentLocalErrorContextTableIndex , TypeEnumIndex , TypeFlagsIndex , TypeFutureTableIndex ,
23- TypeListIndex , TypeOptionIndex , TypeRecordIndex , TypeResourceTableIndex , TypeResultIndex ,
24- TypeStreamTableIndex , TypeTupleIndex , TypeVariantIndex , VariantInfo ,
22+ TypeComponentLocalErrorContextTableIndex , TypeEnumIndex , TypeFixedSizeListIndex ,
23+ TypeFlagsIndex , TypeFutureTableIndex , TypeListIndex , TypeOptionIndex , TypeRecordIndex ,
24+ TypeResourceTableIndex , TypeResultIndex , TypeStreamTableIndex , TypeTupleIndex ,
25+ TypeVariantIndex , VariantInfo ,
2526} ;
2627use crate :: fact:: signature:: Signature ;
2728use crate :: fact:: transcode:: Transcoder ;
@@ -2859,10 +2860,14 @@ impl<'a, 'b> Compiler<'a, 'b> {
28592860 // TODO: subtyping
28602861 assert_eq ! ( src_ty. size, dst_ty. size) ;
28612862
2862- let srcs = src
2863- . record_field_srcs ( self . types , ( 0 ..src_ty. size ) . into_iter ( ) . map ( |_| src_ty. element ) ) ;
2864- let dsts = dst
2865- . record_field_dsts ( self . types , ( 0 ..dst_ty. size ) . into_iter ( ) . map ( |_| dst_ty. element ) ) ;
2863+ let srcs = src. record_field_srcs (
2864+ self . types ,
2865+ ( 0 ..src_ty. size ) . into_iter ( ) . map ( |_| src_ty. element ) ,
2866+ ) ;
2867+ let dsts = dst. record_field_dsts (
2868+ self . types ,
2869+ ( 0 ..dst_ty. size ) . into_iter ( ) . map ( |_| dst_ty. element ) ,
2870+ ) ;
28662871 for ( src, dst) in srcs. zip ( dsts) {
28672872 self . translate ( & src_ty. element , & src, & dst_ty. element , & dst) ;
28682873 }
0 commit comments