Allow anti-quotes to also be ast::ty rather than just ast::expr.
This commit is contained in:
parent
f7fab77102
commit
a2dde9a692
4 changed files with 77 additions and 20 deletions
|
@ -420,6 +420,13 @@ fn parse_ret_ty(p: parser) -> (ast::ret_style, @ast::ty) {
|
|||
|
||||
fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty {
|
||||
let lo = p.span.lo;
|
||||
|
||||
alt have_dollar(p) {
|
||||
some(e) {ret @spanned(lo, p.span.hi,
|
||||
ast::ty_mac(spanned(lo, p.span.hi, e)))}
|
||||
none {}
|
||||
}
|
||||
|
||||
let t: ast::ty_;
|
||||
// FIXME: do something with this
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue