Update compiler/rustc_abi/src/layout/ty.rs

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
scottmcm 2025-06-06 09:30:40 +00:00 committed by GitHub
parent 8bce2255e8
commit f9cf0964db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ rustc_index::newtype_index! {
}
impl FieldIdx {
/// The second field.
/// The second field, at index 1.
///
/// For use alongside [`FieldIdx::ZERO`], particularly with scalar pairs.
pub const ONE: FieldIdx = FieldIdx::from_u32(1);