reference icon indicating copy to clipboard operation
reference copied to clipboard

CTFE Undefined Behavior

Open ehuss opened this issue 4 years ago • 0 comments

Some undefined behavior found during CTFE is now treated as an error as of https://github.com/rust-lang/rust/pull/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 https://github.com/rust-lang/rust/pull/86194#issuecomment-864803029 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 avatar Jul 23 '21 14:07 ehuss