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