about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-07-31 14:55:47 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-11-16 16:19:04 +0000
commit4e418805da5867bc48d82ba1cc7eff2ba68be575 (patch)
treec1a442a2b06f26c0940134aaaa7cd537b5acb9d1 /compiler/rustc_parse/src/parser/path.rs
parent1be1e84872185c427de42f4d9e757d3e3e28d90e (diff)
downloadrust-4e418805da5867bc48d82ba1cc7eff2ba68be575.tar.gz
rust-4e418805da5867bc48d82ba1cc7eff2ba68be575.zip
More detail when expecting expression but encountering bad macro argument
Partially address #71039.
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index 8626dbe40af..0f4ba9617c6 100644
--- a/compiler/rustc_parse/src/parser/path.rs
+++ b/compiler/rustc_parse/src/parser/path.rs
@@ -185,7 +185,7 @@ impl<'a> Parser<'a> {
         });
 
         if let token::Interpolated(nt) = &self.token.kind {
-            if let token::NtTy(ty) = &**nt {
+            if let token::NtTy(ty) = &nt.0 {
                 if let ast::TyKind::Path(None, path) = &ty.kind {
                     let path = path.clone();
                     self.bump();