Skip to content

try enabling linker-messages by default again#149937

Open
jyn514 wants to merge 5 commits intorust-lang:mainfrom
jyn514:linker-info
Open

try enabling linker-messages by default again#149937
jyn514 wants to merge 5 commits intorust-lang:mainfrom
jyn514:linker-info

Conversation

@jyn514
Copy link
Member

@jyn514 jyn514 commented Dec 13, 2025

  • Split out linker-info from linker-messages
  • Make linker-messages warn-by-default; keep linker-info deny-by-default

Helps with #136096.

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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. labels Dec 13, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@saethlin
Copy link
Member

@bors try

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Dec 13, 2025
try enabling `linker-messages` by default again
@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Contributor

rust-bors bot commented Dec 13, 2025

☀️ Try build successful (CI)
Build commit: 58b1b3c (58b1b3c5342a414c161338871f8004258ccef2a7, parent: eb171a227f9e5de5d376b6edb56b174bc8235fb3)

@saethlin
Copy link
Member

@craterbot build-only

@craterbot
Copy link
Collaborator

🚨 Error: failed to parse the command

🆘 If you have any trouble with Crater please ask in t-infra on Zulip
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@saethlin
Copy link
Member

@craterbot run mode=build-only

@craterbot
Copy link
Collaborator

👌 Experiment pr-149937 created and queued.
🤖 Automatically detected try build 58b1b3c
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 13, 2025
@rustbot rustbot added the A-run-make Area: port run-make Makefiles to rmake.rs label Dec 13, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 14, 2025
don't use no_main and no_core to test IBT

The previous test was quite fragile and depended on a bunch of internal features. Simplify it.

Split out of rust-lang#149937.

cc `@jieyouxu` `@Oneirical`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 14, 2025
don't use no_main and no_core to test IBT

The previous test was quite fragile and depended on a bunch of internal features. Simplify it.

Split out of rust-lang#149937.

cc ``@jieyouxu`` ``@Oneirical``
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 14, 2025
don't use no_main and no_core to test IBT

The previous test was quite fragile and depended on a bunch of internal features. Simplify it.

Split out of rust-lang#149937.

cc ```@jieyouxu``` ```@Oneirical```
rust-timer added a commit that referenced this pull request Dec 15, 2025
Rollup merge of #149969 - jyn514:ibt, r=jieyouxu

don't use no_main and no_core to test IBT

The previous test was quite fragile and depended on a bunch of internal features. Simplify it.

Split out of #149937.

cc ```@jieyouxu``` ```@Oneirical```
@bors
Copy link
Collaborator

bors commented Dec 15, 2025

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

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Dec 18, 2025
don't use no_main and no_core to test IBT

The previous test was quite fragile and depended on a bunch of internal features. Simplify it.

Split out of rust-lang/rust#149937.

cc ```@jieyouxu``` ```@Oneirical```
@craterbot
Copy link
Collaborator

🚧 Experiment pr-149937 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Collaborator

🎉 Experiment pr-149937 is completed!
📊 24 regressed and 5 fixed (758860 total)
📊 2582 spurious results on the retry-regressed-list.txt, consider a retry1 if this is a significant amount.
📰 Open the summary report.

⚠️ If you notice any spurious failure please add them to the denylist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

Footnotes

  1. re-run the experiment with crates=https://crater-reports.s3.amazonaws.com/pr-149937/retry-regressed-list.txt

@zacknewman
Copy link

zacknewman commented Feb 2, 2026

@zacknewman that warning has been moved into the new linker-info lint, which is allow-by-default.

Has that change made it to nightly? Yesterday I tried using the nightly compiler, and it still erred.

rustc -Whelp using nightly doesn't contain linker-info, so the error occurring on nightly is expected.

@rust-bors

This comment has been minimized.

Copy link
Member

@mati865 mati865 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of questions regarding the tests, to make sure they don't cause issues for people working on their machines.

View changes since this review

Comment on lines +687 to +693
fn is_windows_gnu_ld(sess: &Session) -> bool {
let (_, flavor) = linker_and_flavor(sess);
sess.target.is_like_windows
&& !sess.target.is_like_msvc
&& matches!(flavor, LinkerFlavor::Gnu(_, Lld::No))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will match windows-gnu and windows-gnullvm targets. Probably doesn't matter enough to justify adding && sess.target.abi != Abi::Llvm there.

@@ -0,0 +1,5 @@
//@ only-windows-gnu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, this still happens on CI?
It should not since Sep 9, 2024: #119229 (comment)

Regardless of the CI, having a test that fails only with some host tools version doesn't seem right.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

um. hm. possibly this only fails for me locally because I have an old version of windows-gnu? I'm not sure how to test it in CI ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe instead I could add a fake-linker script that prints exactly the error message I see locally? does that seem reasonable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's very likely. Does your ld -v show version older than 2.40?

Fake linker sounds fine for me, although that probably would have to be a batch script or powershell one since this test runs on Windows.

@bors try jobs=x86_64-mingw-1,x86_64-mingw-2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can test it on CI after you resolve conflicts.

@bors delegate

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you were exactly right, this did in fact fail in CI lol. i pushed a commit using a fake linker and a powershell script.

@mati865
Copy link
Member

mati865 commented Feb 4, 2026

@rustbot author

@rustbot rustbot 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 Feb 4, 2026
@jyn514
Copy link
Member Author

jyn514 commented Feb 4, 2026

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 4, 2026
@rust-bors

This comment has been minimized.

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 4, 2026

✌️ @jyn514, you can now approve this pull request!

If @mati865 told you to "r=me" after making some further change, then please make that change and post @bors r=mati865.

@jyn514
Copy link
Member Author

jyn514 commented Feb 4, 2026

@rustbot author

@rustbot rustbot 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 Feb 4, 2026
jyn514 and others added 4 commits February 6, 2026 05:25
- Hide common linker output behind `linker-info`
- Add tests
- Account for different capitalization on windows-gnu when removing
  "warning" prefix
- Add some more comments
- Add macOS deployment-target test
- Ignore linker warnings from trying to statically link glibc

  I don't know what's going on in `nofile-limit.rs` but I want no part
  of it.
@rustbot
Copy link
Collaborator

rustbot commented Feb 6, 2026

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.

@jyn514
Copy link
Member Author

jyn514 commented Feb 6, 2026

@bors try jobs=x86_64-mingw-1,x86_64-mingw-2

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Feb 6, 2026
try enabling `linker-messages` by default again


try-job: x86_64-mingw-1
try-job: x86_64-mingw-2
@rustbot rustbot added A-tidy Area: The tidy tool T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Feb 6, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 6, 2026

💔 Test for 02e4e25 failed: CI. Failed job:

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-mingw-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[183/3896] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx2_x86-64_windows_gnu.S.obj
[184/3896] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_avx512_x86-64_windows_gnu.S.obj
[185/3896] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_portable.c.obj
[186/3896] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_neon.c.obj
[187/3896] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.obj
[188/3896] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.obj
[189/3896] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.obj
[190/3896] Linking CXX static library lib\libLLVMSupport.a
[191/3896] Linking CXX static library lib\libLLVMSupportLSP.a
[192/3896] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.obj
[193/3896] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/DetailedRecordsBackend.cpp.obj
[194/3896] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/JSONBackend.cpp.obj
---
[226/3896] Linking CXX static library lib\libLLVMTableGenBasic.a
[227/3896] Building TargetLibraryInfo.inc...
[228/3896] Building GenVT.inc...
[229/3896] Building Attributes.inc...
[230/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/BuiltinCAS.cpp.obj
[231/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/BuiltinUnifiedCASDatabases.cpp.obj
[232/3896] Building IntrinsicEnums.inc...
[233/3896] Building IntrinsicImpl.inc...
[234/3896] Building IntrinsicsAArch64.h...
[235/3896] Building IntrinsicsAMDGPU.h...
[236/3896] Building IntrinsicsARM.h...
---
[417/3896] Building CXX object lib/FuzzMutate/CMakeFiles/LLVMFuzzMutate.dir/RandomIRBuilder.cpp.obj
[418/3896] Building CXX object lib/InterfaceStub/CMakeFiles/LLVMInterfaceStub.dir/ELFObjHandler.cpp.obj
[419/3896] Building CXX object lib/InterfaceStub/CMakeFiles/LLVMInterfaceStub.dir/IFSStub.cpp.obj
[420/3896] Building CXX object lib/InterfaceStub/CMakeFiles/LLVMInterfaceStub.dir/IFSHandler.cpp.obj
[421/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskCAS.cpp.obj
[422/3896] Building CXX object lib/IRPrinter/CMakeFiles/LLVMIRPrinter.dir/IRPrintingPasses.cpp.obj
[423/3896] Building CXX object lib/IRReader/CMakeFiles/LLVMIRReader.dir/IRReader.cpp.obj
[424/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskCommon.cpp.obj
[425/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskDataAllocator.cpp.obj
[426/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskKeyValueDB.cpp.obj
[427/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskGraphDB.cpp.obj
[428/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/OnDiskTrieRawHashMap.cpp.obj
[429/3896] Building CXX object lib/CAS/CMakeFiles/LLVMCAS.dir/UnifiedOnDiskCache.cpp.obj
[430/3896] Linking CXX static library lib\libLLVMCAS.a
[431/3896] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenData.cpp.obj
[432/3896] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataReader.cpp.obj
[433/3896] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataWriter.cpp.obj
[434/3896] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTree.cpp.obj
[435/3896] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.obj
---
[1269/3896] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueLattice.cpp.obj
[1270/3896] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueLatticeUtils.cpp.obj
[1271/3896] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueTracking.cpp.obj
[1272/3896] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/VectorUtils.cpp.obj
[1273/3896] Building CXX object lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.obj
[1274/3896] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.obj
[1275/3896] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOModule.cpp.obj
[1276/3896] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.obj
[1277/3896] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOCodeGenerator.cpp.obj
[1278/3896] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/UpdateCompilerUsed.cpp.obj
---
[2247/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMacroFusion.cpp.obj
[2248/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCInstLower.cpp.obj
[2249/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUIGroupLP.cpp.obj
[2250/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMCResourceInfo.cpp.obj
[2251/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULowerVGPREncoding.cpp.obj
[2252/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMarkLastScratchLoad.cpp.obj
[2253/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUMIRFormatter.cpp.obj
[2254/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPerfHintAnalysis.cpp.obj
[2255/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.obj
[2256/3896] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPrintfRuntimeBinding.cpp.obj
---
[2783/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVVectorMaskDAGMutation.cpp.obj
[2784/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVVectorPeephole.cpp.obj
[2785/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVVLOptimizer.cpp.obj
[2786/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVVMV0Elimination.cpp.obj
[2787/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVVSETVLIInfoAnalysis.cpp.obj
[2788/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVZilsdOptimizer.cpp.obj
[2789/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVZacasABIFix.cpp.obj
[2790/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVCallLowering.cpp.obj
[2791/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVPostLegalizerCombiner.cpp.obj
[2792/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVLegalizerInfo.cpp.obj
[2793/3896] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVO0PreLegalizerCombiner.cpp.obj
---
[3554/3896] Building Opts.inc...
[3555/3896] Building Opts.inc...
[3556/3896] Building CXX object tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/DummyISelFuzzer.cpp.obj
[3557/3896] Building CXX object tools/llvm-exegesis/lib/RISCV/CMakeFiles/LLVMExegesisRISCV.dir/Target.cpp.obj
[3558/3896] Building CXX object tools/llvm-ir2vec/CMakeFiles/llvm-ir2vec.dir/llvm-ir2vec.cpp.obj
[3559/3896] Building CXX object tools/llvm-gsymutil/CMakeFiles/llvm-gsymutil.dir/llvm-gsymutil.cpp.obj
[3560/3896] Building CXX object tools/llvm-gsymutil/CMakeFiles/llvm-gsymutil.dir/llvm-gsymutil-driver.cpp.obj
[3561/3896] Building CXX object tools/llvm-ifs/CMakeFiles/llvm-ifs.dir/ErrorCollector.cpp.obj
[3562/3896] Building CXX object tools/llvm-ifs/CMakeFiles/llvm-ifs.dir/llvm-ifs-driver.cpp.obj
[3563/3896] Building CXX object tools/llvm-ifs/CMakeFiles/llvm-ifs.dir/llvm-ifs.cpp.obj
---
[3720/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceVirtualRegisters.cpp.obj
[3721/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterMasks.cpp.obj
[3722/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterDefs.cpp.obj
[3723/3896] Linking CXX executable bin\dsymutil.exe
[3724/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceSinkDefsToUses.cpp.obj
[3725/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterUses.cpp.obj
[3726/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceTargetFeaturesAttr.cpp.obj
[3727/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceUsingSimplifyCFG.cpp.obj
[3728/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/SimplifyInstructions.cpp.obj
[3729/3896] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.obj
---
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Bitstream/BitCodes.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Bitstream/BitstreamReader.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Bitstream/BitstreamWriter.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/ActionCache.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/BuiltinCASContext.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/BuiltinObjectHasher.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/BuiltinUnifiedCASDatabases.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/CASID.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/CASReference.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/FileOffset.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/MappedFileRegionArena.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/ObjectStore.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/OnDiskDataAllocator.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/OnDiskGraphDB.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/OnDiskKeyValueDB.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/OnDiskTrieRawHashMap.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CAS/UnifiedOnDiskCache.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CGData
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CGData/CGDataPatchItem.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CGData/CodeGenData.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CGData/CodeGenData.inc
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/CGData/CodeGenDataReader.h
---
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Demangle/MicrosoftDemangle.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Demangle/StringViewExtras.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/Demangle/Utility.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DTLTO
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DTLTO/DTLTO.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DWARFCFIChecker
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DWARFCFIChecker/DWARFCFIAnalysis.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DWARFCFIChecker/DWARFCFIFunctionFrameAnalyzer.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DWARFCFIChecker/DWARFCFIFunctionFrameReceiver.h
-- Installing: D:/a/rust/rust/build/x86_64-pc-windows-gnu/llvm/include/llvm/DWARFCFIChecker/DWARFCFIFunctionFrameStreamer.h
---
test [ui] tests\ui\asm\aarch64\type-check-3.rs ... ignored, only executed when the architecture is aarch64
test [ui] tests\ui\asm\aarch64\type-f16.rs ... ignored, only executed when the architecture is aarch64
test [ui] tests\ui\array-slice-vec\vector-no-ann-2.rs ... ok
test [ui] tests\ui\asm\aarch64\arm64ec-sve.rs ... ok
test [ui] tests\ui\asm\aarch64v8r.rs#hf ... ok
test [ui] tests\ui\array-slice-vec\vector-slice-matching-8498.rs ... ok
test [ui] tests\ui\asm\aarch64v8r.rs#r82 ... ok
test [ui] tests\ui\asm\aarch64v8r.rs#sf ... ok
test [ui] tests\ui\asm\arm-low-dreg.rs ... ok
test [ui] tests\ui\asm\binary_asm_labels.rs ... ok
test [ui] tests\ui\asm\binary_asm_labels_allowed.rs ... ignored, only executed when the architecture is aarch64
test [ui] tests\ui\asm\bad-template.rs#aarch64 ... ok
test [ui] tests\ui\asm\bad-template.rs#x86_64 ... ok
---
test [ui] tests\ui\asm\x86_64\issue-82869.rs ... ok
test [ui] tests\ui\asm\x86_64\issue-96797.rs ... ignored, only executed when the operating system is linux
test [ui] tests\ui\asm\x86_64\const.rs ... ok
test [ui] tests\ui\asm\x86_64\issue-89875.rs ... ok
test [ui] tests\ui\asm\x86_64\naked_asm_escape.rs ... ignored, only executed when the target is x86_64-unknown-linux-gnu
test [ui] tests\ui\asm\x86_64\sym.rs ... ignored, only executed when the operating system is linux
test [ui] tests\ui\asm\x86_64\goto.rs ... ok
test [ui] tests\ui\asm\x86_64\target-feature-attr.rs ... ok
test [ui] tests\ui\asm\x86_64\may_unwind.rs ... ok
test [ui] tests\ui\asm\x86_64\type-check-2.rs ... ok
---
test [ui] tests\ui\extern\issue-64655-extern-rust-must-allow-unwind.rs#fat2 ... ok
test [ui] tests\ui\extern\issue-64655-extern-rust-must-allow-unwind.rs#fat3 ... ok
test [ui] tests\ui\extern\issue-80074.rs ... ok
test [ui] tests\ui\extern\issue-95829.rs ... ok
test [ui] tests\ui\extern\lgamma-linkage.rs ... ok
test [ui] tests\ui\extern\issue-64655-extern-rust-must-allow-unwind.rs#thin1 ... ok
test [ui] tests\ui\extern\not-in-block.rs ... ok
test [ui] tests\ui\extern\unsized-extern-derefmove.rs ... ok
test [ui] tests\ui\extern\no-mangle-associated-fn.rs ... ok
test [ui] tests\ui\extern\windows-tcb-trash-13259.rs ... ok
---
test [ui] tests\ui\imports\ambiguous-8.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-glob-vs-multiouter.rs ... ok
test [ui] tests\ui\imports\ambiguous-glob-vs-expanded-extern.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-no-implicit-prelude.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-globvsglob.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-non-prelude-core-glob.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-non-prelude-std-glob.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-pick-core.rs ... ok
test [ui] tests\ui\imports\ambiguous-import-visibility-macro.rs ... ok
test [ui] tests\ui\imports\ambiguous-panic-pick-std.rs ... ok
---
test [ui] tests\ui\linking\no-gc-encapsulation-symbols.rs ... ignored, only executed when the target is x86_64-unknown-linux-gnu
test [ui] tests\ui\linking\linker-features-unstable-cc.rs ... ok
test [ui] tests\ui\linking\export-executable-symbols.rs ... ok
test [ui] tests\ui\linking\weird-export-names.rs ... ok
test [ui] tests\ui\linking\windows-gnu-corrupt-drective.rs ... FAILED
test [ui] tests\ui\lint\ambiguous_wide_pointer_comparisons_suggestions.rs ... ok
test [ui] tests\ui\lint\anonymous-reexport.rs ... ok
test [ui] tests\ui\lint\bad-lint-cap.rs ... ok
test [ui] tests\ui\lint\bad-lint-cap2.rs ... ok
test [ui] tests\ui\lint\bad-lint-cap3.rs ... ok
---
test [ui] tests\ui\zero-sized\zero-sized-btreemap-insert.rs ... ok

failures:

---- [ui] tests\ui\linking\windows-gnu-corrupt-drective.rs stdout ----

error: ui test did not emit an error
note: by default, ui tests are expected not to compile.
hint: use check-pass, build-pass, or run-pass directive to change this behavior.
status: exit code: 0
command: PATH="D:\a\rust\rust\build\x86_64-pc-windows-gnu\stage2\bin;D:\a\rust\rust\build\x86_64-pc-windows-gnu\bootstrap-tools\x86_64-pc-windows-gnu\release\deps;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.9.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.5.2\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.12\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.10\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.17-10\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\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\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.12\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\\linking\\windows-gnu-corrupt-drective.rs" "-Zthreads=1" "-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\\linking\\windows-gnu-corrupt-drective" "-A" "unused" "-W" "unused_attributes" "-A" "internal_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"
stdout: none
stderr: none

---- [ui] tests\ui\linking\windows-gnu-corrupt-drective.rs stdout end ----

failures:
    [ui] tests\ui\linking\windows-gnu-corrupt-drective.rs

test result: FAILED. 20155 passed; 1 failed; 365 ignored; 0 measured; 21 filtered out; finished in 1277.42s

Some tests failed in compiletest suite=ui mode=ui host=x86_64-pc-windows-gnu target=x86_64-pc-windows-gnu
Bootstrap failed while executing `test --stage 2 --skip=compiler --skip=src`
Build completed unsuccessfully in 1:47:41
make: *** [Makefile:126: ci-mingw-x] Error 1
  local time: Fri Feb  6 12:24:18 CUT 2026
  network time: Fri, 06 Feb 2026 12:24:19 GMT
##[error]Process completed with exit code 2.
##[group]Run echo "disk usage:"
echo "disk usage:"

@mati865
Copy link
Member

mati865 commented Feb 6, 2026

error: ui test did not emit an error

😌

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 6, 2026

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

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-run-make Area: port run-make Makefiles to rmake.rs A-tidy Area: The tidy tool S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

9 participants