-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Remove enum -> float casts #14794
Milestone
Comments
+1 |
Assigning P-backcompat-lang, 1.0. |
Note that casting to other scalars, like pointers, currently ICEs enum A {
B,
C,
}
fn main() {
B as *int;
}
|
pcwalton
added a commit
to pcwalton/rust
that referenced
this issue
Jun 13, 2014
Closes rust-lang#14794. If you're casting from an enum to a float, cast through an integer first. [breaking-change]
bors
added a commit
that referenced
this issue
Jun 14, 2014
…=alexcrichton Closes #14794. If you're casting from an enum to a float, cast through an integer first. [breaking-change] r? @alexcrichton
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Restructure InlayHint, no longer derive properties from its kind Closes rust-lang/rust-analyzer#14595
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed in #14786, but this feature is silly. I don't at all care that somebody that wants to cast an enum to a float must first cast to an int.
Nominating.
The text was updated successfully, but these errors were encountered: