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/proc_macro_server.rs | |
| 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/proc_macro_server.rs')
| -rw-r--r-- | src/libsyntax/ext/proc_macro_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/proc_macro_server.rs b/src/libsyntax/ext/proc_macro_server.rs index 65037c4a0b8..08142ba6c58 100644 --- a/src/libsyntax/ext/proc_macro_server.rs +++ b/src/libsyntax/ext/proc_macro_server.rs @@ -394,7 +394,7 @@ impl server::Types for Rustc<'_> { impl server::TokenStream for Rustc<'_> { fn new(&mut self) -> Self::TokenStream { - TokenStream::empty() + TokenStream::default() } fn is_empty(&mut self, stream: &Self::TokenStream) -> bool { stream.is_empty() |
