about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/alloc_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-16 08:02:20 +0200
committerGitHub <noreply@github.com>2021-10-16 08:02:20 +0200
commit9ae0804859614ff2e76b26f551ef2cdb19e927ef (patch)
tree2a9b516c1279697e01c193ff4367850dd16132da /compiler/rustc_codegen_cranelift/example/alloc_example.rs
parent6cc0a764e082d9c0abcf37a768d5889247ba13e2 (diff)
parent11140ff1a0dd3a395dd3ca1488bf580559f782f8 (diff)
downloadrust-9ae0804859614ff2e76b26f551ef2cdb19e927ef.tar.gz
rust-9ae0804859614ff2e76b26f551ef2cdb19e927ef.zip
Rollup merge of #89509 - jhpratt:stabilize-const_unreachable_unchecked, r=oli-obk
Stabilize `unreachable_unchecked` as `const fn`

Closes #53188

This PR stabilizes `core::hint::unreachable_unchecked` as `const fn`. MIRI is able to detect when this method is called. Stabilization was delayed until `const_panic` was stabilized so as to avoid users calling this method in its place (thus resulting in runtime UB). With #89508, that is no longer an issue.

````@rustbot```` label +A-const-eval +A-const-fn +T-lang +S-blocked

(not sure why it's T-lang, but that's what the tracking issue is)
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions