Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov
Remove `Option` from `TokenStream` A code simplification. r? @petrochenkov
This commit is contained in:
commit
6d28ed1ae6
10 changed files with 106 additions and 150 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue