rust/src
Guillaume Gomez eb62779f2d
Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk
Allow `panic!("{}", computed_str)` in const fn.

Special-case `panic!("{}", arg)` and translate it to `panic_display(&arg)`. `panic_display` will behave like `panic_any` in cosnt eval and behave like `panic!(format_args!("{}", arg))` in runtime.

This should bring Rust 2015 and 2021 to feature parity in terms of `const_panic`; and hopefully would unblock the stabilisation of #51999.

`@rustbot` modify labels: +T-compiler +T-libs +A-const-eval +A-const-fn

r? `@oli-obk`
2021-09-17 17:41:19 +02:00
..
bootstrap Rollup merge of #88666 - GuillaumeGomez:compiler-docs, r=Mark-Simulacrum 2021-09-17 17:41:15 +02:00
build_helper rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
ci Disable both reproducible-build tests for crate-type=bin 2021-09-15 13:37:22 -04:00
doc Rollup merge of #88985 - Commeownist:patch-1, r=Amanieu 2021-09-16 10:57:23 -07:00
etc set the executable bit on pre-commit.sh 2021-08-11 15:06:33 -04:00
librustdoc Don't lint about missing code examples in derived traits 2021-09-17 00:39:15 +02:00
llvm-project@86c7daa627 Update LLVM submodule 2021-09-11 00:15:38 +02:00
rustdoc-json-types rustdoc: Clean up handling of lifetime bounds 2021-09-02 14:27:59 -07:00
test Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk 2021-09-17 17:41:19 +02:00
tools Rollup merge of #88883 - c410-f3r:tests, r=petrochenkov 2021-09-17 14:09:48 +09:00
README.md
stage0.json Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
version Bump version to 1.57 2021-09-03 21:54:48 -04: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.