mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 17:48:43 +00:00
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.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.