Skip to content

Commit 6e544c8

Browse files
committed
xtask: fix check-raw
check-raw is very strict. Relaxing it gives uefi-raw more freedom, which is especially needed for the more high-level IpAddress type changes.
1 parent 1975de2 commit 6e544c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xtask/src/check_raw.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,12 @@ fn check_fields(fields: &Punctuated<Field, Comma>, src: &Path) -> Result<(), Err
280280
}
281281

282282
/// List with allowed combinations of representations (see [`Repr`]).
283-
const ALLOWED_REPRS: &[&[Repr]] = &[&[Repr::C], &[Repr::C, Repr::Packed], &[Repr::Transparent]];
283+
const ALLOWED_REPRS: &[&[Repr]] = &[
284+
&[Repr::C],
285+
&[Repr::C, Repr::Packed],
286+
&[Repr::Transparent],
287+
&[Repr::Align(4), Repr::C],
288+
];
284289

285290
fn check_type_attrs(attrs: &[Attribute], spanned: &dyn Spanned, src: &Path) -> Result<(), Error> {
286291
let attrs = parse_attrs(attrs, src)?;

0 commit comments

Comments
 (0)