auto merge of #17409 : farcaller/rust/patch-1, r=huonw

Parser.parse_method now has a second argument, I assume ast::Inherited is the correct visibility in this case.
This commit is contained in:
bors 2014-09-29 10:08:04 +00:00
commit 40b86baca0
2 changed files with 8 additions and 2 deletions

View file

@ -35,6 +35,8 @@ fn syntax_extension(cx: &ExtCtxt) {
let i: Option<P<syntax::ast::Item>> = quote_item!(cx, #[deriving(Eq)] struct Foo; );
assert!(i.is_some());
let _j: P<syntax::ast::Method> = quote_method!(cx, fn foo(&self) {});
}
fn main() {