auto merge of #17787 : bgamari/rust/fix-quote-method, r=huonw

The previous fix introduced in 75d49c8203 neglected to parse outer attributes as described in #17782.
This commit is contained in:
bors 2014-10-07 23:12:08 +00:00
commit 3b945dcae6
3 changed files with 10 additions and 7 deletions

View file

@ -37,6 +37,7 @@ fn syntax_extension(cx: &ExtCtxt) {
assert!(i.is_some());
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) {});
}
fn main() {