about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-13 02:27:12 +0000
committerbors <bors@rust-lang.org>2023-12-13 02:27:12 +0000
commit77d16997566dfb2384bcbc504e2579c7ae973666 (patch)
treee4350dc1e78ad58b62a310734ee680c326a4e1b5 /compiler/rustc_codegen_llvm/src
parent3340d49d22b1aba425779767278c40781826c2f5 (diff)
parentc6f7aa0eea9af919ade663bb3a4bb4b6761c3f83 (diff)
downloadrust-77d16997566dfb2384bcbc504e2579c7ae973666.tar.gz
rust-77d16997566dfb2384bcbc504e2579c7ae973666.zip
Auto merge of #116438 - ChrisDenton:truncate, r=thomcc
Windows: Allow `File::create` to work on hidden files

This makes `OpenOptions::new().write(true).create(true).truncate(true).open(&path)` work if the path exists and is a hidden file. Previously it would fail with access denied.

This makes it consistent with `OpenOptions::new().write(true).truncate(true).open(&path)` (note the lack of `create`) which does not have this restriction. It's also more consistent with other platforms.

Fixes #115745 (see that issue for more details).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions