rust/src
Ralf Jung 7c8b9413b8
Rollup merge of #73104 - poliorcetics:explicit-mutex-drop-example, r=dtolnay
Example about explicit mutex dropping

Fixes #67457.

Following the remarks made in #73074, I added an example on the main `Mutex` type, with a situation where there is mutable data and a computation result.

In my testing it is effectively needed to explicitly drop the lock, else it deadlocks.

r? @dtolnay because you were the one to review the previous PR.
2020-06-15 12:01:07 +02:00
..
bootstrap Auto merge of #73232 - RalfJung:miri-no-default, r=Mark-Simulacrum 2020-06-14 06:42:40 +00:00
build_helper
ci Auto merge of #73089 - tmiasko:musl-1.1.24, r=kennytm 2020-06-14 10:37:36 +00:00
doc Rollup merge of #73230 - Amanieu:asm-unused2, r=petrochenkov 2020-06-11 19:04:20 +02:00
etc
liballoc Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
libcore Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay 2020-06-15 12:01:03 +02:00
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc_apfloat Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
librustc_arena Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk 2020-06-15 12:00:58 +02:00
librustc_ast Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_ast_lowering Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk 2020-06-15 12:00:58 +02:00
librustc_ast_passes
librustc_ast_pretty Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_attr
librustc_builtin_macros Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_codegen_llvm Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
librustc_codegen_ssa Rollup merge of #73033 - Amanieu:asm-tls, r=oli-obk 2020-06-12 00:05:19 +02:00
librustc_data_structures Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
librustc_driver
librustc_error_codes Rollup merge of #73236 - GuillaumeGomez:cleanup-e0666, r=Dylan-DPC 2020-06-12 12:28:29 +02:00
librustc_errors Rollup merge of #72740 - estebank:recursive-indirection, r=matthewjasper 2020-06-15 12:00:59 +02:00
librustc_expand Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_feature
librustc_fs_util
librustc_graphviz
librustc_hir Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk 2020-06-15 12:00:58 +02:00
librustc_hir_pretty Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_incremental Remove associated opaque types 2020-06-11 16:24:01 +01:00
librustc_index
librustc_infer Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk 2020-06-15 12:00:58 +02:00
librustc_interface Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_lexer Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_lint Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_llvm
librustc_macros Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_metadata Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk 2020-06-15 12:00:58 +02:00
librustc_middle Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk 2020-06-15 12:01:01 +02:00
librustc_mir Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk 2020-06-15 12:01:01 +02:00
librustc_mir_build Rollup merge of #73066 - ecstatic-morse:query-structural-eq2, r=pnkfelix 2020-06-13 16:47:45 +02:00
librustc_parse Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper 2020-06-11 19:04:16 +02:00
librustc_parse_format
librustc_passes Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_plugin_impl
librustc_privacy Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_query_system Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_resolve Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_save_analysis Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_serialize Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_session Rollup merge of #73178 - petrochenkov:explint, r=varkor 2020-06-12 12:28:25 +02:00
librustc_span Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_symbol_mangling
librustc_target Rollup merge of #73086 - trevyn:apple-a7, r=nikic 2020-06-15 12:01:05 +02:00
librustc_trait_selection Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay 2020-06-15 12:01:03 +02:00
librustc_traits
librustc_ty Remove associated opaque types 2020-06-11 16:24:01 +01:00
librustc_typeck Rollup merge of #72740 - estebank:recursive-indirection, r=matthewjasper 2020-06-15 12:00:59 +02:00
librustdoc Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
libstd Rollup merge of #73104 - poliorcetics:explicit-mutex-drop-example, r=dtolnay 2020-06-15 12:01:07 +02:00
libterm
libtest
libunwind Rollup merge of #73187 - mati865:bootstrap-cleanup, r=Mark-Simulacrum 2020-06-12 00:05:31 +02:00
llvm-project@02e0d7fa55
rtstartup
rustc
rustllvm Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink 2020-06-12 01:28:37 +00:00
stdarch@45340c0e2f
test Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk 2020-06-15 12:01:01 +02:00
tools Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay 2020-06-15 12:01:03 +02:00
README.md
stage0.txt

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 dev guide.