diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-20 15:45:59 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-20 15:45:59 +0800 |
commit | 878c7bc03640ded25dd6e704aa443845cfd6d144 (patch) | |
tree | ec7f6312999b53c5fcee5aaaad8934fbec0dcbc8 | |
parent | 4eb0a6d7e4a600aeca52119fdf3a3bcf90cd6cbb (diff) | |
download | mrust-878c7bc03640ded25dd6e704aa443845cfd6d144.tar.gz |
macro_rules - Handle `dyn Trait` in :ty
-rw-r--r-- | src/macro_rules/eval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/macro_rules/eval.cpp b/src/macro_rules/eval.cpp index 3315b24c..e864537c 100644 --- a/src/macro_rules/eval.cpp +++ b/src/macro_rules/eval.cpp @@ -1073,9 +1073,11 @@ namespace case TOK_PAREN_OPEN: case TOK_SQUARE_OPEN: return consume_tt(lex); + case TOK_IDENT: + if( TARGETVER_1_29 && lex.next_tok().str() == "dyn" ) + lex.consume(); case TOK_RWORD_SUPER: case TOK_RWORD_SELF: - case TOK_IDENT: case TOK_DOUBLE_COLON: case TOK_INTERPOLATED_IDENT: case TOK_INTERPOLATED_PATH: |