about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-07-01 23:30:47 -0700
committerJosh Triplett <josh@joshtriplett.org>2022-07-12 21:30:36 -0700
commite540425a2425819be4717ff0e4217c40cc52c99f (patch)
tree82d31d343449b06fbd8b036302173c6e2162295f /compiler/rustc_interface/src
parent9a6fa4f118d88991458549464d960aa1e495541b (diff)
downloadrust-e540425a2425819be4717ff0e4217c40cc52c99f.tar.gz
rust-e540425a2425819be4717ff0e4217c40cc52c99f.zip
Add a `File::create_new` constructor
We have `File::create` for creating a file or opening an existing file,
but the secure way to guarantee creating a new file requires a longhand
invocation via `OpenOptions`.

Add `File::create_new` to handle this case, to make it easier for people
to do secure file creation.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions