rust/library/std/src
Yuki Okushi cc5a1aad4e
Rollup merge of #77722 - fusion-engineering-forks:safe-unsupported-locks, r=Mark-Simulacrum
Remove unsafety from sys/unsupported and add deny(unsafe_op_in_unsafe_fn).

Replacing `UnsafeCell`s by a `Cell`s simplifies things and makes the mutex and rwlock implementations safe. Other than that, only unsafety in strlen() contained unsafe code.

@rustbot modify labels: +F-unsafe-block-in-unsafe-fn +C-cleanup
2020-10-14 06:02:21 +09:00
..
backtrace std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
collections Rollup merge of #77072 - sharnoff:hash-docs, r=LukasKalbertodt 2020-10-04 15:45:33 +02:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f64 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
ffi Implement destructuring for all aggregates and for references 2020-09-20 13:28:18 +02:00
fs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
io Optimize set_{panic,print}(None). 2020-09-27 16:04:25 +02:00
lazy std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
memchr std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
net Parse SocketAddrV6::scope_id 2020-10-06 22:13:15 +00:00
num std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
os doc: disambiguate stat in MetadataExt::as_raw_stat 2020-10-09 20:12:26 -07:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
prelude Fix incorrect link in prelude 2020-09-02 17:38:21 -04:00
process std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
sync (docs): make mutex error comment consistent with codebase 2020-10-07 11:48:26 -06:00
sys Rollup merge of #77722 - fusion-engineering-forks:safe-unsupported-locks, r=Mark-Simulacrum 2020-10-14 06:02:21 +09:00
sys_common Remove unnecessary rustc_const_stable attributes. 2020-10-08 22:29:13 +02:00
thread Rollup merge of #77147 - fusion-engineering-forks:static-mutex, r=dtolnay 2020-10-02 08:25:15 +09:00
time std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
alloc.rs Rename AllocErr to AllocError 2020-09-28 14:51:03 -04:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
env.rs Improve docs for std::env::args() 2020-09-04 14:00:09 -07:00
error.rs Rename AllocErr to AllocError 2020-09-28 14:51:03 -04:00
f32.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f64.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
fs.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
future.rs Fix stabilization marker for future_readiness_fns 2020-09-15 23:12:08 +02:00
keyword_docs.rs Improve wording for const pointers 2020-09-01 19:44:20 -07:00
lazy.rs Simplify SyncOnceCell's take and drop. 2020-09-12 14:00:38 +02:00
lib.rs Rollup merge of #77195 - follower:patch-2, r=jyn514 2020-10-11 03:19:05 +09:00
macros.rs Add missing links 2020-08-22 20:23:50 -07:00
memchr.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
num.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
panic.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
panicking.rs Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00
path.rs Fix is_absolute on WASI 2020-09-30 13:12:25 +01:00
primitive_docs.rs Add doc alias for pointer primitive 2020-09-26 11:21:24 +02:00
process.rs Add accessors to Command. 2020-09-26 18:58:38 -07:00
rt.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
time.rs Rollup merge of #76388 - poliorcetics:system-time-document-panic, r=KodrAus 2020-10-06 16:25:53 +09:00