-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate piles of extra semicolons from expanded code
Look at `cargo rustc --profile=check -- -Zunpretty=expanded` of the following program: use quote::quote; fn main() { let _ = quote!(1 + 1); } Before: use quote::quote; fn main() { let _ = { let mut _s = ::quote::__private::TokenStream::new(); ; ; ; ::quote::__private::parse(&mut _s, "1"); ; ::quote::__private::push_add(&mut _s); ; ::quote::__private::parse(&mut _s, "1"); ; ; ; ; _s }; } After: use quote::quote; fn main() { let _ = { let mut _s = ::quote::__private::TokenStream::new(); ::quote::__private::parse(&mut _s, "1"); ::quote::__private::push_add(&mut _s); ::quote::__private::parse(&mut _s, "1"); _s }; }
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters