mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
7f2eeb10c7
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.