Use target_info for discriminant alignment

This commit is contained in:
Richard Feldman 2022-05-20 22:35:51 -04:00
parent b421c53bb5
commit 4f43210218
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
2 changed files with 12 additions and 8 deletions

View file

@ -99,6 +99,7 @@ impl IntWidth {
matches!(self, I8 | I16 | I32 | I64 | I128)
}
pub const fn stack_size(&self) -> u32 {
use IntWidth::*;