From a5a11a8ef0ac9d66660d93b0db951eae9497705f Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 6 Oct 2014 10:53:05 -0400 Subject: syntax: Parse outer attributes in quote_method! Fixes #17782. --- src/libsyntax/ext/quote.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 0503c1e8cc2..e8949c4aa4f 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -464,13 +464,8 @@ pub fn expand_quote_method(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> Box { - let e_attrs = cx.expr_vec_ng(sp); - let e_visibility = cx.expr_path(cx.path_global(sp, vec!( - id_ext("syntax"), - id_ext("ast"), - id_ext("Inherited")))); - let expanded = expand_parse_call(cx, sp, "parse_method", - vec!(e_attrs, e_visibility), tts); + let expanded = expand_parse_call(cx, sp, "parse_method_with_outer_attributes", + vec!(), tts); base::MacExpr::new(expanded) } -- cgit 1.4.1-3-g733a5