rust/src
bors d5833423a0 Auto merge of - cjgillot:let-under, r=lcnr
Introduce a no-op `PlaceMention` statement for `let _ =`.

Fixes https://github.com/rust-lang/rust/issues/54003
Fixes https://github.com/rust-lang/rust/issues/80059
Split from https://github.com/rust-lang/rust/pull/101500

This PR introduces a new `PlaceMention` statement dedicated to matches that neither introduce bindings nor ascribe types.  Without this, all traces of the match would vanish from MIR, making it impossible to diagnose unsafety or use in .

This allows to mark `let _ = <unsafe union access or dereference>` as requiring an unsafe block.
Nominating for lang team, as this introduces an extra error.
2023-03-10 11:55:59 +00:00
..
bootstrap Rollup merge of - jyn514:quiet-fmt, r=albertlarsan68 2023-03-09 12:11:53 +01:00
ci ci: use apt install --download-only for solaris debs 2023-03-09 12:23:18 -08:00
doc Add tracking issue for cf-protection to unstable book 2023-03-06 13:03:12 -05:00
etc Rename src/etc/vscode_settings.json to rust_analyzer_settings.json 2023-03-01 22:58:05 +05:30
librustdoc Rollup merge of - eltociear:patch-20, r=GuillaumeGomez 2023-03-09 12:11:55 +01:00
llvm-project@fd949f3034 Update LLVM submodule 2023-02-10 17:00:09 +09:00
rustdoc-json-types fix inconsistent json outputs from rustdoc 2023-03-05 00:09:09 +03:00
tools Auto merge of - cjgillot:let-under, r=lcnr 2023-03-10 11:55:59 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Download rustc component for rustfmt toolchain as well 2023-01-31 10:29:33 -05:00
version Bump version to 1.70.0 2023-03-04 10:10:46 -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.