about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-01 10:25:31 +0000
committerbors <bors@rust-lang.org>2021-02-01 10:25:31 +0000
commit9607b5c6ac2d6b3d2117c8d5868435581c5e67d1 (patch)
tree77b02bc7327dc51a4cff83943be4a6d5db62fdf3 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentac912be9846a69cf8f76e245911f9c55e48426db (diff)
parent3a0ae08ae2381a224653aecc5b7e519eb6a2e898 (diff)
downloadrust-9607b5c6ac2d6b3d2117c8d5868435581c5e67d1.tar.gz
rust-9607b5c6ac2d6b3d2117c8d5868435581c5e67d1.zip
Auto merge of #80851 - m-ou-se:panic-2021, r=petrochenkov
Implement Rust 2021 panic

This implements the Rust 2021 versions of `panic!()`. See https://github.com/rust-lang/rust/issues/80162 and https://github.com/rust-lang/rfcs/pull/3007.

It does so by replacing `{std, core}::panic!()` by a bulitin macro that expands to either `$crate::panic::panic_2015!(..)` or `$crate::panic::panic_2021!(..)` depending on the edition of the caller.

This does not yet make std's panic an alias for core's panic on Rust 2021 as the RFC proposes. That will be a separate change: https://github.com/rust-lang/rust/pull/80879/commits/c5273bdfb266c35e8eab9413aa8d58d27fdbe114 That change is blocked on figuring out what to do with https://github.com/rust-lang/rust/issues/80846 first.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions