Skip to content

Tracking Issue for #[repr(align(...))] on function items (fn_align) #82232

@repnop

Description

@repnop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-alignArea: alignment control (`repr(align(N))` and so on)A-rust-for-linuxRelevant for the Rust-for-Linux projectC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-fn_align`#![feature(fn_align)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions