about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorVladimir Petrzhikovskii <hello@0xdeafbeef.dev>2025-08-05 16:34:11 +0200
committerVladimir Petrzhikovskii <hello@0xdeafbeef.dev>2025-08-30 14:59:17 +0200
commit0858b14e25eb9ed105ac25ac6ae756c94edc469b (patch)
tree12f94cdd16fec771fa366e1806c59c566b0b6917 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentb53c72ffaaf10e17fef5deb063f2f3f3bc13c171 (diff)
downloadrust-0858b14e25eb9ed105ac25ac6ae756c94edc469b.tar.gz
rust-0858b14e25eb9ed105ac25ac6ae756c94edc469b.zip
std: clarify `OpenOptions` error for create without write access
Previously, attempting to create/truncate a file without write/append access
would result in platform-specific error messages:
 - Unix: "Invalid argument"
 - Windows: raw OS error code 87
These error codes look like system errors, which could waste hours 
of debugging for what is actually an API misuse issue.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions