aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/tests.rs
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-05-03 16:23:21 +0100
committerEdwin Cheng <[email protected]>2019-05-03 16:23:21 +0100
commit31909cc7d77fea5e08aaa9fd149338b243ec600f (patch)
tree56c826ab4dd6cc5f531af919f91184e3aa50d248 /crates/ra_mbe/src/tests.rs
parente8e46100d6c2ae617e1321bb01ce5a2f3cb37c6a (diff)
By pass unbind $var while mbe expanding
Diffstat (limited to 'crates/ra_mbe/src/tests.rs')
-rw-r--r--crates/ra_mbe/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/tests.rs b/crates/ra_mbe/src/tests.rs
index b81e6fcc9..cdbd4dd1c 100644
--- a/crates/ra_mbe/src/tests.rs
+++ b/crates/ra_mbe/src/tests.rs
@@ -952,7 +952,7 @@ macro_rules! foo {
952 MacroKind::Items, 952 MacroKind::Items,
953 &rules, 953 &rules,
954 r#"foo!(x,y, 1);"#, 954 r#"foo!(x,y, 1);"#,
955 r#"macro_rules ! bar {(bi : ident) => {fn bi () -> u8 {1}}} bar ! (x) ; fn y () -> u8 {1}"#, 955 r#"macro_rules ! bar {($ bi : ident) => {fn $ bi () -> u8 {1}}} bar ! (x) ; fn y () -> u8 {1}"#,
956 ); 956 );
957} 957}
958 958