@@ -1100,6 +1100,7 @@ impl Scalar {
1100
1100
}
1101
1101
}
1102
1102
1103
+ // NOTE: This struct is generic over the FieldIdx for rust-analyzer usage.
1103
1104
/// Describes how the fields of a type are located in memory.
1104
1105
#[ derive( PartialEq , Eq , Hash , Clone , Debug ) ]
1105
1106
#[ cfg_attr( feature = "nightly" , derive( HashStable_Generic ) ) ]
@@ -1354,6 +1355,7 @@ impl Abi {
1354
1355
}
1355
1356
}
1356
1357
1358
+ // NOTE: This struct is generic over the FieldIdx and VariantIdx for rust-analyzer usage.
1357
1359
#[ derive( PartialEq , Eq , Hash , Clone , Debug ) ]
1358
1360
#[ cfg_attr( feature = "nightly" , derive( HashStable_Generic ) ) ]
1359
1361
pub enum Variants < FieldIdx : Idx , VariantIdx : Idx > {
@@ -1374,6 +1376,7 @@ pub enum Variants<FieldIdx: Idx, VariantIdx: Idx> {
1374
1376
} ,
1375
1377
}
1376
1378
1379
+ // NOTE: This struct is generic over the VariantIdx for rust-analyzer usage.
1377
1380
#[ derive( PartialEq , Eq , Hash , Clone , Debug ) ]
1378
1381
#[ cfg_attr( feature = "nightly" , derive( HashStable_Generic ) ) ]
1379
1382
pub enum TagEncoding < VariantIdx : Idx > {
@@ -1482,6 +1485,7 @@ impl Niche {
1482
1485
}
1483
1486
}
1484
1487
1488
+ // NOTE: This struct is generic over the FieldIdx and VariantIdx for rust-analyzer usage.
1485
1489
#[ derive( PartialEq , Eq , Hash , Clone ) ]
1486
1490
#[ cfg_attr( feature = "nightly" , derive( HashStable_Generic ) ) ]
1487
1491
pub struct LayoutS < FieldIdx : Idx , VariantIdx : Idx > {
0 commit comments