Skip to content

Sync from rust 2025/09/16 - #760

Merged
antoyo merged 17 commits into
masterfrom
sync_from_rust_2025_09_16
Sep 20, 2025
Merged

antoyo merged 17 commits into
masterfrom
sync_from_rust_2025_09_16

Conversation

@antoyo

@antoyo antoyo commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

No description provided.

bjorn3 and others added 17 commits August 24, 2025 11:20
As opposed to passing it around through Result.
…lsewhere

A lot of places had special handling just in case they would get an
allocator module even though most of these places could never get one or
would have a trivial implementation for the allocator module. Moving all
handling of the allocator module to a single place simplifies things a
fair bit.
It is always false nowadays. ThinLTO summary writing is instead done by
llvm_optimize.
Misc LTO cleanups

Follow up to rust-lang/rust#145955.

* Remove want_summary argument from `prepare_thin`.
   Since rust-lang/rust#133250 ThinLTO summary writing is instead done by `llvm_optimize`.
* Two minor cleanups
We need a different attribute than `rustc_align` because unstable attributes are
tied to their feature (we can't have two unstable features use the same
unstable attribute). Otherwise this uses all of the same infrastructure
as `#[rustc_align]`.
…fjung,traviscross

Implement `#[rustc_align_static(N)]` on `static`s

Tracking issue: rust-lang/rust#146177

```rust
#![feature(static_align)]

#[rustc_align_static(64)]
static SO_ALIGNED: u64 = 0;
```

We need a different attribute than `rustc_align` because unstable attributes are tied to their feature (we can't have two unstable features use the same unstable attribute). Otherwise this uses all of the same infrastructure as `#[rustc_align]`.

r? `@traviscross`
@antoyo
antoyo merged commit 5c50a42 into master Sep 20, 2025
@antoyo
antoyo deleted the sync_from_rust_2025_09_16 branch September 20, 2025 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants