diff options
| author | Vladimir Petrzhikovskii <hello@0xdeafbeef.dev> | 2025-08-05 16:34:11 +0200 |
|---|---|---|
| committer | Vladimir Petrzhikovskii <hello@0xdeafbeef.dev> | 2025-08-30 14:59:17 +0200 |
| commit | 0858b14e25eb9ed105ac25ac6ae756c94edc469b (patch) | |
| tree | 12f94cdd16fec771fa366e1806c59c566b0b6917 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | b53c72ffaaf10e17fef5deb063f2f3f3bc13c171 (diff) | |
| download | rust-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_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
