Skip to content

Uninhabited enum cast - #6204

Closed
pcwalton wants to merge 3 commits into
rust-lang:incomingfrom
pcwalton:uninhabited-enum-cast
Closed

Uninhabited enum cast#6204
pcwalton wants to merge 3 commits into
rust-lang:incomingfrom
pcwalton:uninhabited-enum-cast

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

@borsbors closed this May 3, 2013
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Sep 1, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Oct 17, 2020
…tsakis
Permit uninhabited enums to cast into ints
This essentially reverts part of rust-lang#6204; it is unclear why that [commit](rust-lang@c0f587d) was introduced, and I suspect no one remembers.
The changed code was only called from casting checks and appears to not affect any callers of that code (other than permitting this one case).
Fixesrust-lang#75647.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Oct 17, 2020
…tsakis
Permit uninhabited enums to cast into ints
This essentially reverts part of rust-lang#6204; it is unclear why that [commit](rust-lang@c0f587d) was introduced, and I suspect no one remembers.
The changed code was only called from casting checks and appears to not affect any callers of that code (other than permitting this one case).
Fixesrust-lang#75647.
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6213: Fix resolveCodeAction request r=SomeoneToIgnore a=lnicola
Fixesrust-lang#6204
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pcwalton@graydon@catamorphism@bors