Conversation
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
r? @thomcc (rust-highfive has picked a reviewer for you, use r? to override) |
|
@rustbot label +T-libs-api -T-libs I think that is correct? |
|
Even though the changes look trivial, I recommend roll-up=iffy on this PR because seemingly noöp changes to the layout code have caused perf regressions before. |
|
☔ The latest upstream changes (presumably #99136) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Hi, this is an API change and so needs to go through the ACP process, as described by the bot:
|
|
triage: adding blocked tag |
|
@rustbot label +S-waiting-on-ACP |
|
The constification of these methods has been merged in the (later submitted) PR #102207 |
…odule build Adds a per-crate `build.rs` that emits `cargo:rustc-link-arg-cdylib=-undefined` + `cargo:rustc-link-arg-cdylib=dynamic_lookup` when the `extension-module` feature is enabled on Apple targets. Without this, `cargo build -p corelink-py --all-features` (and `cargo build --workspace --all-features`) fail on macOS hosts with hundreds of "Undefined symbols for architecture x86_64" errors for every `Py*` / `_Py*` symbol — rustc no longer emits dynamic_lookup by default for cdylib crates (rust-lang/rust#99016) and PyO3 0.24 delegates the link-arg to downstream consumers / maturin. The fix is gated on the feature env var and `CARGO_CFG_TARGET_VENDOR == "apple"` so Linux/Windows builds, the default no-feature path, and cross-compilation targets are untouched. Resolves the wave-30 P1 GA blocker called out by multiple wave-28/29 agents as pre-existing on base 04f2dff. Quality gates: cargo build -p corelink-py (default + extension-module + --all-features), cargo test -p corelink-py (8/8), cargo clippy -p corelink-py --all-targets --all-features -- -D warnings, validate_specs.py, validate_references.py — all green. Audit: specs/_audits/2026-05-16-corelink-py-linker-fix.md. Signed-off-by: Gustavo Schneiter <gustavo@humangr.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Make functions part of
alloc_layout_extra(#55724) const. Requires two additional feature flags:const_alloc_layoutandconst_try(from my understanding std already builds with many other nightly features). I added them in alphabetical order. The only implementation change isstd::cmp::maxhas to be replaced with an explicitifexpression since trait methods are not const.