-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit b7a9cd8
authored
Rollup merge of #142923 - folkertdev:min-function-alignment-no-attributes, r=workingjubilee
fix `-Zmin-function-alignment` on functions without attributes
tracking issue: #82232
related: #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`File tree
2 files changed
+10
-10
lines changed- compiler/rustc_codegen_ssa/src
- tests/codegen
2 files changed
+10
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 | - | ||
150 | - | ||
151 | - | ||
152 | - | ||
153 | - | ||
154 | - | ||
155 | 149 |
| |
156 | 150 |
| |
157 | 151 |
| |
| |||
454 | 448 |
| |
455 | 449 |
| |
456 | 450 |
| |
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | ||
457 | 455 |
| |
458 | 456 |
| |
459 | 457 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
9 | + | ||
10 | 10 |
| |
11 | - | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
12 | 15 |
| |
13 | 16 |
| |
14 | - | ||
15 | 17 |
| |
16 | 18 |
| |
17 | 19 |
| |
|
0 commit comments