rust/src
bors fd1f8aa05d Auto merge of #127912 - joboet:tls_dtor_thread_current, r=cuviper
std: make `thread::current` available in all `thread_local!` destructors

... and thereby allow the panic runtime to always print the right thread name.

This works by modifying the TLS destructor system to schedule a runtime cleanup function after all other TLS destructors registered by `std` have run. Unfortunately, this doesn't affect foreign TLS destructors, `thread::current` will still panic there.

Additionally, the thread ID returned by `current_id` will now always be available, even inside the global allocator, and will not change during the lifetime of one thread (this was previously the case with key-based TLS).

The mechanisms I added for this (`local_pointer` and `thread_cleanup`) will also allow finally fixing #111272 by moving the signal stack to a similar runtime-cleanup TLS variable.
2024-10-03 03:31:47 +00:00
..
bootstrap Auto merge of #131117 - AvatarSenju:helpstring-fix, r=onur-ozkan 2024-10-02 09:50:45 +00:00
ci Auto merge of #125771 - Kobzol:ci-datadog-metrics, r=jdno 2024-10-02 13:56:55 +00:00
doc Auto merge of #131111 - matthiaskrgr:rollup-n6do187, r=matthiaskrgr 2024-10-01 19:29:26 +00:00
etc Rollup merge of #130932 - mrkajetanp:editors, r=jieyouxu 2024-09-27 21:35:10 +02:00
gcc@fd3498bff0 Update GCC version 2024-09-06 16:01:46 +02:00
librustdoc Rollup merge of #130933 - lolbinarycat:rustdoc-li-p, r=GuillaumeGomez,notriddle 2024-10-01 21:09:20 +02:00
llvm-project@5699773936 Update to LLVM 19.1.0 2024-09-20 14:41:36 -07:00
rustdoc-json-types rustdoc: update ProcMacro docs section on helper attributes 2024-09-27 14:34:48 -04:00
tools Auto merge of #127912 - joboet:tls_dtor_thread_current, r=cuviper 2024-10-03 03:31:47 +00:00
README.md
stage0 Bump stage0 2024-09-22 19:04:19 -04:00
version Bump to 1.83 2024-08-30 19:58:04 +01:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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