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

Made bytes!() accept a list of string, integer and char literals. #6569

Closed
wants to merge 2 commits into from

Conversation

Kimundi
Copy link
Member

@Kimundi Kimundi commented May 17, 2013

Also snug in some cosmetic changes in num.rs that aren't really important enough for an separate pr.

bors added a commit that referenced this pull request May 17, 2013
Also snug in some cosmetic changes in num.rs that aren't really important enough for an separate pr.
@bors bors closed this May 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 15, 2021
…earth

Internal lint symbol comparisons

changelog: none

* Added awareness of `rustc_span::symbol::kw::*` symbols.
* Compare with const symbols: `symbol.as_str() == "self"` => `symbol == kw::SelfLower`
* Don't compare symbols by string: `a.as_str() == b.as_str()` => `a == b`
* Lint comparing with `to_ident_string` or `to_string` instead of `Symbol::as_str`.
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