mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
ack parser.parse_ty change in quote_ty! (+ test)
This commit is contained in:
parent
0efafac398
commit
8920181052
@ -450,8 +450,7 @@ pub fn expand_quote_ty(cx: &mut ExtCtxt,
|
||||
sp: Span,
|
||||
tts: &[ast::TokenTree])
|
||||
-> Box<base::MacResult+'static> {
|
||||
let expanded = expand_parse_call(cx, sp, "parse_ty",
|
||||
vec![], tts);
|
||||
let expanded = expand_parse_call(cx, sp, "parse_ty", vec!(), tts);
|
||||
base::MacExpr::new(expanded)
|
||||
}
|
||||
|
||||
|
@ -38,6 +38,8 @@ fn syntax_extension(cx: &ExtCtxt) {
|
||||
|
||||
let _j: P<syntax::ast::Method> = quote_method!(cx, fn foo(&self) {});
|
||||
let _k: P<syntax::ast::Method> = quote_method!(cx, #[doc = "hello"] fn foo(&self) {});
|
||||
|
||||
let _l: P<syntax::ast::Ty> = quote_ty!(cx, &int);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user