@@ -19,9 +19,9 @@ 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 , StringEncoding , Transcode , TypeComponentLocalErrorContextTableIndex ,
22- TypeEnumIndex , TypeFlagsIndex , TypeFutureTableIndex , TypeListIndex , TypeOptionIndex ,
23- TypeRecordIndex , TypeResourceTableIndex , TypeResultIndex , TypeStreamTableIndex , TypeTupleIndex ,
24- TypeVariantIndex , VariantInfo ,
22+ TypeEnumIndex , TypeFixedSizeListIndex , TypeFlagsIndex , TypeFutureTableIndex , TypeListIndex ,
23+ TypeOptionIndex , TypeRecordIndex , TypeResourceTableIndex , TypeResultIndex ,
24+ TypeStreamTableIndex , TypeTupleIndex , TypeVariantIndex , VariantInfo ,
2525} ;
2626use crate :: fact:: signature:: Signature ;
2727use crate :: fact:: transcode:: Transcoder ;
@@ -2850,10 +2850,14 @@ impl<'a, 'b> Compiler<'a, 'b> {
28502850 // TODO: subtyping
28512851 assert_eq ! ( src_ty. size, dst_ty. size) ;
28522852
2853- let srcs = src
2854- . record_field_srcs ( self . types , ( 0 ..src_ty. size ) . into_iter ( ) . map ( |_| src_ty. element ) ) ;
2855- let dsts = dst
2856- . record_field_dsts ( self . types , ( 0 ..dst_ty. size ) . into_iter ( ) . map ( |_| dst_ty. element ) ) ;
2853+ let srcs = src. record_field_srcs (
2854+ self . types ,
2855+ ( 0 ..src_ty. size ) . into_iter ( ) . map ( |_| src_ty. element ) ,
2856+ ) ;
2857+ let dsts = dst. record_field_dsts (
2858+ self . types ,
2859+ ( 0 ..dst_ty. size ) . into_iter ( ) . map ( |_| dst_ty. element ) ,
2860+ ) ;
28572861 for ( src, dst) in srcs. zip ( dsts) {
28582862 self . translate ( & src_ty. element , & src, & dst_ty. element , & dst) ;
28592863 }
0 commit comments