{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifekmtwhc4sn6dpkzddzikpumrhn54yuren3gnbl5sd3jx77lsrru",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhfnxrcyklb2"
},
"path": "/t/extending-alignment-to-any-constant-evaluable-expression/24101#post_1",
"publishedAt": "2026-03-19T01:39:10.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"Elain — Rust library // Lib.rs",
"@scottmcm",
"[repr(align(…))] should allow any constant expression, not just integer literals - #4 by scottmcm"
],
"textContent": "Using Elain — Rust library // Lib.rs as an inspiration: extend `#[repr(align(N))]` to where `N` can be any constant-evaluable expression, not just a positive integer.\n\nThoughts on this? Inspired by approach from @scottmcm: #[repr(align(…))] should allow any constant expression, not just integer literals - #4 by scottmcm",
"title": "Extending alignment to any constant-evaluable expression"
}