Skip to content

Commit

Permalink
Unrolled build for rust-lang#123740
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#123740 - veera-sivarajan:reduce-size-of-modifierinfo, r=petrochenkov

Reduce Size of `ModifierInfo`

I added `ModifierInfo` in rust-lang#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`.
  • Loading branch information
rust-timer authored Apr 11, 2024
2 parents aa6a697 + 791ba53 commit 459f732
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_target/src/asm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
Expand Down

0 comments on commit 459f732

Please sign in to comment.