rust/src
bors de9666f123 Auto merge of #54806 - parched:park, r=RalfJung
thread::unpark: Avoid notifying with mutex locked.

This means when the other thread wakes it can continue right away
instead of having to wait for the mutex.

Also add some comments explaining why the mutex needs to be locked in
the first place.

This is a follow up to https://github.com/rust-lang/rust/pull/54174
I did some tests with relacy [here](https://gist.github.com/parched/b7fb88c97755a81e5cb9f9048a15f7fb) (This PR is InnerV2). If anyone can think of some other test case worth adding let me know.

r? @RalfJung
2018-10-31 13:52:00 +00:00
..
bootstrap Avoid directly catching BaseException in bootstrap configure script 2018-10-28 12:03:29 +01:00
build_helper Prefer unwrap_or_else to unwrap_or in case of function calls/allocations 2018-10-19 09:45:45 +02:00
ci Update enum debuginfo tests 2018-10-30 12:09:04 -06:00
dlmalloc@c99638dc2e
doc Reflect by-value object safety in the unstable book. 2018-10-24 21:59:07 +09:00
etc Rollup merge of #55447 - frewsxcv:frewsxcv-rename, r=Mark-Simulacrum 2018-10-29 09:47:52 +01:00
grammar
jemalloc@1f5a28755e
liballoc Rollup merge of #55450 - japaric:msp430, r=alexcrichton 2018-10-30 18:55:27 +08:00
liballoc_jemalloc Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
liballoc_system std: Synchronize global allocator on wasm32 2018-10-09 23:35:45 -07:00
libarena Update TypedArena tests 2018-10-19 14:34:44 +02:00
libbacktrace@f4d02bbdbf
libcompiler_builtins@939cbca6e9 Update compiler-builtins submodule 2018-10-30 10:51:55 -07:00
libcore Rollup merge of #55426 - fitzgen:nonnull-inline, r=SimonSapin 2018-10-29 09:47:48 +01:00
libfmt_macros remove padding from multiline format string label 2018-10-03 14:29:39 -04:00
libgraphviz Remove graphviz::IntoCow 2018-10-05 14:16:10 +02:00
liblibc@1844a772b6
libpanic_abort wasm: Explicitly export all symbols with LLD 2018-10-02 13:49:51 -07:00
libpanic_unwind Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libproc_macro All proc_macro_span APIs tracked at #54725 now 2018-10-01 12:15:35 -07:00
libprofiler_builtins Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc Rollup merge of #55487 - nrc:path-fix, r=petrochenkov 2018-10-30 18:55:34 +08:00
librustc_allocator Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_apfloat Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_asan Rollup merge of #54681 - alexcrichton:san-names, r=kennytm 2018-10-01 16:13:04 +08:00
librustc_borrowck Auto merge of #55150 - pnkfelix:issues-47215-54797-fix-ice-from-moving-out-of-thread-local-under-ast-borrowck, r=nikomatsakis 2018-10-27 09:56:37 +00:00
librustc_codegen_llvm Avoid possible integer overflow in niche value computation 2018-10-30 12:06:07 -06:00
librustc_codegen_utils Auto merge of #54183 - qnighy:by-value-object-safety, r=oli-obk 2018-10-27 19:29:35 +00:00
librustc_cratesio_shim Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_data_structures Use opt.take() instead of mem::replace(opt, None) 2018-10-29 13:48:26 +01:00
librustc_driver Add extern crate items to extern prelude 2018-10-24 00:14:50 +03:00
librustc_errors Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
librustc_fs_util
librustc_incremental Prefer Default::default over FxHash*::default in struct constructors 2018-10-19 14:34:44 +02:00
librustc_lint don't lint unused_parens on if (break _) 2018-10-29 12:41:56 +01:00
librustc_llvm Revert "rustc: Fix (again) simd vectors by-val in ABI" 2018-10-23 00:59:14 -07:00
librustc_lsan Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_metadata Auto merge of #54626 - alexcrichton:dwarf-generics, r=michaelwoerister 2018-10-26 14:30:26 +00:00
librustc_metadata_utils
librustc_mir Rollup merge of #55494 - pnkfelix:issue-55492-borrowck-migrate-must-look-at-parents-of-closures, r=davidtwco 2018-10-30 18:55:37 +08:00
librustc_msan Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_passes Auto merge of #55150 - pnkfelix:issues-47215-54797-fix-ice-from-moving-out-of-thread-local-under-ast-borrowck, r=nikomatsakis 2018-10-27 09:56:37 +00:00
librustc_platform_intrinsics Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_plugin Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_privacy Deprecate the FxHashMap() and FxHashSet() constructor function hack 2018-10-19 14:34:44 +02:00
librustc_resolve Add note linking to Rust 2018 path semantics docs. 2018-10-28 09:16:10 +01:00
librustc_save_analysis Remove redundant clone 2018-10-26 12:07:39 +09:00
librustc_target msp430: remove the whole Atomic* API 2018-10-28 19:03:45 +01:00
librustc_traits Change a flat_map with 0/1-element vecs to a filter_map 2018-10-29 16:28:33 +01:00
librustc_tsan Rollup merge of #54681 - alexcrichton:san-names, r=kennytm 2018-10-01 16:13:04 +08:00
librustc_typeck Rollup merge of #55473 - ljedrz:transitive/elaborate_bounds_impl_iterator, r=estebank 2018-10-30 18:55:30 +08:00
librustdoc Fix invalid "expand description" display 2018-10-30 10:18:51 +01:00
libserialize Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libstd thread::unpark: Avoid notifying with mutex locked. 2018-10-30 22:54:35 +00:00
libsyntax Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
libsyntax_ext Auto merge of #54929 - csmoe:cfg_lint, r=petrochenkov 2018-10-26 21:46:13 +00:00
libsyntax_pos Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
libterm Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libtest add option to libtest to run all tests 2018-10-14 00:58:17 +02:00
libunwind Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
llvm@7051ead40a Fix DWARF generation for enums 2018-10-30 12:06:07 -06:00
llvm-emscripten@2717444753
rtstartup
rustc
rustllvm Fix DWARF generation for enums 2018-10-30 12:06:07 -06:00
stdsimd@431766a3fb Update stdsimd submodule 2018-10-23 09:51:02 -07:00
test Add legacy debuginfo tests 2018-10-30 12:09:11 -06:00
tools Update lldb 2018-10-30 12:09:11 -06:00
.gitignore
Cargo.lock Update clippy 2018-10-30 04:30:29 +00:00
Cargo.toml Use rls-data 0.18.1 2018-09-28 01:54:01 +02:00
README.md
stage0.txt bump bootstrap compiler to rustc beta 2018-10-13 2018-10-14 00:52:47 +02:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc guide.

Their is also useful content in the following READMEs, which are gradually being moved over to the guide: