Skip to content

Commit 459f732

Browse files
authored
Unrolled build for rust-lang#123740
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`.
2 parents aa6a697 + 791ba53 commit 459f732

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_target/src/asm

1 file changed

+3
-3
lines changed

compiler/rustc_target/src/asm/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use std::str::FromStr;
99
pub struct ModifierInfo {
1010
pub modifier: char,
1111
pub result: &'static str,
12-
pub size: u64,
12+
pub size: u16,
1313
}
1414

15-
impl From<(char, &'static str, u64)> for ModifierInfo {
16-
fn from((modifier, result, size): (char, &'static str, u64)) -> Self {
15+
impl From<(char, &'static str, u16)> for ModifierInfo {
16+
fn from((modifier, result, size): (char, &'static str, u16)) -> Self {
1717
Self { modifier, result, size }
1818
}
1919
}

0 commit comments

Comments
 (0)