Skip to content
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

Add lint suggestion for integer to char cast #44193

Closed
mattico opened this issue Aug 30, 2017 · 2 comments
Closed

Add lint suggestion for integer to char cast #44193

mattico opened this issue Aug 30, 2017 · 2 comments

Comments

@mattico
Copy link
Contributor

mattico commented Aug 30, 2017

Currently, code like 0xEF8888 as char will give a generic warning: literal out of range for u8 warning. It would be helpful to add a suggestion to use from_u32.

Inspired by this reddit post: https://www.reddit.com/r/rust/comments/6x1us8/literal_out_of_range_for_u8/

@oli-obk
Copy link
Contributor

oli-obk commented Aug 31, 2017

duplicate of #44201

@mattico
Copy link
Contributor Author

mattico commented Aug 31, 2017

Yep!

@mattico mattico closed this as completed Aug 31, 2017
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

No branches or pull requests

2 participants