Skip to content

Commit cbf60fb

Browse files
committed
include terminator in size estimize
1 parent 7ac8751 commit cbf60fb

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ty_utils/src

1 file changed

+1
-1
lines changed

compiler/rustc_ty_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ fn instance_def_size_estimate<'tcx>(
372372
| StatementKind::Nop
373373
)
374374
})
375-
.count()
375+
.count() + 1
376376
})
377377
.sum()
378378
}

0 commit comments

Comments
 (0)