diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-11 20:20:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 20:20:50 +0200 |
| commit | 074269f7a1b867ae2f3ad0d9ceccc1996908ca95 (patch) | |
| tree | 13bd90274bfa705b6378970f1bcb315169f768be | |
| parent | bcdc281e5c0429450dc6122930bbde3753491f3f (diff) | |
| parent | 791ba531c05f39e9ce1ff23887462de3724914df (diff) | |
| download | rust-074269f7a1b867ae2f3ad0d9ceccc1996908ca95.tar.gz rust-074269f7a1b867ae2f3ad0d9ceccc1996908ca95.zip | |
Rollup merge of #123740 - veera-sivarajan:reduce-size-of-modifierinfo, r=petrochenkov
Reduce Size of `ModifierInfo` I added `ModifierInfo` in #121940 and had used a `u64` for the `size` field even though the largest value it holds is `512`. This PR changes the type of the `size` field to `u16`.
| -rw-r--r-- | compiler/rustc_target/src/asm/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/asm/mod.rs b/compiler/rustc_target/src/asm/mod.rs index d6bbf4f36cf..49de92b86cb 100644 --- a/compiler/rustc_target/src/asm/mod.rs +++ b/compiler/rustc_target/src/asm/mod.rs @@ -9,11 +9,11 @@ use std::str::FromStr; pub struct ModifierInfo { pub modifier: char, pub result: &'static str, - pub size: u64, + pub size: u16, } -impl From<(char, &'static str, u64)> for ModifierInfo { - fn from((modifier, result, size): (char, &'static str, u64)) -> Self { +impl From<(char, &'static str, u16)> for ModifierInfo { + fn from((modifier, result, size): (char, &'static str, u16)) -> Self { Self { modifier, result, size } } } |
