Skip to content

Commit 868bc0d

Browse files
committed
XXX: ascii_case
1 parent fbab782 commit 868bc0d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ impl<'a> Parser<'a> {
643643

644644
if case == Case::Insensitive
645645
&& let Some((ident, IdentIsRaw::No)) = self.token.ident()
646-
&& ident.as_str().to_lowercase() == kw.as_str().to_lowercase()
646+
&& ident.as_str().eq_ignore_ascii_case(kw.as_str())
647647
{
648648
true
649649
} else {

0 commit comments

Comments
 (0)