From 73726c62aa98e2e1a23abcfcd11093575717d8a2 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Mon, 15 Dec 2025 16:21:46 +0200 Subject: [PATCH] repr(packed) can take arguments --- src/attributes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attributes.rst b/src/attributes.rst index 232e902d..9d9d3bb5 100644 --- a/src/attributes.rst +++ b/src/attributes.rst @@ -1,5 +1,6 @@ .. SPDX-License-Identifier: MIT OR Apache-2.0 SPDX-FileCopyrightText: The Ferrocene Developers + SPDX-FileCopyrightText: The Rust Project Contributors .. default-domain:: spec @@ -1543,7 +1544,7 @@ Attribute ``repr`` | $$usize$$ AlignmentDecrease ::= - $$packed$$ + $$packed$$ $$($$ DecimalLiteral $$)$$? AlignmentIncrease ::= $$align$$ $$($$ DecimalLiteral $$)$$ @@ -2373,4 +2374,3 @@ the exhaustiveness of :t:`[match arm]s`. struct struct_with_future_fields { field: u32 } -