File tree 1 file changed +1
-5
lines changed
compiler/rustc_ast_pretty/src
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,6 @@ struct BufEntry {
244
244
// forgotten will trigger a panic in `drop`. (Closing a box more than once
245
245
// isn't possible because `BoxMarker` doesn't implement `Copy` or `Clone`.)
246
246
//
247
- // FIXME(nnethercote): the panic in `drop` is currently disabled because a few
248
- // places fail to close their boxes. It can be enabled once they are fixed.
249
- //
250
247
// Note: it would be better to make open/close mismatching impossible and avoid
251
248
// the need for this marker type altogether by having functions like
252
249
// `with_ibox` that open a box, call a closure, and then close the box. That
@@ -261,8 +258,7 @@ impl !Copy for BoxMarker {}
261
258
262
259
impl Drop for BoxMarker {
263
260
fn drop ( & mut self ) {
264
- // FIXME(nnethercote): enable once the bad cases are fixed
265
- //panic!("BoxMarker not ended with `Printer::end()`");
261
+ panic ! ( "BoxMarker not ended with `Printer::end()`" ) ;
266
262
}
267
263
}
268
264
You can’t perform that action at this time.
0 commit comments