rust/src/libstd
bors 758dc9af50 Auto merge of #60156 - RalfJung:macos-rand, r=oli-obk,alexcrichton
use SecRandomCopyBytes on macOS in Miri

This is a hack to fix https://github.com/rust-lang/miri/issues/686: on macOS, rustc will open `/dev/urandom` to initialize a `HashMap`. That's quite hard to emulate properly in Miri without a full-blown implementation of file descriptors.  However, Miri needs an implementation of `SecRandomCopyBytes` anyway to support [getrandom](https://crates.io/crates/getrandom), so using it here should work just as well.

This will only have an effect when libstd is compiled specifically for Miri, but that will generally be the case when people use `cargo miri`.

This is clearly a hack, so I am opening this to start a discussion about whether we are okay with such a hack or not.

Cc @oli-obk
2019-05-02 07:38:36 +00:00
..
collections ignore-tidy-filelength on all files with greater than 3000 lines 2019-04-25 21:39:09 +01:00
ffi Mark unix::ffi::OsStrExt methods as inline 2019-04-04 10:55:31 +02:00
io Rollup merge of #60334 - sfackler:stable-iovec, r=alexcrichton 2019-04-29 22:22:40 +02:00
net Stabilized vectored IO 2019-04-27 08:34:08 -07:00
os Remove double trailing newlines 2019-04-22 16:57:01 +01:00
prelude libstd => 2018 2019-02-28 04:06:15 +09:00
sync ignore-tidy-filelength on all files with greater than 3000 lines 2019-04-25 21:39:09 +01:00
sys Auto merge of #60156 - RalfJung:macos-rand, r=oli-obk,alexcrichton 2019-05-02 07:38:36 +00:00
sys_common Auto merge of #60204 - jethrogb:jb/rtunwrap-debug-print, r=alexcrichton 2019-04-30 22:46:28 +00:00
tests libstd => 2018 2019-02-28 04:06:15 +09:00
thread Use more realistic example for thread builder 2019-04-18 14:58:38 +03:00
alloc.rs Add Default to std::alloc::System 2019-03-27 00:09:12 +01:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
build.rs libstd => 2018 2019-02-28 04:06:15 +09:00
Cargo.toml Update hashbrown to 0.3.0 2019-04-24 06:54:14 +08:00
env.rs Document Item type in std::env::SplitPaths iterator. 2019-04-17 08:11:37 +01:00
error.rs Rollup merge of #59587 - XAMPPRocky:master, r=Centril 2019-03-31 19:19:56 +02:00
f32.rs Change copytest parameter name from y to sign 2019-04-05 20:30:45 -06:00
f64.rs Change copytest parameter name from y to sign 2019-04-05 20:30:45 -06:00
fs.rs Stabilized vectored IO 2019-04-27 08:34:08 -07:00
future.rs Stabilize futures_api 2019-04-23 16:13:53 -07:00
keyword_docs.rs Fix links on keyword docs. 2019-04-09 15:38:32 -07:00
lib.rs Remove feature gates from std and tests 2019-04-26 12:33:42 +02:00
macros.rs extend ui test 2019-04-19 21:12:50 +02:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Reexport IntErrorKind in std 2019-04-23 00:15:43 +02:00
panic.rs Stabilize futures_api 2019-04-23 16:13:53 -07:00
panicking.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
path.rs ignore-tidy-filelength on all files with greater than 3000 lines 2019-04-25 21:39:09 +01:00
primitive_docs.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
process.rs doc: Warn about possible zombie apocalypse 2019-05-01 17:46:30 +02:00
rt.rs libstd => 2018 2019-02-28 04:06:15 +09:00
time.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00