rust/compiler/rustc_codegen_ssa
Jubilee b7a9cd871c
Rollup merge of #142923 - folkertdev:min-function-alignment-no-attributes, r=workingjubilee
fix `-Zmin-function-alignment` on functions without attributes

tracking issue: https://github.com/rust-lang/rust/issues/82232
related: https://github.com/rust-lang/rust/pull/142854

The minimum function alignment was skipped on functions without attributes (because the logic was in a loop that only runs if there is at least one attribute). The underlying reason we didn't catch this before is that in our testing we generally apply `#[no_mangle]` to functions that are tested. I've added a test now that deliberately has no attributes.

r? `@workingjubilee`
2025-06-23 12:48:23 -07:00
..
src Rollup merge of #142923 - folkertdev:min-function-alignment-no-attributes, r=workingjubilee 2025-06-23 12:48:23 -07:00
Cargo.toml CodeGen: rework Aggregate implemention for rvalue_creates_operand cases 2025-06-17 18:59:22 -07:00
messages.ftl Port #[no_mangle] to new attribute parsing infrastructure 2025-06-22 22:17:04 +02:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.