about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2021-02-02 16:01:46 -0500
committerGitHub <noreply@github.com>2021-02-02 16:01:46 -0500
commit7f2eeb10c76c8a6f36fd1a273a99f42b8e5222d4 (patch)
tree0e498d70274abe417e77bdec539376c47c026fe7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent86e23cc9f1537a15612810619331953c41dec226 (diff)
parented1de99b4f45032fd049a55bdfae6ee928beecd5 (diff)
downloadrust-7f2eeb10c76c8a6f36fd1a273a99f42b8e5222d4.tar.gz
rust-7f2eeb10c76c8a6f36fd1a273a99f42b8e5222d4.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions