rust/src
bors 1bb3a9f67a Auto merge of #121309 - Nilstrieb:inline-all-the-fallbacks, r=oli-obk
Make intrinsic fallback bodies cross-crate inlineable

This change was prompted by the stage1 compiler spending 4% of its time when compiling the polymorphic-recursion MIR opt test in `unlikely`.

Intrinsic fallback bodies like `unlikely` should always be inlined, it's very silly if they are not. To do this, we enable the fallback bodies to be cross-crate inlineable. Not that this matters for our workloads since the compiler never actually _uses_ the "fallback bodies", it just uses whatever was cfg(bootstrap)ped, so I've also added `#[inline]` to those.

See the comments for more information.

r? oli-obk
2024-02-22 12:07:08 +00:00
..
bootstrap bootstrap: apply most of clippy's suggestions 2024-02-21 01:13:06 +03:00
ci Update cargo 2024-02-17 20:41:09 -05:00
doc Auto merge of #121309 - Nilstrieb:inline-all-the-fallbacks, r=oli-obk 2024-02-22 12:07:08 +00:00
etc Update tests. 2024-01-27 16:38:57 +01:00
librustdoc Auto merge of #121129 - nnethercote:codegen-Diags, r=estebank 2024-02-22 08:01:37 +00:00
llvm-project@9ea7f739f2 Update to LLVM 18 2024-02-13 10:33:40 +01:00
rustdoc-json-types Add is_object_safe information for traits in JSON output 2023-12-23 11:43:31 +01:00
tools Auto merge of #121415 - matthiaskrgr:rollup-o9zzet4, r=matthiaskrgr 2024-02-22 00:04:07 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump to newly branched stage0 compiler 2024-02-08 07:43:38 -05:00
version Bump to 1.78 2024-02-03 13:14:34 -05: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.