Skip to content

Commit 017c0b5

Browse files
committed
Add a useful comment.
1 parent b2c3948 commit 017c0b5

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/mono.rs

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ impl<'tcx> MonoItem<'tcx> {
5656
}
5757
}
5858

59+
// Note: if you change how item size estimates work, you might need to
60+
// change NON_INCR_MIN_CGU_SIZE as well.
5961
pub fn size_estimate(&self, tcx: TyCtxt<'tcx>) -> usize {
6062
match *self {
6163
MonoItem::Fn(instance) => {

0 commit comments

Comments
 (0)