rust/library/core
Jack Huey 7f2eeb10c7
Rollup merge of #81647 - m-ou-se:assert-2021-fix, r=petrochenkov
Fix bug with assert!() calling the wrong edition of panic!().

The span of `panic!` produced by the `assert` macro did not carry the right edition. This changes `assert` to call the right version.

Also adds tests for the 2021 edition of panic and assert, that would've caught this.
2021-02-02 16:01:46 -05:00
..
benches Add more benchmarks 2021-01-08 09:50:35 +00:00
src Rollup merge of #81647 - m-ou-se:assert-2021-fix, r=petrochenkov 2021-02-02 16:01:46 -05:00
tests stabilize int_bits_const 2021-01-31 21:50:47 +10:00
Cargo.toml