Open
Description
This feature allows specifying an alignment for function items by adding the #[repr(align(...))]
attribute to them.
The feature gate for the issue is #![feature(fn_align)]
Example
#[repr(align(16))]
fn requires_alignment() {
// ...
}
Steps
- Implementation (Allow specifying alignment for functions #81234)
- Adjust documentation
- Stabilization PR
Metadata
Metadata
Assignees
Labels
Area: alignment control (`repr(align(N))` and so on)Relevant for the Rust-for-Linux projectCategory: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(fn_align)]`Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.