Skip to content

Conversation

@pcwalton
Copy link
Contributor

If this breaks your code, take a deep breath, go for a walk, and
consider why you're relying on the sign extension semantics of
enum-to-float casts.

[breaking-change]

Closes #8230.

@pcwalton
Copy link
Contributor Author

r? @alexcrichton

Previously, constants used unsigned extension, while non-constants used
signed extension. This unifies both paths to use signed extension.

If this breaks your code, take a deep breath, go for a walk, and
consider why you're relying on the sign extension semantics of
enum-to-float casts.

Closes rust-lang#8230.

[breaking-change]
@pcwalton
Copy link
Contributor Author

@bors: retry

bors added a commit that referenced this pull request Jun 11, 2014
If this breaks your code, take a deep breath, go for a walk, and
consider why you're relying on the sign extension semantics of
enum-to-float casts.

[breaking-change]

Closes #8230.
@bors bors closed this Jun 11, 2014
Sign up for free to 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.

Constants and expressions have diverged on enum-to-float casts.

4 participants