Temporarily revert to NonZeroUsize in rustc-abi to fix building on stable

This commit is contained in:
Laurențiu Nicola
2024-05-18 11:27:29 +03:00
parent 97bf25c8cf
commit 8ec5a3d7b4
2 changed files with 5 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
#![cfg_attr(feature = "nightly", feature(rustdoc_internals))]
use std::fmt;
use std::num::{NonZero, ParseIntError};
use std::num::{NonZeroUsize, ParseIntError};
use std::ops::{Add, AddAssign, Mul, RangeInclusive, Sub};
use std::str::FromStr;
@@ -1175,7 +1175,7 @@ pub enum FieldsShape<FieldIdx: Idx> {
Primitive,
/// All fields start at no offset. The `usize` is the field count.
Union(NonZero<usize>),
Union(NonZeroUsize),
/// Array/vector-like placement, with all fields of identical types.
Array { stride: Size, count: u64 },