rust/src
bors e0d9f79399 Auto merge of #80851 - m-ou-se:panic-2021, r=petrochenkov
Implement Rust 2021 panic

This implements the Rust 2021 versions of `panic!()`. See https://github.com/rust-lang/rust/issues/80162 and https://github.com/rust-lang/rfcs/pull/3007.

It does so by replacing `{std, core}::panic!()` by a bulitin macro that expands to either `$crate::panic::panic_2015!(..)` or `$crate::panic::panic_2021!(..)` depending on the edition of the caller.

This does not yet make std's panic an alias for core's panic on Rust 2021 as the RFC proposes. That will be a separate change: https://github.com/rust-lang/rust/pull/80879/commits/c5273bdfb266c35e8eab9413aa8d58d27fdbe114 That change is blocked on figuring out what to do with https://github.com/rust-lang/rust/issues/80846 first.
2021-02-01 10:25:31 +00:00
..
bootstrap Revert "Auto merge of #81489 - nikic:x86-64-dist-update, r=Mark-Simulacrum" 2021-01-30 17:44:49 +01:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Revert "Auto merge of #81489 - nikic:x86-64-dist-update, r=Mark-Simulacrum" 2021-01-30 17:44:49 +01:00
doc Rollup merge of #80404 - JulianKnodt:arr_ref, r=oli-obk 2021-01-31 16:36:42 +01:00
etc src/etc/json-types -> src/rustdoc-json-types 2021-01-27 18:58:43 -05:00
librustdoc Rollup merge of #81563 - pickfire:patch-6, r=GuillaumeGomez 2021-01-31 01:47:48 +01:00
llvm-project@f9a8d70b6e Update to LLVM 11.0.1 2021-01-07 11:32:10 -08:00
rustdoc-json-types Fix README typo 2021-01-28 11:15:43 -05:00
test Auto merge of #80851 - m-ou-se:panic-2021, r=petrochenkov 2021-02-01 10:25:31 +00:00
tools Auto merge of #80851 - m-ou-se:panic-2021, r=petrochenkov 2021-02-01 10:25:31 +00:00
README.md
stage0.txt Bump bootstrap compiler to 1.50 beta 2020-12-30 09:27:19 -05:00
version Bump version to 1.51 2020-12-25 10:42:53 -05: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.