diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-29 16:49:38 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-29 16:49:38 +0530 |
| commit | 1999ed798e5a77087cde68d2fb955d768ecfb5a4 (patch) | |
| tree | 1dd7fe9373264c0c258a8a3947391c23c4ca5b5e /compiler/rustc_interface/src/errors.rs | |
| parent | 4cac0bf66256947edce7039d8bf6a5832f85c64d (diff) | |
| parent | e540425a2425819be4717ff0e4217c40cc52c99f (diff) | |
| download | rust-1999ed798e5a77087cde68d2fb955d768ecfb5a4.tar.gz rust-1999ed798e5a77087cde68d2fb955d768ecfb5a4.zip | |
Rollup merge of #98801 - joshtriplett:file-create-new, r=thomcc
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/errors.rs')
0 files changed, 0 insertions, 0 deletions
