We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playground link
#![feature(min_const_fn, const_panic)] const fn foo() { panic!("") } fn main() { let _: &'static () = &foo(); }
causes an illegal hardware instruction. cc @oli-obk
The text was updated successfully, but these errors were encountered:
In debug mode, release mode, or both? I've seen this happen in release mode because it's undefined behaviour so an optimization pass kills it.
Sorry, something went wrong.
According to the playground it happens for both, release and debug.
Yea we need to solve this before stabilization. When failing to generate the promoted static we can insert an actual panic.
This has been circumvented by #53851
oli-obk
No branches or pull requests
Playground link
causes an illegal hardware instruction. cc @oli-obk
The text was updated successfully, but these errors were encountered: