|
16 | 16 | //! can be somewhat arbitrary, an intentional decision. |
17 | 17 |
|
18 | 18 | use crate::component::{ |
19 | | - CanonicalAbiInfo, ComponentTypesBuilder, FixedEncoding as FE, FlatType, InterfaceType, |
20 | | - StringEncoding, Transcode, TypeComponentLocalErrorContextTableIndex, TypeEnumIndex, |
21 | | - TypeFlagsIndex, TypeFutureTableIndex, TypeListIndex, TypeOptionIndex, TypeRecordIndex, |
22 | | - TypeResourceTableIndex, TypeResultIndex, TypeStreamTableIndex, TypeTupleIndex, |
23 | | - TypeVariantIndex, VariantInfo, FLAG_MAY_ENTER, FLAG_MAY_LEAVE, MAX_FLAT_PARAMS, |
| 19 | + CanonicalAbiInfo, ComponentTypesBuilder, FLAG_MAY_ENTER, FLAG_MAY_LEAVE, FixedEncoding as FE, |
| 20 | + FlatType, InterfaceType, MAX_FLAT_PARAMS, StringEncoding, Transcode, |
| 21 | + TypeComponentLocalErrorContextTableIndex, TypeEnumIndex, TypeFlagsIndex, TypeFutureTableIndex, |
| 22 | + TypeListIndex, TypeOptionIndex, TypeRecordIndex, TypeResourceTableIndex, TypeResultIndex, |
| 23 | + TypeStreamTableIndex, TypeTupleIndex, TypeVariantIndex, VariantInfo, |
24 | 24 | }; |
25 | 25 | use crate::fact::signature::Signature; |
26 | 26 | use crate::fact::transcode::Transcoder; |
@@ -2682,11 +2682,13 @@ impl<'a, 'b> Compiler<'a, 'b> { |
2682 | 2682 |
|
2683 | 2683 | debug_assert_eq!(src_ty.info.size, dst_ty.info.size); |
2684 | 2684 | debug_assert_eq!(src_ty.names.len(), dst_ty.names.len()); |
2685 | | - debug_assert!(src_ty |
2686 | | - .names |
2687 | | - .iter() |
2688 | | - .zip(dst_ty.names.iter()) |
2689 | | - .all(|(a, b)| a == b)); |
| 2685 | + debug_assert!( |
| 2686 | + src_ty |
| 2687 | + .names |
| 2688 | + .iter() |
| 2689 | + .zip(dst_ty.names.iter()) |
| 2690 | + .all(|(a, b)| a == b) |
| 2691 | + ); |
2690 | 2692 |
|
2691 | 2693 | // Get the discriminant. |
2692 | 2694 | match src { |
|
0 commit comments