Skip to content

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