Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/lib.rs')
-rw-r--r--crates/syntax/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs
index d6b1cce45f..0f7855a053 100644
--- a/crates/syntax/src/lib.rs
+++ b/crates/syntax/src/lib.rs
@@ -187,10 +187,10 @@ macro_rules! match_ast {
(match $node:ident { $($tt:tt)* }) => { match_ast!(match ($node) { $($tt)* }) };
(match ($node:expr) {
- $( ast::$ast:ident($it:pat) => $res:expr, )*
+ $( $( $path:ident )::+ ($it:pat) => $res:expr, )*
_ => $catch_all:expr $(,)?
}) => {{
- $( if let Some($it) = ast::$ast::cast($node.clone()) { $res } else )*
+ $( if let Some($it) = $($path::)+cast($node.clone()) { $res } else )*
{ $catch_all }
}};
}