rustc: make ppaux' print macro use only one closure.
This commit is contained in:
parent
27ddf2cec8
commit
387ea61ec1
@ -252,8 +252,11 @@ macro_rules! print_inner {
|
||||
};
|
||||
}
|
||||
macro_rules! print {
|
||||
( $cx:expr $(, $kind:ident $data:tt)+ ) => {
|
||||
Ok(())$(.and_then(|_| print_inner!($cx, $kind $data)))+
|
||||
( $cx:expr, $($kind:ident $data:tt),+ ) => {
|
||||
(|| -> fmt::Result {
|
||||
$(print_inner!($cx, $kind $data)?;)+
|
||||
Ok(())
|
||||
})()
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user