Skip to content

CTFE Undefined Behavior #1077

Description

@ehuss

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions