Skip to content

Remove some #[linkage] options - #163405

Open
bjorn3 wants to merge 3 commits into
rust-lang:mainfrom
bjorn3:less_linkage_options
Open

bjorn3 wants to merge 3 commits into
rust-lang:mainfrom
bjorn3:less_linkage_options

Conversation

@bjorn3

@bjorn3 bjorn3 commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

View all comments

These are either useless due to rustc already setting them whenever you would want them, actively breaking compiler invariants or both.

cc #29603 (comment)

@rustbot

rustbot commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

rustc_codegen_gcc is developed in its own repository. If possible, consider making this change to rust-lang/rustc_codegen_gcc instead.

cc @antoyo, @GuillaumeGomez

Some changes occurred in compiler/rustc_attr_ir

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann, @JonathanBrouwer

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. 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 Sep 27, 2026
@rustbot

rustbot commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

r? @ShoyuVanilla

rustbot has assigned @ShoyuVanilla.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 19 candidates

@lqd

lqd commented Sep 27, 2026

Copy link
Copy Markdown
Member

r? me @bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 00752e3 has been tentatively approved by lqd

It will be put into the queue for this repository once PR CI succeeds.

@bjorn3
bjorn3 force-pushed the less_linkage_options branch from 00752e3 to 92aa365 Compare September 27, 2026 15:03
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 27, 2026
@rust-bors

rust-bors Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

⚠️ A new commit 92aa36580806fddb1b005a14c8dd45728dcb62e9 was pushed.

This pull request was unapproved.

@bjorn3

bjorn3 commented Sep 27, 2026

Copy link
Copy Markdown
Member Author

I missed a couple of codegen tests. Force pushed them.

@rust-log-analyzer

This comment has been minimized.

@bjorn3
bjorn3 force-pushed the less_linkage_options branch from 92aa365 to cd52149 Compare September 27, 2026 16:25
@rustbot rustbot added the A-run-make Area: port run-make Makefiles to rmake.rs label Sep 27, 2026
@lqd

lqd commented Sep 27, 2026

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit cd52149 has been approved by lqd

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 27, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Sep 27, 2026
Remove some #[linkage] options

These are either useless due to rustc already setting them whenever you would want them, actively breaking compiler invariants or both.

cc rust-lang#29603 (comment)
rust-bors Bot pushed a commit that referenced this pull request Sep 28, 2026
Rollup of 11 pull requests

Successful merges:

 - #163085 (Suggest similarly named modules in import paths)
 - #163098 ([debugger visualizers] Add workaround to read `Rc` strong/weak counts)
 - #163120 (ci: make musl.sh look for patches next to the script)
 - #163301 (Fix unused_must_use for scenario which may need to keep value)
 - #163307 (Less `SpanData` in diagnostics)
 - #152972 (implement PartialEq<VecDeque<U>> for Vec<T>, &[T], &mut [T], [T; N], &[T; N] and &mut [T; N])
 - #162536 (Implement Default for NumBuffer)
 - #163141 (Document safety requirements for intrinsic fallbacks)
 - #163384 (Various clean-ups around `LayoutCalculator`)
 - #163405 (Remove some #[linkage] options)
 - #163413 (mailmap: add Matilde Morrone)
@jhpratt

jhpratt commented Sep 28, 2026

Copy link
Copy Markdown
Member

@bors r- #163415 (comment)

---- [ui] tests/ui/linkage-attr/linkage-attr-does-not-panic-llvm-issue-33992.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/linkage-attr/linkage-attr-does-not-panic-llvm-issue-33992.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=wasm32-wasip1" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage-attr/linkage-attr-does-not-panic-llvm-issue-33992/a.wasm" "-Znext-solver=coherence" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/wasm32-wasip1/native/rust-test-helpers"
stdout: none
--- stderr -------------------------------
error: linking with `rust-lld` failed: exit status: 1
   |
   = note:  "rust-lld" "-flavor" "wasm" "--export" "_RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST4" "--export" "_RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST5" "--export" "_RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST7" "--export" "_RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST8" "--export" "__main_void" "-z" "stack-size=1048576" "--stack-first" "--no-demangle" "<sysroot>/lib/rustlib/wasm32-wasip1/lib/self-contained/crt1-command.o" "<2 object files omitted>" "<sysroot>/lib/rustlib/wasm32-wasip1/lib/{libstd-*,libpanic_abort-*,libwasip1-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*}.rlib" "-l" "c" "<sysroot>/lib/rustlib/wasm32-wasip1/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/checkout/obj/build/wasm32-wasip1/native/rust-test-helpers" "-L" "<sysroot>/lib/rustlib/wasm32-wasip1/lib/self-contained" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage-attr/linkage-attr-does-not-panic-llvm-issue-33992/a.wasm" "--gc-sections" "-O3" "--strip-debug"
   = note: some arguments are omitted. use `--verbose` to show all linker arguments
   = note: rust-lld: error: symbol exported via --export not found: _RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST4
           rust-lld: error: symbol exported via --export not found: _RNvCsinVMqPSwQZ9_44linkage_attr_does_not_panic_llvm_issue_339925TEST5
           

error: aborting due to 1 previous error
------------------------------------------

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 28, 2026
Rustc already defaults to this for #[no_mangle]/#[export_name] items.
There is no reason to explicitly use it.
A common definition is like a weak definition except that it must be a
zero-initialized static and when merging two common symbols with the
same name, the size and alignment are set to the higher of both symbols.
This is used for tentative definitions in C and doesn't have any reason
to exist outside of that. This behavior doesn't work across dylibs and
common symbols have inconsistent behavior across linkers [1]. It is also
fragile to rely on getting the largest size of all common symbol
definitions as a (possibly smaller) global definition can override it.

Link: https://maskray.me/blog/all-about-common-symbols [1]
@bjorn3
bjorn3 force-pushed the less_linkage_options branch from 7d68bea to 7cf9480 Compare September 29, 2026 13:44
@rustbot

rustbot commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main 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

bjorn3 commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

Rebased.

@bors r=lqd

@rust-bors

rust-bors Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 7cf9480 has been tentatively approved by lqd

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 29, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-x86_64-gnu-tools failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
100  177M  100  177M    0     0   256M      0 --:--:-- --:--:-- --:--:--  256M
#12 DONE 0.9s

#13 [ 7/10] RUN unzip -d /usr/bin/ chrome-linux64.zip && rm chrome-linux64.zip
#13 0.045 Archive:  chrome-linux64.zip
#13 0.046   inflating: /usr/bin/chrome-linux64/ABOUT  
#13 0.046   inflating: /usr/bin/chrome-linux64/MEIPreload/manifest.json  
#13 0.046   inflating: /usr/bin/chrome-linux64/MEIPreload/preloaded_data.pb  
#13 0.046   inflating: /usr/bin/chrome-linux64/PrivacySandboxAttestationsPreloaded/manifest.json  
#13 0.047   inflating: /usr/bin/chrome-linux64/PrivacySandboxAttestationsPreloaded/privacy-sandbox-attestations.dat  
#13 0.047   inflating: /usr/bin/chrome-linux64/WidevineCdm/LICENSE  
#13 0.047   inflating: /usr/bin/chrome-linux64/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so  
#13 0.176   inflating: /usr/bin/chrome-linux64/WidevineCdm/manifest.json  
#13 0.176   inflating: /usr/bin/chrome-linux64/chrome  
#13 2.411   inflating: /usr/bin/chrome-linux64/chrome-wrapper  
#13 2.411   inflating: /usr/bin/chrome-linux64/chrome_100_percent.pak  
#13 2.417   inflating: /usr/bin/chrome-linux64/chrome_200_percent.pak  
#13 2.425   inflating: /usr/bin/chrome-linux64/chrome_crashpad_handler  
#13 2.442   inflating: /usr/bin/chrome-linux64/chrome_sandbox  
#13 2.442   inflating: /usr/bin/chrome-linux64/deb.deps  
#13 2.443   inflating: /usr/bin/chrome-linux64/icudtl.dat  
#13 2.523   inflating: /usr/bin/chrome-linux64/libEGL.so  
#13 2.526   inflating: /usr/bin/chrome-linux64/libGLESv2.so  
#13 2.576   inflating: /usr/bin/chrome-linux64/libvk_swiftshader.so  
#13 2.614   inflating: /usr/bin/chrome-linux64/libvulkan.so.1  
#13 2.619   inflating: /usr/bin/chrome-linux64/locales/af.pak  
#13 2.624   inflating: /usr/bin/chrome-linux64/locales/af_FEMININE.pak  
#13 2.624   inflating: /usr/bin/chrome-linux64/locales/af_MASCULINE.pak  
#13 2.624   inflating: /usr/bin/chrome-linux64/locales/af_NEUTER.pak  
#13 2.625   inflating: /usr/bin/chrome-linux64/locales/am.pak  
#13 2.632   inflating: /usr/bin/chrome-linux64/locales/am_FEMININE.pak  
#13 2.632   inflating: /usr/bin/chrome-linux64/locales/am_MASCULINE.pak  
#13 2.632   inflating: /usr/bin/chrome-linux64/locales/am_NEUTER.pak  
#13 2.632   inflating: /usr/bin/chrome-linux64/locales/ar.pak  
#13 2.640   inflating: /usr/bin/chrome-linux64/locales/ar_FEMININE.pak  
#13 2.640   inflating: /usr/bin/chrome-linux64/locales/ar_MASCULINE.pak  
#13 2.641   inflating: /usr/bin/chrome-linux64/locales/ar_NEUTER.pak  
#13 2.641   inflating: /usr/bin/chrome-linux64/locales/bg.pak  
#13 2.649   inflating: /usr/bin/chrome-linux64/locales/bg_FEMININE.pak  
#13 2.649   inflating: /usr/bin/chrome-linux64/locales/bg_MASCULINE.pak  
#13 2.649   inflating: /usr/bin/chrome-linux64/locales/bg_NEUTER.pak  
#13 2.649   inflating: /usr/bin/chrome-linux64/locales/bn.pak  
#13 2.659   inflating: /usr/bin/chrome-linux64/locales/bn_FEMININE.pak  
#13 2.659   inflating: /usr/bin/chrome-linux64/locales/bn_MASCULINE.pak  
#13 2.659   inflating: /usr/bin/chrome-linux64/locales/bn_NEUTER.pak  
#13 2.659   inflating: /usr/bin/chrome-linux64/locales/ca.pak  
#13 2.664   inflating: /usr/bin/chrome-linux64/locales/ca_FEMININE.pak  
#13 2.664   inflating: /usr/bin/chrome-linux64/locales/ca_MASCULINE.pak  
#13 2.664   inflating: /usr/bin/chrome-linux64/locales/ca_NEUTER.pak  
#13 2.665   inflating: /usr/bin/chrome-linux64/locales/cs.pak  
#13 2.670   inflating: /usr/bin/chrome-linux64/locales/cs_FEMININE.pak  
#13 2.670   inflating: /usr/bin/chrome-linux64/locales/cs_MASCULINE.pak  
#13 2.670   inflating: /usr/bin/chrome-linux64/locales/cs_NEUTER.pak  
#13 2.670   inflating: /usr/bin/chrome-linux64/locales/da.pak  
#13 2.675   inflating: /usr/bin/chrome-linux64/locales/da_FEMININE.pak  
#13 2.676   inflating: /usr/bin/chrome-linux64/locales/da_MASCULINE.pak  
#13 2.676   inflating: /usr/bin/chrome-linux64/locales/da_NEUTER.pak  
#13 2.676   inflating: /usr/bin/chrome-linux64/locales/de.pak  
#13 2.681   inflating: /usr/bin/chrome-linux64/locales/de_FEMININE.pak  
#13 2.681   inflating: /usr/bin/chrome-linux64/locales/de_MASCULINE.pak  
#13 2.681   inflating: /usr/bin/chrome-linux64/locales/de_NEUTER.pak  
#13 2.681   inflating: /usr/bin/chrome-linux64/locales/el.pak  
#13 2.690   inflating: /usr/bin/chrome-linux64/locales/el_FEMININE.pak  
#13 2.690   inflating: /usr/bin/chrome-linux64/locales/el_MASCULINE.pak  
#13 2.690   inflating: /usr/bin/chrome-linux64/locales/el_NEUTER.pak  
#13 2.690   inflating: /usr/bin/chrome-linux64/locales/en-GB.pak  
#13 2.695   inflating: /usr/bin/chrome-linux64/locales/en-GB_FEMININE.pak  
#13 2.695   inflating: /usr/bin/chrome-linux64/locales/en-GB_MASCULINE.pak  
#13 2.695   inflating: /usr/bin/chrome-linux64/locales/en-GB_NEUTER.pak  
#13 2.695   inflating: /usr/bin/chrome-linux64/locales/en-US.pak  
#13 2.700   inflating: /usr/bin/chrome-linux64/locales/en-US_FEMININE.pak  
#13 2.700   inflating: /usr/bin/chrome-linux64/locales/en-US_MASCULINE.pak  
#13 2.700   inflating: /usr/bin/chrome-linux64/locales/en-US_NEUTER.pak  
#13 2.700   inflating: /usr/bin/chrome-linux64/locales/es-419.pak  
#13 2.705   inflating: /usr/bin/chrome-linux64/locales/es-419_FEMININE.pak  
#13 2.705   inflating: /usr/bin/chrome-linux64/locales/es-419_MASCULINE.pak  
#13 2.706   inflating: /usr/bin/chrome-linux64/locales/es-419_NEUTER.pak  
#13 2.706   inflating: /usr/bin/chrome-linux64/locales/es.pak  
#13 2.711   inflating: /usr/bin/chrome-linux64/locales/es_FEMININE.pak  
#13 2.711   inflating: /usr/bin/chrome-linux64/locales/es_MASCULINE.pak  
#13 2.711   inflating: /usr/bin/chrome-linux64/locales/es_NEUTER.pak  
#13 2.711   inflating: /usr/bin/chrome-linux64/locales/et.pak  
#13 2.716   inflating: /usr/bin/chrome-linux64/locales/et_FEMININE.pak  
#13 2.716   inflating: /usr/bin/chrome-linux64/locales/et_MASCULINE.pak  
#13 2.717   inflating: /usr/bin/chrome-linux64/locales/et_NEUTER.pak  
#13 2.717   inflating: /usr/bin/chrome-linux64/locales/fa.pak  
#13 2.724   inflating: /usr/bin/chrome-linux64/locales/fa_FEMININE.pak  
#13 2.724   inflating: /usr/bin/chrome-linux64/locales/fa_MASCULINE.pak  
#13 2.724   inflating: /usr/bin/chrome-linux64/locales/fa_NEUTER.pak  
#13 2.724   inflating: /usr/bin/chrome-linux64/locales/fi.pak  
#13 2.729   inflating: /usr/bin/chrome-linux64/locales/fi_FEMININE.pak  
#13 2.729   inflating: /usr/bin/chrome-linux64/locales/fi_MASCULINE.pak  
#13 2.730   inflating: /usr/bin/chrome-linux64/locales/fi_NEUTER.pak  
#13 2.730   inflating: /usr/bin/chrome-linux64/locales/fil.pak  
#13 2.735   inflating: /usr/bin/chrome-linux64/locales/fil_FEMININE.pak  
#13 2.735   inflating: /usr/bin/chrome-linux64/locales/fil_MASCULINE.pak  
#13 2.735   inflating: /usr/bin/chrome-linux64/locales/fil_NEUTER.pak  
#13 2.735   inflating: /usr/bin/chrome-linux64/locales/fr.pak  
#13 2.741   inflating: /usr/bin/chrome-linux64/locales/fr_FEMININE.pak  
#13 2.742   inflating: /usr/bin/chrome-linux64/locales/fr_MASCULINE.pak  
#13 2.742   inflating: /usr/bin/chrome-linux64/locales/fr_NEUTER.pak  
#13 2.742   inflating: /usr/bin/chrome-linux64/locales/gu.pak  
#13 2.751   inflating: /usr/bin/chrome-linux64/locales/gu_FEMININE.pak  
#13 2.751   inflating: /usr/bin/chrome-linux64/locales/gu_MASCULINE.pak  
#13 2.751   inflating: /usr/bin/chrome-linux64/locales/gu_NEUTER.pak  
#13 2.751   inflating: /usr/bin/chrome-linux64/locales/he.pak  
#13 2.757   inflating: /usr/bin/chrome-linux64/locales/he_FEMININE.pak  
#13 2.758   inflating: /usr/bin/chrome-linux64/locales/he_MASCULINE.pak  
#13 2.758   inflating: /usr/bin/chrome-linux64/locales/he_NEUTER.pak  
#13 2.758   inflating: /usr/bin/chrome-linux64/locales/hi.pak  
#13 2.768   inflating: /usr/bin/chrome-linux64/locales/hi_FEMININE.pak  
#13 2.768   inflating: /usr/bin/chrome-linux64/locales/hi_MASCULINE.pak  
#13 2.768   inflating: /usr/bin/chrome-linux64/locales/hi_NEUTER.pak  
#13 2.769   inflating: /usr/bin/chrome-linux64/locales/hr.pak  
#13 2.774   inflating: /usr/bin/chrome-linux64/locales/hr_FEMININE.pak  
#13 2.774   inflating: /usr/bin/chrome-linux64/locales/hr_MASCULINE.pak  
#13 2.774   inflating: /usr/bin/chrome-linux64/locales/hr_NEUTER.pak  
#13 2.774   inflating: /usr/bin/chrome-linux64/locales/hu.pak  
#13 2.780   inflating: /usr/bin/chrome-linux64/locales/hu_FEMININE.pak  
#13 2.780   inflating: /usr/bin/chrome-linux64/locales/hu_MASCULINE.pak  
#13 2.780   inflating: /usr/bin/chrome-linux64/locales/hu_NEUTER.pak  
#13 2.780   inflating: /usr/bin/chrome-linux64/locales/id.pak  
#13 2.785   inflating: /usr/bin/chrome-linux64/locales/id_FEMININE.pak  
#13 2.785   inflating: /usr/bin/chrome-linux64/locales/id_MASCULINE.pak  
#13 2.785   inflating: /usr/bin/chrome-linux64/locales/id_NEUTER.pak  
#13 2.785   inflating: /usr/bin/chrome-linux64/locales/it.pak  
#13 2.790   inflating: /usr/bin/chrome-linux64/locales/it_FEMININE.pak  
#13 2.790   inflating: /usr/bin/chrome-linux64/locales/it_MASCULINE.pak  
#13 2.791   inflating: /usr/bin/chrome-linux64/locales/it_NEUTER.pak  
#13 2.791   inflating: /usr/bin/chrome-linux64/locales/ja.pak  
#13 2.797   inflating: /usr/bin/chrome-linux64/locales/ja_FEMININE.pak  
#13 2.797   inflating: /usr/bin/chrome-linux64/locales/ja_MASCULINE.pak  
#13 2.797   inflating: /usr/bin/chrome-linux64/locales/ja_NEUTER.pak  
#13 2.797   inflating: /usr/bin/chrome-linux64/locales/kn.pak  
#13 2.808   inflating: /usr/bin/chrome-linux64/locales/kn_FEMININE.pak  
#13 2.808   inflating: /usr/bin/chrome-linux64/locales/kn_MASCULINE.pak  
#13 2.808   inflating: /usr/bin/chrome-linux64/locales/kn_NEUTER.pak  
#13 2.809   inflating: /usr/bin/chrome-linux64/locales/ko.pak  
#13 2.814   inflating: /usr/bin/chrome-linux64/locales/ko_FEMININE.pak  
#13 2.814   inflating: /usr/bin/chrome-linux64/locales/ko_MASCULINE.pak  
#13 2.814   inflating: /usr/bin/chrome-linux64/locales/ko_NEUTER.pak  
#13 2.814   inflating: /usr/bin/chrome-linux64/locales/lt.pak  
#13 2.820   inflating: /usr/bin/chrome-linux64/locales/lt_FEMININE.pak  
#13 2.820   inflating: /usr/bin/chrome-linux64/locales/lt_MASCULINE.pak  
#13 2.820   inflating: /usr/bin/chrome-linux64/locales/lt_NEUTER.pak  
#13 2.820   inflating: /usr/bin/chrome-linux64/locales/lv.pak  
#13 2.826   inflating: /usr/bin/chrome-linux64/locales/lv_FEMININE.pak  
#13 2.826   inflating: /usr/bin/chrome-linux64/locales/lv_MASCULINE.pak  
#13 2.826   inflating: /usr/bin/chrome-linux64/locales/lv_NEUTER.pak  
#13 2.826   inflating: /usr/bin/chrome-linux64/locales/ml.pak  
#13 2.838   inflating: /usr/bin/chrome-linux64/locales/ml_FEMININE.pak  
#13 2.838   inflating: /usr/bin/chrome-linux64/locales/ml_MASCULINE.pak  
#13 2.838   inflating: /usr/bin/chrome-linux64/locales/ml_NEUTER.pak  
#13 2.838   inflating: /usr/bin/chrome-linux64/locales/mr.pak  
#13 2.848   inflating: /usr/bin/chrome-linux64/locales/mr_FEMININE.pak  
#13 2.848   inflating: /usr/bin/chrome-linux64/locales/mr_MASCULINE.pak  
#13 2.848   inflating: /usr/bin/chrome-linux64/locales/mr_NEUTER.pak  
#13 2.848   inflating: /usr/bin/chrome-linux64/locales/ms.pak  
#13 2.853   inflating: /usr/bin/chrome-linux64/locales/ms_FEMININE.pak  
#13 2.853   inflating: /usr/bin/chrome-linux64/locales/ms_MASCULINE.pak  
#13 2.854   inflating: /usr/bin/chrome-linux64/locales/ms_NEUTER.pak  
#13 2.854   inflating: /usr/bin/chrome-linux64/locales/nb.pak  
#13 2.858   inflating: /usr/bin/chrome-linux64/locales/nb_FEMININE.pak  
#13 2.859   inflating: /usr/bin/chrome-linux64/locales/nb_MASCULINE.pak  
#13 2.859   inflating: /usr/bin/chrome-linux64/locales/nb_NEUTER.pak  
#13 2.859   inflating: /usr/bin/chrome-linux64/locales/nl.pak  
#13 2.864   inflating: /usr/bin/chrome-linux64/locales/nl_FEMININE.pak  
#13 2.864   inflating: /usr/bin/chrome-linux64/locales/nl_MASCULINE.pak  
#13 2.864   inflating: /usr/bin/chrome-linux64/locales/nl_NEUTER.pak  
#13 2.864   inflating: /usr/bin/chrome-linux64/locales/pl.pak  
#13 2.870   inflating: /usr/bin/chrome-linux64/locales/pl_FEMININE.pak  
#13 2.870   inflating: /usr/bin/chrome-linux64/locales/pl_MASCULINE.pak  
#13 2.870   inflating: /usr/bin/chrome-linux64/locales/pl_NEUTER.pak  
#13 2.870   inflating: /usr/bin/chrome-linux64/locales/pt-BR.pak  
#13 2.875   inflating: /usr/bin/chrome-linux64/locales/pt-BR_FEMININE.pak  
#13 2.875   inflating: /usr/bin/chrome-linux64/locales/pt-BR_MASCULINE.pak  
#13 2.875   inflating: /usr/bin/chrome-linux64/locales/pt-BR_NEUTER.pak  
#13 2.876   inflating: /usr/bin/chrome-linux64/locales/pt-PT.pak  
#13 2.881   inflating: /usr/bin/chrome-linux64/locales/pt-PT_FEMININE.pak  
#13 2.881   inflating: /usr/bin/chrome-linux64/locales/pt-PT_MASCULINE.pak  
#13 2.881   inflating: /usr/bin/chrome-linux64/locales/pt-PT_NEUTER.pak  
#13 2.881   inflating: /usr/bin/chrome-linux64/locales/ro.pak  
#13 2.887   inflating: /usr/bin/chrome-linux64/locales/ro_FEMININE.pak  
#13 2.887   inflating: /usr/bin/chrome-linux64/locales/ro_MASCULINE.pak  
#13 2.887   inflating: /usr/bin/chrome-linux64/locales/ro_NEUTER.pak  
#13 2.887   inflating: /usr/bin/chrome-linux64/locales/ru.pak  
#13 2.895   inflating: /usr/bin/chrome-linux64/locales/ru_FEMININE.pak  
#13 2.895   inflating: /usr/bin/chrome-linux64/locales/ru_MASCULINE.pak  
#13 2.895   inflating: /usr/bin/chrome-linux64/locales/ru_NEUTER.pak  
#13 2.895   inflating: /usr/bin/chrome-linux64/locales/sk.pak  
#13 2.901   inflating: /usr/bin/chrome-linux64/locales/sk_FEMININE.pak  
#13 2.901   inflating: /usr/bin/chrome-linux64/locales/sk_MASCULINE.pak  
#13 2.901   inflating: /usr/bin/chrome-linux64/locales/sk_NEUTER.pak  
#13 2.901   inflating: /usr/bin/chrome-linux64/locales/sl.pak  
#13 2.907   inflating: /usr/bin/chrome-linux64/locales/sl_FEMININE.pak  
#13 2.907   inflating: /usr/bin/chrome-linux64/locales/sl_MASCULINE.pak  
#13 2.907   inflating: /usr/bin/chrome-linux64/locales/sl_NEUTER.pak  
#13 2.907   inflating: /usr/bin/chrome-linux64/locales/sr.pak  
#13 2.915   inflating: /usr/bin/chrome-linux64/locales/sr_FEMININE.pak  
#13 2.915   inflating: /usr/bin/chrome-linux64/locales/sr_MASCULINE.pak  
#13 2.915   inflating: /usr/bin/chrome-linux64/locales/sr_NEUTER.pak  
#13 2.915   inflating: /usr/bin/chrome-linux64/locales/sv.pak  
#13 2.920   inflating: /usr/bin/chrome-linux64/locales/sv_FEMININE.pak  
#13 2.920   inflating: /usr/bin/chrome-linux64/locales/sv_MASCULINE.pak  
#13 2.920   inflating: /usr/bin/chrome-linux64/locales/sv_NEUTER.pak  
#13 2.920   inflating: /usr/bin/chrome-linux64/locales/sw.pak  
#13 2.925   inflating: /usr/bin/chrome-linux64/locales/sw_FEMININE.pak  
#13 2.926   inflating: /usr/bin/chrome-linux64/locales/sw_MASCULINE.pak  
#13 2.926   inflating: /usr/bin/chrome-linux64/locales/sw_NEUTER.pak  
#13 2.926   inflating: /usr/bin/chrome-linux64/locales/ta.pak  
#13 2.937   inflating: /usr/bin/chrome-linux64/locales/ta_FEMININE.pak  
#13 2.938   inflating: /usr/bin/chrome-linux64/locales/ta_MASCULINE.pak  
#13 2.938   inflating: /usr/bin/chrome-linux64/locales/ta_NEUTER.pak  
#13 2.938   inflating: /usr/bin/chrome-linux64/locales/te.pak  
#13 2.948   inflating: /usr/bin/chrome-linux64/locales/te_FEMININE.pak  
#13 2.948   inflating: /usr/bin/chrome-linux64/locales/te_MASCULINE.pak  
#13 2.948   inflating: /usr/bin/chrome-linux64/locales/te_NEUTER.pak  
#13 2.948   inflating: /usr/bin/chrome-linux64/locales/th.pak  
#13 2.957   inflating: /usr/bin/chrome-linux64/locales/th_FEMININE.pak  
#13 2.957   inflating: /usr/bin/chrome-linux64/locales/th_MASCULINE.pak  
#13 2.957   inflating: /usr/bin/chrome-linux64/locales/th_NEUTER.pak  
#13 2.957   inflating: /usr/bin/chrome-linux64/locales/tr.pak  
#13 2.963   inflating: /usr/bin/chrome-linux64/locales/tr_FEMININE.pak  
#13 2.963   inflating: /usr/bin/chrome-linux64/locales/tr_MASCULINE.pak  
#13 2.963   inflating: /usr/bin/chrome-linux64/locales/tr_NEUTER.pak  
#13 2.963   inflating: /usr/bin/chrome-linux64/locales/uk.pak  
#13 2.971   inflating: /usr/bin/chrome-linux64/locales/uk_FEMININE.pak  
#13 2.971   inflating: /usr/bin/chrome-linux64/locales/uk_MASCULINE.pak  
#13 2.973   inflating: /usr/bin/chrome-linux64/locales/uk_NEUTER.pak  
#13 2.973   inflating: /usr/bin/chrome-linux64/locales/ur.pak  
#13 2.979   inflating: /usr/bin/chrome-linux64/locales/ur_FEMININE.pak  
#13 2.979   inflating: /usr/bin/chrome-linux64/locales/ur_MASCULINE.pak  
#13 2.979   inflating: /usr/bin/chrome-linux64/locales/ur_NEUTER.pak  
#13 2.979   inflating: /usr/bin/chrome-linux64/locales/vi.pak  
#13 2.985   inflating: /usr/bin/chrome-linux64/locales/vi_FEMININE.pak  
#13 2.985   inflating: /usr/bin/chrome-linux64/locales/vi_MASCULINE.pak  
#13 2.985   inflating: /usr/bin/chrome-linux64/locales/vi_NEUTER.pak  
#13 2.986   inflating: /usr/bin/chrome-linux64/locales/zh-CN.pak  
#13 2.990   inflating: /usr/bin/chrome-linux64/locales/zh-CN_FEMININE.pak  
#13 2.990   inflating: /usr/bin/chrome-linux64/locales/zh-CN_MASCULINE.pak  
#13 2.990   inflating: /usr/bin/chrome-linux64/locales/zh-CN_NEUTER.pak  
#13 2.991   inflating: /usr/bin/chrome-linux64/locales/zh-TW.pak  
#13 2.995   inflating: /usr/bin/chrome-linux64/locales/zh-TW_FEMININE.pak  
#13 2.995   inflating: /usr/bin/chrome-linux64/locales/zh-TW_MASCULINE.pak  
#13 2.995   inflating: /usr/bin/chrome-linux64/locales/zh-TW_NEUTER.pak  
#13 2.995  extracting: /usr/bin/chrome-linux64/product_logo_48.png  
#13 2.996   inflating: /usr/bin/chrome-linux64/resources.pak  
#13 3.085   inflating: /usr/bin/chrome-linux64/rpm.deps  
#13 3.085   inflating: /usr/bin/chrome-linux64/v8_context_snapshot.bin  
#13 3.091   inflating: /usr/bin/chrome-linux64/vk_swiftshader_icd.json  
#13 3.091    creating: /usr/bin/chrome-linux64/resources/
#13 3.091    creating: /usr/bin/chrome-linux64/resources/inspector_overlay/
#13 3.091   inflating: /usr/bin/chrome-linux64/resources/inspector_overlay/inspector_overlay_resources.grd  
#13 3.091   inflating: /usr/bin/chrome-linux64/resources/inspector_overlay/main.js  
#13 3.092    creating: /usr/bin/chrome-linux64/resources/accessibility/
#13 3.092    creating: /usr/bin/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper/
#13 3.093   inflating: /usr/bin/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper/content.js  
#13 3.093   inflating: /usr/bin/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper/gdocs_script.js  
#13 3.093   inflating: /usr/bin/chrome-linux64/resources/accessibility/reading_mode_gdocs_helper_manifest.json  
#13 3.093    creating: /usr/bin/chrome-linux64/hyphen-data/
#13 3.093   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-tk.hyb  
#13 3.093   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-de-1901.hyb  
#13 3.095   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-de-1996.hyb  
#13 3.096   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-mul-ethi.hyb  
#13 3.096   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-es.hyb  
#13 3.097   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-hi.hyb  
#13 3.097   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-cu.hyb  
#13 3.097   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-as.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-ta.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-pa.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-el.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-te.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-und-ethi.hyb  
#13 3.098   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-de-ch-1901.hyb  
#13 3.100   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-bg.hyb  
#13 3.100   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-gu.hyb  
#13 3.100   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-et.hyb  
#13 3.101   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-cs.hyb  
#13 3.101   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-nl.hyb  
#13 3.103   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-ru.hyb  
#13 3.103   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-hy.hyb  
#13 3.103   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-uk.hyb  
#13 3.103   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-eu.hyb  
#13 3.104   inflating: /usr/bin/chrome-linux64/hyphen-data/manifest.json  
#13 3.104   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-ga.hyb  
#13 3.104   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-sk.hyb  
#13 3.105   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-mr.hyb  
#13 3.105   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-bn.hyb  
#13 3.105   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-nb.hyb  
#13 3.107   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-en-gb.hyb  
#13 3.108   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-or.hyb  
#13 3.108   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-cy.hyb  
#13 3.109   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-hr.hyb  
#13 3.109   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-fr.hyb  
#13 3.109   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-kn.hyb  
#13 3.109   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-mn-cyrl.hyb  
#13 3.109   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-lt.hyb  
#13 3.110   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-en-us.hyb  
#13 3.111   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-ml.hyb  
#13 3.111   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-pt.hyb  
#13 3.111   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-be.hyb  
#13 3.111   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-sl.hyb  
#13 3.111   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-lv.hyb  
#13 3.112   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-sv.hyb  
#13 3.113   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-hu.hyb  
#13 3.116   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-af.hyb  
#13 3.117   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-sq.hyb  
#13 3.117   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-ka.hyb  
#13 3.118   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-it.hyb  
#13 3.118   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-gl.hyb  
#13 3.118   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-da.hyb  
#13 3.118   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-nn.hyb  
#13 3.120   inflating: /usr/bin/chrome-linux64/hyphen-data/hyph-la.hyb  
#13 DONE 3.8s

#14 [ 8/10] COPY scripts/nodejs.sh /scripts/
#14 DONE 0.0s

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 29, 2026
@rust-bors

rust-bors Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

❌ Commit 7cf9480 has been unapproved due to PR CI failure. Reapprove it with @bors r+ force if you want to ignore the failure.

@bjorn3

bjorn3 commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

@bors r=lqd force spurious network error

@rust-bors

rust-bors Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 7cf9480 has been approved by lqd

It is now in the queue for this repository.

Warning

This PR was force-approved despite failing PR CI.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 29, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 29, 2026
Remove some #[linkage] options

These are either useless due to rustc already setting them whenever you would want them, actively breaking compiler invariants or both.

cc rust-lang#29603 (comment)
rust-bors Bot pushed a commit that referenced this pull request Sep 29, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #158102 (When compiling without a specified `--edition`, emit a message)
 - #158936 (Add `std::fs::{Home|Media}Dirs`)
 - #163414 (Add support for span context to `derive(Diagnostic)` and use it)
 - #163405 (Remove some #[linkage] options)
 - #163498 (Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey")
tgross35 added a commit to tgross35/rust that referenced this pull request Sep 29, 2026
Remove some #[linkage] options

These are either useless due to rustc already setting them whenever you would want them, actively breaking compiler invariants or both.

cc rust-lang#29603 (comment)
rust-bors Bot pushed a commit that referenced this pull request Sep 29, 2026
Rollup of 8 pull requests

Successful merges:

 - #158102 (When compiling without a specified `--edition`, emit a message)
 - #158936 (Add `std::fs::{Home|Media}Dirs`)
 - #163414 (Add support for span context to `derive(Diagnostic)` and use it)
 - #163481 (triagebot: use r-l/r zulip linkifier for r-l/r rustfmt backport nominations)
 - #163502 (arch::breakpoint: update docs)
 - #163505 (Sync cg_gcc subtree 2026-09-29)
 - #163405 (Remove some #[linkage] options)
 - #163498 (Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey")
rust-bors Bot pushed a commit that referenced this pull request Sep 29, 2026
Rollup of 8 pull requests

Successful merges:

 - #158102 (When compiling without a specified `--edition`, emit a message)
 - #158936 (Add `std::fs::{Home|Media}Dirs`)
 - #163414 (Add support for span context to `derive(Diagnostic)` and use it)
 - #163481 (triagebot: use r-l/r zulip linkifier for r-l/r rustfmt backport nominations)
 - #163502 (arch::breakpoint: update docs)
 - #163505 (Sync cg_gcc subtree 2026-09-29)
 - #163405 (Remove some #[linkage] options)
 - #163498 (Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey")
tgross35 added a commit to tgross35/rust that referenced this pull request Sep 30, 2026
Remove some #[linkage] options

These are either useless due to rustc already setting them whenever you would want them, actively breaking compiler invariants or both.

cc rust-lang#29603 (comment)
rust-bors Bot pushed a commit that referenced this pull request Sep 30, 2026
Rollup of 7 pull requests

Successful merges:

 - #158936 (Add `std::fs::{Home|Media}Dirs`)
 - #163414 (Add support for span context to `derive(Diagnostic)` and use it)
 - #163481 (triagebot: use r-l/r zulip linkifier for r-l/r rustfmt backport nominations)
 - #163502 (arch::breakpoint: update docs)
 - #163505 (Sync cg_gcc subtree 2026-09-29)
 - #163405 (Remove some #[linkage] options)
 - #163498 (Revert "Rollup merge of #120589 - devnexen:cpuaff_fbsd_upd, r=clarfonthey")
@jhpratt

jhpratt commented Sep 30, 2026

Copy link
Copy Markdown
Member

@bors r- #163517 (comment)

---- [ui] tests\ui\linkage-attr\linkage-import.rs stdout ----

error: auxiliary build of D:\a\rust\rust\tests\ui\linkage-attr\auxiliary\def_weak.rs failed to compile: 
status: exit code: 1
command: PATH="D:\a\rust\rust\build\x86_64-pc-windows-gnu\stage2\bin;D:\a\rust\rust\ninja;D:\a\rust\rust\mingw64\bin;C:\msys64\usr\bin;D:\a\rust\rust\sccache;C:\Program Files\MongoDB\Server\7.0\bin;C:\vcpkg;C:\tools\zstd;C:\hostedtoolcache\windows\stack\3.11.1\x64;C:\cabal\bin;C:\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\R\R-4.6.1\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.24.13\x64\bin;C:\hostedtoolcache\windows\Python\3.12.10\x64\Scripts;C:\hostedtoolcache\windows\Python\3.12.10\x64;C:\hostedtoolcache\windows\Ruby\3.3.12\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.20-101\x64\bin;C:\Program Files\ImageMagick-7.1.2-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Microsoft SQL Server\170\DTS\Binn;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.16\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\mongosh;C:\Program Files\LLVM\bin;C:\Program Files (x86)\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "D:\\a\\rust\\rust\\tests\\ui\\linkage-attr\\auxiliary\\def_weak.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=C:\\Users\\runneradmin\\.cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=D:\\a\\rust\\rust\\vendor" "--sysroot" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\stage2" "--target=x86_64-pc-windows-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary" "-Znext-solver=coherence" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "--crate-type" "dylib" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary"
stdout: none
--- stderr -------------------------------
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
   |
   = note: "x86_64-w64-mingw32-gcc" "-Wl,D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\rustc4WDcyY\\list.def" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\rustc4WDcyY\\symbols.o" "<1 object files omitted>" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\rustc4WDcyY\\rmeta.o" "-Wl,-Bdynamic" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\std-f19ec5cf82cf2e36.dll" "-Wl,-Bstatic" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lkernel32" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-ldbghelp" "-lsynchronization" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\rustc4WDcyY\\bcryptprimitives.dll_imports_indirect.lib" "-lgcc_s" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary" "-o" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\def_weak.dll" "-shared" "-Wl,--out-implib=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-gnu\\test\\ui\\linkage-attr\\linkage-import\\auxiliary\\libdef_weak.dll.a" "-Wl,--strip-debug" "-nodefaultlibs"
   = note: some arguments are omitted. use `--verbose` to show all linker arguments
   = note: D:/a/rust/rust/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export _RNvCshmT7sF3wz5g_8def_weak4WEAK: symbol not defined
           collect2.exe: error: ld returned 1 exit status

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 30, 2026
@rust-bors

rust-bors Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

View changes since this unapproval

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

7 participants