Files
rust/compiler/rustc_codegen_ssa
Jonathan Brouwer 615aa922c8 Rollup merge of #160445 - rabindra789:fix/msvc-localized-linker-output, r=ChrisDenton
codegen: classify localized MSVC linker progress as linker_info

Fixes rust-lang/rust#159133.

`report_linker_output` currently recognizes only a small set of English `link.exe` progress messages as informational. When the linker output is localized, equivalent progress messages are instead emitted through the `linker_messages` lint.

Instead of matching specific English strings, classify MSVC linker output based on locale-independent `LNK####` diagnostic codes.Lines without an `LNK####` code are routed to `linker_info`, while diagnostics continue to be emitted through `linker_messages`. The existing `LNK6004` incremental-link exception is preserved.

Testing

- Added a run-make regression test for localized `link.exe` progress output.
- Verified the existing MSVC linker-info tests continue to pass.
2026-08-08 00:38:29 +02:00
..
…

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.