rust/compiler/rustc_codegen_ssa/src
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
..
back Extract Translator struct 2025-06-19 13:02:04 -05:00
debuginfo Flatten ifs in rustc_codegen_ssa 2025-03-17 18:56:52 +00:00
mir centralize -Zmin-function-alignment logic 2025-06-22 00:47:10 +02:00
traits Rollup merge of #142383 - scottmcm:operandref-builder, r=workingjubilee 2025-06-18 18:06:50 +02:00
assert_module_sources.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
base.rs Rollup merge of #141769 - bjorn3:codegen_metadata_module_rework, r=workingjubilee,saethlin 2025-06-15 23:51:54 +02:00
codegen_attrs.rs Rollup merge of #142923 - folkertdev:min-function-alignment-no-attributes, r=workingjubilee 2025-06-23 12:48:23 -07:00
common.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
errors.rs Port #[no_mangle] to new attribute parsing infrastructure 2025-06-22 22:17:04 +02:00
lib.rs Move metadata object generation for dylibs to the linker code 2025-06-03 10:04:34 +00:00
meth.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00
mono_item.rs Make predefine methods take &mut self 2025-05-28 20:55:00 +00:00
size_of_val.rs Replace some Option<Span> with Span and use DUMMY_SP instead of None 2025-06-05 14:14:59 +00:00
target_features.rs various minor target feature cleanups 2025-06-19 10:50:03 +09:00