Multiple alignments on functions (#![feature(fn_align)]
)
#132464
Labels
A-align
Area: alignment control (`repr(align(N))` and so on)
A-repr
Area: the `#[repr(stuff)]` attribute
C-bug
Category: This is a bug.
F-fn_align
`#![feature(fn_align)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code specifies two alignments, but applies none. A single
align(256)
does workSee here: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=f841ae6318f0f7abdab285ea9ec641ab
CC: #82232
The culprit is this line here matching on slices of length 1:
rust/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
Lines 418 to 420 in 145f9cf
It's a one line fix, but honestly this is trivially resolved with rust-lang/compiler-team#796 which I'm working on. I'll make it a separate PR at some point, but I'll assign myself since it makes sure changes conflict a little less :)
@rustbot claim
The text was updated successfully, but these errors were encountered: