]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_middle/src/middle/codegen_fn_attrs.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_middle / src / middle / codegen_fn_attrs.rs
index fc3dafe99e5ec617e4a2c969d7094e2925934e93..93e7aeaffce3771ea62e15a0a0552b8000107fd6 100644 (file)
@@ -38,6 +38,9 @@ pub struct CodegenFnAttrs {
     /// be generated against a specific instruction set. Only usable on architectures which allow
     /// switching between multiple instruction sets.
     pub instruction_set: Option<InstructionSetAttr>,
+    /// The `#[repr(align(...))]` attribute. Indicates the value of which the function should be
+    /// aligned to.
+    pub alignment: Option<u32>,
 }
 
 bitflags! {
@@ -107,6 +110,7 @@ impl CodegenFnAttrs {
             link_section: None,
             no_sanitize: SanitizerSet::empty(),
             instruction_set: None,
+            alignment: None,
         }
     }