This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! foo ( | |
// 24 in a row! | |
(!@#~=|%^&:/+*(){,}[;].$_x:ident) => { 5 } | |
) | |
fn main() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl to_str<T> for T { | |
fn to_str() -> str { "a" } | |
} | |
fn foo<T>(_f:fn()) -> T { fail } | |
fn main() { | |
log(error, | |
// 16 in a row | |
[do foo::<~@&*()>{;}]/_. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs | |
index 6c93dbc..c2b9e33 100644 | |
--- a/src/libsyntax/ext/base.rs | |
+++ b/src/libsyntax/ext/base.rs | |
@@ -30,11 +30,14 @@ enum syntax_extension { | |
fn syntax_expander_table() -> hashmap<str, syntax_extension> { | |
fn builtin(f: syntax_expander_) -> syntax_extension | |
{normal({expander: f, span: none})} | |
+ fn builtin_tt(f: syntax_expander_tt_) -> syntax_extension | |
+ {normal_tt({expander: f, span: none})} |