@@ -13,7 +13,7 @@ use rustc_ast::{
13
13
14
14
use crate :: pp:: Breaks :: Inconsistent ;
15
15
use crate :: pprust:: state:: fixup:: FixupContext ;
16
- use crate :: pprust:: state:: { AnnNode , BoxMarker , INDENT_UNIT , PrintState , State } ;
16
+ use crate :: pprust:: state:: { AnnNode , INDENT_UNIT , PrintState , State } ;
17
17
18
18
impl < ' a > State < ' a > {
19
19
fn print_else ( & mut self , els : Option < & ast:: Expr > ) {
@@ -540,15 +540,6 @@ impl<'a> State<'a> {
540
540
self . print_fn_params_and_ret ( fn_decl, true ) ;
541
541
self . space ( ) ;
542
542
self . print_expr ( body, FixupContext :: default ( ) ) ;
543
- // FIXME(nnethercote): this is bogus
544
- let fake_ib = BoxMarker ;
545
- self . end ( fake_ib) ; // need to close a box
546
-
547
- // A box will be closed by print_expr, but we didn't want an overall
548
- // wrapper so we closed the corresponding opening. so create an
549
- // empty box to satisfy the close.
550
- // FIXME(nnethercote): this is bogus, and `print_expr` is missing
551
- let _ib = self . ibox ( 0 ) ;
552
543
}
553
544
ast:: ExprKind :: Block ( blk, opt_label) => {
554
545
if let Some ( label) = opt_label {
0 commit comments