rust/src/test
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
..
assembly 32-bit ARM: Emit lr instead of r14 when specified as an asm! output register. 2021-02-14 23:41:10 -08:00
auxiliary
codegen Add a test for escaping LLVMisms in inline asm 2021-02-06 15:18:37 +02:00
codegen-units
debuginfo Update tests for extern block linting 2021-01-13 07:49:16 -05:00
incremental Revert "Auto merge of #79637 - spastorino:revert-trait-inheritance-self, r=Mark-Simulacrum" 2021-02-05 18:56:56 -03:00
mir-opt Apply suggestions 2021-02-14 23:39:42 +01:00
pretty Fix pretty printing of generic associated type constraints 2021-02-13 19:29:55 +00:00
run-make [libtest] Run the test synchronously when hitting thread limit 2021-02-17 21:38:25 +08:00
run-make-fulldeps Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-se 2021-02-21 05:41:09 +00:00
run-pass-valgrind Update tests for extern block linting 2021-01-13 07:49:16 -05:00
rustdoc Add test for no src links on dummy spans 2021-02-20 19:51:38 +01:00
rustdoc-js Add test for primitive search 2021-02-01 15:56:51 +01:00
rustdoc-js-std Add search index test for primitive types 2021-01-27 10:05:06 +01:00
rustdoc-json Add comment + move derive helper 2021-02-08 15:45:50 -05:00
rustdoc-ui Rollup merge of #82261 - ojeda:rustdoc-argfile, r=jyn514 2021-02-19 02:49:12 +01:00
rustfix
ui Auto merge of #79100 - a1phyr:better_assert_eq, r=m-ou-se 2021-02-21 05:41:09 +00:00
ui-fulldeps Allow/fix non_fmt_panic in tests. 2021-02-03 23:15:45 +01:00
COMPILER_TESTS.md