diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-20 00:28:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-20 00:28:32 +0200 |
| commit | d761a5fe1128820549ed7a496107aa74d863bc02 (patch) | |
| tree | 108c50b809306d2eabf3e7f873a057b2f53d5121 /compiler/rustc_mir_transform/src/coverage/tests.rs | |
| parent | cbcdf7580b6b8b44da5d2d4b106f639d7bd33b9d (diff) | |
| parent | 4504cc513fb794116d0d2b9b73a40658a2f472cc (diff) | |
| download | rust-d761a5fe1128820549ed7a496107aa74d863bc02.tar.gz rust-d761a5fe1128820549ed7a496107aa74d863bc02.zip | |
Rollup merge of #114983 - crlf0710:formatmsg, r=ChrisDenton
Usage zero as language id for `FormatMessageW()` This switches the language selection from using system language (note that this might be different than application language, typically stored as thread ui language) to use `FormatMessageW` default search strategy, which is `neutral` first, then `thread ui lang`, then `user language`, then `system language`, then `English`. (See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew) This allows the Rust program to take more control of `std::io::Error`'s message field, by setting up thread ui language themselves before hand (which many programs already do).
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions
