Skip to content

Conversation

@arielb1
Copy link
Contributor

@arielb1 arielb1 commented Jan 24, 2015

This also makes the cast error messages somewhat more uniform.

This also makes the cast error messages somewhat more uniform.
@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is () not scalar?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that this might have non-local consequence, beyond just changing these error messages slightly, maybe just changing the internals of the cast checking would be more reliable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit structs aren't scalars. Unit enums aren't scalars. ((),) isn't a scalar. I checked the other places that use this function – they don't care.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, good; checking convinces me.

@alexcrichton
Copy link
Member

r? @huonw

@rust-highfive rust-highfive assigned huonw and unassigned alexcrichton Jan 25, 2015
@huonw
Copy link
Contributor

huonw commented Jan 26, 2015

@bors: r+ e724525

bors added a commit that referenced this pull request Jan 26, 2015
This also makes the cast error messages somewhat more uniform.
@bors
Copy link
Collaborator

bors commented Jan 26, 2015

⌛ Testing commit e724525 with merge a637365...

@bors
Copy link
Collaborator

bors commented Jan 27, 2015

@bors bors merged commit e724525 into rust-lang:master Jan 27, 2015
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.

5 participants