rust/src
Vadim Petrochenkov 5b5964f569 rustc: Panic by default in DefIdTree::parent
Only crate root def-ids don't have a parent, and in majority of cases the argument of `DefIdTree::parent` cannot be a crate root.
So we now panic by default in `parent` and introduce a new non-panicing function `opt_parent` for cases where the argument can be a crate root.

Same applies to `local_parent`/`opt_local_parent`.
2022-05-02 01:56:50 +03:00
..
bootstrap Auto merge of #95170 - jyn514:ci-llvm, r=Mark-Simulacrum 2022-04-27 13:27:22 +00:00
ci Update LLVM used for building rustc in CI for x64 to LLVM 14.0.2 2022-04-28 16:04:15 +02:00
doc Add do yeet expressions to allow experimentation in nightly 2022-04-30 17:40:27 -07:00
etc Store all generic bounds as where predicates. 2022-04-30 13:55:13 +02:00
librustdoc rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
llvm-project@fc10370ef7 Update LLVM submodule 2022-04-28 16:04:15 +02:00
rustdoc-json-types rustdoc-json-types: implementors -> implementations 2022-03-14 00:05:11 +00:00
test Auto merge of #96549 - ouz-a:mir-opt, r=oli-obk 2022-05-01 15:25:16 +00:00
tools rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
README.md
stage0.json bump stage0 to the latest beta 2022-04-05 22:24:32 +02:00
version bump version to 1.62.0 2022-04-04 09:21:03 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

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