diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-27 09:07:05 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-27 12:53:02 -0700 |
| commit | ecdb19cc98e8a6272b288e7c9e12c7de03110701 (patch) | |
| tree | 9e9937a9d6de172d8bc79f79e5d31d93f8d7ee51 | |
| parent | 2f8ee08f6660dfdd397befba5dbed6e93d4ebb2b (diff) | |
| parent | 0b8bd6f6672739ca874b4d9fd8122dc30610cd26 (diff) | |
| download | rust-ecdb19cc98e8a6272b288e7c9e12c7de03110701.tar.gz rust-ecdb19cc98e8a6272b288e7c9e12c7de03110701.zip | |
rollup merge of #18257 : globin/master
| -rw-r--r-- | src/doc/guide-plugin.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/guide-plugin.md b/src/doc/guide-plugin.md index 83a5697f75a..1145235c5f8 100644 --- a/src/doc/guide-plugin.md +++ b/src/doc/guide-plugin.md @@ -151,8 +151,7 @@ higher-level syntax elements like expressions: fn expand_foo(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree]) -> Box<MacResult+'static> { - let mut parser = - parse::new_parser_from_tts(cx.parse_sess(), cx.cfg(), args.to_slice()) + let mut parser = cx.new_parser_from_tts(args); let expr: P<Expr> = parser.parse_expr(); ``` |
