@@ -25,7 +25,6 @@ use crate::hir::print::Nested;
25
25
use crate :: util:: nodemap:: FxHashMap ;
26
26
use crate :: util:: common:: time;
27
27
28
- use std:: io;
29
28
use std:: result:: Result :: Err ;
30
29
use crate :: ty:: query:: Providers ;
31
30
@@ -1187,7 +1186,7 @@ pub fn map_crate<'hir>(sess: &crate::session::Session,
1187
1186
/// Identical to the `PpAnn` implementation for `hir::Crate`,
1188
1187
/// except it avoids creating a dependency on the whole crate.
1189
1188
impl < ' hir > print:: PpAnn for Map < ' hir > {
1190
- fn nested ( & self , state : & mut print:: State < ' _ > , nested : print:: Nested ) -> io :: Result < ( ) > {
1189
+ fn nested ( & self , state : & mut print:: State < ' _ > , nested : print:: Nested ) {
1191
1190
match nested {
1192
1191
Nested :: Item ( id) => state. print_item ( self . expect_item ( id. id ) ) ,
1193
1192
Nested :: TraitItem ( id) => state. print_trait_item ( self . trait_item ( id) ) ,
@@ -1199,7 +1198,7 @@ impl<'hir> print::PpAnn for Map<'hir> {
1199
1198
}
1200
1199
1201
1200
impl < ' a > print:: State < ' a > {
1202
- pub fn print_node ( & mut self , node : Node < ' _ > ) -> io :: Result < ( ) > {
1201
+ pub fn print_node ( & mut self , node : Node < ' _ > ) {
1203
1202
match node {
1204
1203
Node :: Item ( a) => self . print_item ( & a) ,
1205
1204
Node :: ForeignItem ( a) => self . print_foreign_item ( & a) ,
@@ -1219,9 +1218,9 @@ impl<'a> print::State<'a> {
1219
1218
use syntax:: print:: pprust:: PrintState ;
1220
1219
1221
1220
// containing cbox, will be closed by print-block at }
1222
- self . cbox ( print:: indent_unit) ? ;
1221
+ self . cbox ( print:: indent_unit) ;
1223
1222
// head-ibox, will be closed by print-block after {
1224
- self . ibox ( 0 ) ? ;
1223
+ self . ibox ( 0 ) ;
1225
1224
self . print_block ( & a)
1226
1225
}
1227
1226
Node :: Lifetime ( a) => self . print_lifetime ( & a) ,
0 commit comments