Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4935ba0

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 parent8ea57c1 commit4935ba0

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-
constALLOWED_REPRS:&[&[Repr]] =&[&[Repr::C],&[Repr::C,Repr::Packed],&[Repr::Transparent]];
283+
constALLOWED_REPRS:&[&[Repr]] =&[
284+
&[Repr::C],
285+
&[Repr::C,Repr::Packed],
286+
&[Repr::Transparent],
287+
&[Repr::Align(4),Repr::C],
288+
];
284289

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp