rust/src
bors ed58a2b03b Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-se
Improve assert_eq! and assert_ne!

This PR improves `assert_eq!` and `assert_ne!` by moving the panicking code in an external function.

It does not change the fast path, but the move of the formatting in the cold path (the panic) may have a positive effect on in instruction cache use and with inlining.

Moreover, the use of trait objects instead of generic may improve compile times for `assert_eq!`-heavy code.

Godbolt link: ~~https://rust.godbolt.org/z/TYa9MT~~ \
Updated: https://rust.godbolt.org/z/bzE84x
2021-02-21 05:41:09 +00:00
..
bootstrap Rollup merge of #82236 - matthiaskrgr:useless_conv, r=jyn514 2021-02-18 16:57:40 +01:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Auto merge of #81666 - hyd-dev:miri-windows-test-fail, r=Mark-Simulacrum 2021-02-13 13:47:02 +00:00
doc Rollup merge of #82316 - ehuss:lto-doc-fix, r=GuillaumeGomez 2021-02-20 20:37:03 +01:00
etc Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514 2021-02-14 16:54:45 +01:00
librustdoc Don't render [src] link on dummy spans 2021-02-20 19:51:38 +01:00
llvm-project@70d09f218d Bump LLVM submodule 2021-01-27 23:08:54 +00:00
rustdoc-json-types Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514 2021-02-14 16:54:45 +01:00
test Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-se 2021-02-21 05:41:09 +00:00
tools Auto merge of #82253 - RalfJung:miri, r=RalfJung 2021-02-21 00:19:45 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Bump rustfmt version 2021-02-02 09:09:52 -05:00
version bump nightly version to 1.52.0 2021-02-05 16:25:08 +01: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.