diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-10-14 17:52:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-14 17:52:35 -0700 |
| commit | 6d28ed1ae6c3f44f03e30e4884d6701e36744246 (patch) | |
| tree | a0d427b499474c674bec40a57bb905ddbc64556c /src/libsyntax_ext | |
| parent | a9a4d4033d3d5b4d8ad2593088196114f7254eda (diff) | |
| parent | 18b48bf4b9158611cd77bd5fae123a5fa3f052a5 (diff) | |
| download | rust-6d28ed1ae6c3f44f03e30e4884d6701e36744246.tar.gz rust-6d28ed1ae6c3f44f03e30e4884d6701e36744246.zip | |
Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov
Remove `Option` from `TokenStream` A code simplification. r? @petrochenkov
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/plugin_macro_defs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/plugin_macro_defs.rs b/src/libsyntax_ext/plugin_macro_defs.rs index 315babceae3..62c7e188eba 100644 --- a/src/libsyntax_ext/plugin_macro_defs.rs +++ b/src/libsyntax_ext/plugin_macro_defs.rs @@ -20,7 +20,7 @@ fn plugin_macro_def(name: Name, span: Span) -> P<Item> { attr::mk_word_item(Ident::new(sym::rustc_builtin_macro, span))); let parens: TreeAndJoint = TokenTree::Delimited( - DelimSpan::from_single(span), token::Paren, TokenStream::empty() + DelimSpan::from_single(span), token::Paren, TokenStream::default() ).into(); let trees = vec![parens.clone(), TokenTree::token(token::FatArrow, span).into(), parens]; |
