We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbab782 commit 868bc0dCopy full SHA for 868bc0d
compiler/rustc_parse/src/parser/mod.rs
@@ -643,7 +643,7 @@ impl<'a> Parser<'a> {
643
644
if case == Case::Insensitive
645
&& let Some((ident, IdentIsRaw::No)) = self.token.ident()
646
- && ident.as_str().to_lowercase() == kw.as_str().to_lowercase()
+ && ident.as_str().eq_ignore_ascii_case(kw.as_str())
647
{
648
true
649
} else {
0 commit comments