We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5945709 commit 30e17e3Copy full SHA for 30e17e3
crates/hir-def/src/data/adt.rs
@@ -128,7 +128,7 @@ fn parse_repr_tt(tt: &Subtree) -> Option<ReprOptions> {
128
} else {
129
0
130
};
131
- let pack = Align::from_bytes(pack).unwrap();
+ let pack = Align::from_bytes(pack).unwrap_or(Align::ONE);
132
min_pack =
133
Some(if let Some(min_pack) = min_pack { min_pack.min(pack) } else { pack });
134
ReprFlags::empty()
0 commit comments