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

trans: add range asserts to loads of char #10056

Closed
wants to merge 1 commit into from
Closed

trans: add range asserts to loads of char #10056

wants to merge 1 commit into from

Conversation

thestinger
Copy link
Contributor

No description provided.

@brson
Copy link
Contributor

brson commented Oct 24, 2013

What does this change do and why?

@thestinger
Copy link
Contributor Author

@brson: It marks characters as being in the valid range like we do for booleans, but I didn't realize that there were still transmutes of -1 left. I went through them all and marked them with FIXME: #8971 earlier and incorrectly assumed removing std::io had purged them.

@thestinger
Copy link
Contributor Author

(The lexer and json module rely heavily on being able to transmute -1 to char to represent EOF)

@brson
Copy link
Contributor

brson commented Oct 25, 2013

Thanks for the explanation.

@thestinger
Copy link
Contributor Author

I'll reopen this when the issues are fixed.

@thestinger thestinger closed this Oct 25, 2013
@thestinger thestinger deleted the char branch October 25, 2013 00:39
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 29, 2022
Avoid `match_wildcard_for_single_variants` on guarded wild matches

fix rust-lang#9993

changelog: FP: [`match_wildcard_for_single_variants`]: No longer lints on wildcards with a guard
[rust-lang#10056](rust-lang/rust-clippy#10056)
<!-- changelog_checked -->

r? `@Jarcho`
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.

3 participants