rust/src
Guillaume Gomez 08f1f28699
Rollup merge of #133715 - aDotInTheVoid:rdj-static, r=GuillaumeGomez
rustdoc-json: Include safety of `static`s

`static`s in an `extern` block can have an associated safety annotation ["because there is nothing guaranteeing that the bit pattern at the static’s memory is valid for the type it is declared with"](https://doc.rust-lang.org/reference/items/external-blocks.html#statics). Rustdoc already knows this and displays in for HTML. This PR also includes it in JSON.

Inspired by https://github.com/obi1kenobi/cargo-semver-checks/issues/975 which needs this, but it's probably useful in other places.

r? `@GuillaumeGomez.` Possibly easier to review commit-by-commit.
2024-12-02 17:36:04 +01:00
..
bootstrap Rollup merge of #133712 - RalfJung:rust_analyzer_settings, r=jieyouxu 2024-12-01 21:38:26 -05:00
build_helper move src/tools/build_helper into src/build_helper 2024-11-11 11:19:11 +03:00
ci Auto merge of #133532 - rami3l:ci/bump-ubuntu, r=Kobzol 2024-12-01 16:57:16 +00:00
doc Rollup merge of #133595 - GuillaumeGomez:missing_doc_code_examples, r=notriddle 2024-12-01 14:30:09 +01:00
etc rust_analyzer_settings: force use of 'nightly' toolchain 2024-12-01 22:54:08 +01:00
gcc@fd3498bff0 Update GCC version 2024-09-06 16:01:46 +02:00
librustdoc Rollup merge of #133715 - aDotInTheVoid:rdj-static, r=GuillaumeGomez 2024-12-02 17:36:04 +01:00
llvm-project@104d0d16c3 Update LLVM to 19.1.4 2024-11-20 16:59:48 +01:00
rustc-std-workspace update rustc-std-workspace crates 2024-11-04 07:45:15 +01:00
rustdoc-json-types rustdoc-json: Include safety of statics 2024-12-01 21:39:58 +00:00
tools Rollup merge of #133603 - dtolnay:precedence, r=lcnr 2024-12-02 17:36:03 +01:00
README.md
stage0 bump stage0 2024-11-27 12:12:23 +00:00
version Bump to 1.85 2024-11-22 11:08:33 +00: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.