]> git.lizzy.rs Git - rust.git/commit
Fix bug with assert!() calling the wrong edition of panic!().
authorMara Bos <m-ou.se@m-ou.se>
Mon, 1 Feb 2021 22:08:22 +0000 (23:08 +0100)
committerMara Bos <m-ou.se@m-ou.se>
Mon, 1 Feb 2021 22:23:27 +0000 (23:23 +0100)
commited1de99b4f45032fd049a55bdfae6ee928beecd5
tree0c57b31271e526900cbf1b6e8accea20ef99747a
parent5022ad0127a4685a65d11b7ddd1f16fe9ee085a9
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.
compiler/rustc_builtin_macros/src/assert.rs
library/core/src/macros/mod.rs