about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-10 22:14:01 +0000
committerbors <bors@rust-lang.org>2023-12-10 22:14:01 +0000
commit5ade8523a830eb8aea5cd0a3ddfb0a2467853e27 (patch)
tree41dbe5024f8fdfe628263f4d10ee7424e1b6eb2e /compiler/rustc_pattern_analysis/src
parent7d0994ca2d22379d5c876fa212c243307464efcd (diff)
parentbebd6fb19f7898f1881cc5a97b7f75a532f90a99 (diff)
downloadrust-5ade8523a830eb8aea5cd0a3ddfb0a2467853e27.tar.gz
rust-5ade8523a830eb8aea5cd0a3ddfb0a2467853e27.zip
Auto merge of #3219 - saethlin:map-failed, r=RalfJung
Return MAP_FAILED when mmap fails

I don't properly remember why we ended up with a hodgepodge of return values, but https://github.com/rust-lang/miri/issues/3218 correctly points out that we are supposed to return `MAP_FAILED`. This should fix that return value and also add sufficient tests to prevent making a similar mistake.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions