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 5dccff0 commit 1b7a7beCopy full SHA for 1b7a7be
xtask/src/check_raw.rs
@@ -280,7 +280,12 @@ fn check_fields(fields: &Punctuated<Field, Comma>, src: &Path) -> Result<(), Err
280
}
281
282
/// List with allowed combinations of representations (see [`Repr`]).
283
-const ALLOWED_REPRS: &[&[Repr]] = &[&[Repr::C], &[Repr::C, Repr::Packed], &[Repr::Transparent]];
+const ALLOWED_REPRS: &[&[Repr]] = &[
284
+ &[Repr::C],
285
+ &[Repr::C, Repr::Packed],
286
+ &[Repr::Transparent],
287
+ &[Repr::Align(4), Repr::C],
288
+];
289
290
fn check_type_attrs(attrs: &[Attribute], spanned: &dyn Spanned, src: &Path) -> Result<(), Error> {
291
let attrs = parse_attrs(attrs, src)?;
@@ -482,7 +487,7 @@ mod tests {
482
487
483
488
484
489
},
485
- ErrorKind::ForbiddenRepr,
490
+ ErrorKind::ForbiddenRepr(vec![Repr::C]),
486
491
);
492
493
@@ -614,7 +619,7 @@ mod tests {
614
619
pub f: u32,
615
620
616
621
617
622
+ ErrorKind::ForbiddenRepr(vec![Repr::Rust]),
618
623
624
625
// Forbidden attr.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments