about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-26 08:02:40 +0000
committerbors <bors@rust-lang.org>2024-02-26 08:02:40 +0000
commit7cadf0b2da0d83d5d38c8eddb033acf1508942e0 (patch)
tree0cc9d713cfbed1a362010c110d1ba7f421ec2f07 /compiler/rustc_parse/src/parser/path.rs
parent8d74063672a9b1eb283e685cd059187f86d9373d (diff)
parentdb0b49b945f56356ee495cd8b909545d566ef92e (diff)
downloadrust-7cadf0b2da0d83d5d38c8eddb033acf1508942e0.tar.gz
rust-7cadf0b2da0d83d5d38c8eddb033acf1508942e0.zip
Auto merge of #3326 - rust-lang:rustup-2024-02-26, r=RalfJung
Automatic Rustup

also fixes https://github.com/rust-lang/miri/issues/3308
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)
             }