Skip to content
New issue

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

CTFE Undefined Behavior #1077

Open
ehuss opened this issue Jul 23, 2021 · 0 comments
Open

CTFE Undefined Behavior #1077

ehuss opened this issue Jul 23, 2021 · 0 comments
Labels
A-const-eval Area: Const evaluation A-undefined-behavior Area: Undefined behavior

Comments

@ehuss
Copy link
Contributor

ehuss commented Jul 23, 2021

Some undefined behavior found during CTFE is now treated as an error as of rust-lang/rust#86194. I think https://github.com/rust-lang/reference/blob/master/src/const_eval.md should detail which errors are detected, but Ralf indicated in rust-lang/rust#86194 (comment) that they don't want to make any guarantees about which UB is detected. I can understand that, but it also leaves the language a little under specified. I'm not sure how to resolve that.

@ehuss ehuss added A-const-eval Area: Const evaluation A-undefined-behavior Area: Undefined behavior labels Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-eval Area: Const evaluation A-undefined-behavior Area: Undefined behavior
Projects
None yet
Development

No branches or pull requests

1 participant