diff options
| author | bors <bors@rust-lang.org> | 2014-09-29 10:08:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-29 10:08:04 +0000 |
| commit | 40b86baca0e7e84ece58c2b5f6161371bf672a93 (patch) | |
| tree | 39621bffd02e33603a518083ab5d187689aedf9b /src/libsyntax | |
| parent | eb816eee0f1803f03fbf046a26a1920659c14d82 (diff) | |
| parent | 75d49c8203405ab0af7a2b8b8698af02868fdbc2 (diff) | |
| download | rust-40b86baca0e7e84ece58c2b5f6161371bf672a93.tar.gz rust-40b86baca0e7e84ece58c2b5f6161371bf672a93.zip | |
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.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index aa2a23dd276..0503c1e8cc2 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -464,9 +464,13 @@ pub fn expand_quote_method(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> Box<base::MacResult+'static> { - let e_param_colons = cx.expr_none(sp); + 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_param_colons), tts); + vec!(e_attrs, e_visibility), tts); base::MacExpr::new(expanded) } |
