Skip to content

Conversation

usamoi
Copy link
Contributor

@usamoi usamoi commented Aug 30, 2025

This pull request:

  • emits -Wl,--as-needed instead of -Wl,--no-as-needed for raw-dylib-elf, keeping it consistent with dylib
  • allows combination of link kind raw-dylib and link modifier as-needed, thus allowing free choice of behavior

r? @bjorn3

cc #135694
cc #99424

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 30, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 30, 2025

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

Some changes occurred in compiler/rustc_hir/src/attrs

cc @jdonszelmann

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

@madsmtm madsmtm added the F-raw_dylib `#![feature(raw_dylib)]` label Sep 6, 2025
@bors
Copy link
Collaborator

bors commented Oct 5, 2025

☔ The latest upstream changes (presumably #147345) made this pull request unmergeable. Please resolve the merge conflicts.

@usamoi usamoi force-pushed the raw-dylib-elf-as-needed branch from f672671 to 21dd997 Compare October 6, 2025 00:57
@rustbot
Copy link
Collaborator

rustbot commented Oct 6, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@bjorn3
Copy link
Member

bjorn3 commented Oct 6, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 6, 2025

📌 Commit 21dd997 has been approved by bjorn3

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 6, 2025
bors added a commit that referenced this pull request Oct 6, 2025
Rollup of 3 pull requests

Successful merges:

 - #146027 (support link modifier `as-needed` for raw-dylib-elf)
 - #146874 (compiler: Hint at multiple crate versions if trait impl is for wrong ADT )
 - #147237 ([rustdoc] Cleanup "highlight::end_expansion")

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 036c8e1 into rust-lang:master Oct 6, 2025
10 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 6, 2025
rust-timer added a commit that referenced this pull request Oct 6, 2025
Rollup merge of #146027 - usamoi:raw-dylib-elf-as-needed, r=bjorn3

support link modifier `as-needed` for raw-dylib-elf

This pull request:

* emits `-Wl,--as-needed` instead of `-Wl,--no-as-needed` for `raw-dylib-elf`, keeping it consistent with `dylib`
* allows combination of link kind `raw-dylib` and link modifier `as-needed`, thus allowing free choice of behavior

r? `@bjorn3`

cc #135694
cc #99424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) F-raw_dylib `#![feature(raw_dylib)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants