about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2021-02-14 18:27:08 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2021-02-14 18:31:57 +0200
commitfa3621b468263828b5e1a1b1563e0b9cb7209e96 (patch)
tree94006f8a285f48b431f1156e39430ab65c1c7216 /library/std/src/sys/unix/stack_overflow.rs
parentb86674e7cc8ac9c846ed5aca84aaefc2d0d12e4a (diff)
downloadrust-fa3621b468263828b5e1a1b1563e0b9cb7209e96.tar.gz
rust-fa3621b468263828b5e1a1b1563e0b9cb7209e96.zip
Don't fail to remove files if they are missing
In the backend we may want to remove certain temporary files, but in
certain other situations these files might not be produced in the first
place. We don't exactly care about that, and the intent is really that
these files are gone after a certain point in the backend.

Here we unify the backend file removing calls to use `ensure_removed`
which will attempt to delete a file, but will not fail if it does not
exist (anymore).

The tradeoff to this approach is, of course, that we may miss instances
were we are attempting to remove files at wrong paths due to some bug –
compilation would silently succeed but the temporary files would remain
there somewhere.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions