about summary refs log tree commit diff
path: root/tests/codegen/align-fn.rs
AgeCommit message (Collapse)AuthorLines
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-143/+0
2025-07-19Mitigate `#[align]` name resolution ambiguity regression with a renameJieyou Xu-26/+28
From `#[align]` -> `#[rustc_align]`. Attributes starting with `rustc` are always perma-unstable and feature-gated by `feature(rustc_attrs)`. See regression RUST-143834. For the underlying problem where even introducing new feature-gated unstable built-in attributes can break user code such as ```rs macro_rules! align { () => { /* .. */ }; } pub(crate) use align; // `use` here becomes ambiguous ``` refer to RUST-134963. Since the `#[align]` attribute is still feature-gated by `feature(fn_align)`, we can rename it as a mitigation. Note that `#[rustc_align]` will obviously mean that current unstable user code using `feature(fn_aling)` will need additionally `feature(rustc_attrs)`, but this is a short-term mitigation to buy time, and is expected to be changed to a better name with less collision potential. See <https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-07-17/near/529290371> where mitigation options were considered.
2025-07-06Skip `align` tests on wasmJules Bertholet-0/+1
2025-07-06Add FIXME for gen et alJules Bertholet-0/+1
2025-07-06Test `async fn`Jules Bertholet-0/+7
2025-07-06Support `#[align(…)]` on fns in `extern` blocksJules Bertholet-0/+14
2025-06-29inherit `#[align]` from trait method prototypesFolkert de Vries-17/+65
2025-06-18add `#[align]` attributeFolkert de Vries-10/+12
Right now it's used for functions with `fn_align`, in the future it will get more uses (statics, struct fields, etc.)
2025-04-16fix multiple `#[repr(align(N))]` on functionsFolkert de Vries-0/+19
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-1/+1
2023-04-16Allow all associated functions and add testDeadbeef-0/+31
2023-04-14allow `repr(align = x)` on inherent methodsDeadbeef-0/+9
2023-01-11Move /src/test to /testsAlbert Larsan-0/+9