about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-06 01:23:08 +0000
committerbors <bors@rust-lang.org>2022-04-06 01:23:08 +0000
commit26b5e0cbb95ce5b1cbf91d49fb45d122479e3363 (patch)
tree905fd9705e209bfa9738bf7259f37df34e73988f /compiler/rustc_interface/src
parentbbe9d27b8ff36da56638aa43d6d0cdfdf89a4e57 (diff)
parentd2ce150c8c28b69bf406deb0920fcb4ca0d950ae (diff)
downloadrust-26b5e0cbb95ce5b1cbf91d49fb45d122479e3363.tar.gz
rust-26b5e0cbb95ce5b1cbf91d49fb45d122479e3363.zip
Auto merge of #95469 - ChrisDenton:unsound-read-write, r=joshtriplett
Fix unsound `File` methods

This is a draft attempt to fix #81357. *EDIT*: this PR now tackles `read()`, `write()`, `read_at()`, `write_at()` and `read_buf`. Still needs more testing though.

cc `@jstarks,` can you confirm the the Windows team is ok with the Rust stdlib using `NtReadFile` and `NtWriteFile`?

~Also, I'm provisionally using `CancelIo` in a last ditch attempt to recover but I'm not sure that this is actually a good idea. Especially as getting into this state would be a programmer error so aborting the process is justified in any case.~ *EDIT*: removed, see comments.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions