about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2024-02-26 05:40:12 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2024-02-26 05:40:12 +0000
commit779d0796772f3167c5de6fe9e89e674f677fe38f (patch)
treebe10d5eb2a4af534962863775bda8be47b642f16 /compiler/rustc_parse/src/parser/path.rs
parent8bdcfb0a0a51825d4c68c5d60d07bfa819c0f3ff (diff)
parent633c92cd6de9e269b9c5b10f341fc10280503f0c (diff)
downloadrust-779d0796772f3167c5de6fe9e89e674f677fe38f.tar.gz
rust-779d0796772f3167c5de6fe9e89e674f677fe38f.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index 681039999a6..6e7bbe7e06d 100644
--- a/compiler/rustc_parse/src/parser/path.rs
+++ b/compiler/rustc_parse/src/parser/path.rs
@@ -2,6 +2,7 @@ use super::ty::{AllowPlus, RecoverQPath, RecoverReturnSign};
 use super::{Parser, Restrictions, TokenType};
 use crate::errors::PathSingleColon;
 use crate::{errors, maybe_whole};
+use ast::token::IdentIsRaw;
 use rustc_ast::ptr::P;
 use rustc_ast::token::{self, Delimiter, Token, TokenKind};
 use rustc_ast::{
@@ -390,7 +391,7 @@ impl<'a> Parser<'a> {
 
     pub(super) fn parse_path_segment_ident(&mut self) -> PResult<'a, Ident> {
         match self.token.ident() {
-            Some((ident, false)) if ident.is_path_segment_keyword() => {
+            Some((ident, IdentIsRaw::No)) if ident.is_path_segment_keyword() => {
                 self.bump();
                 Ok(ident)
             }