Add a useful comment.

This commit is contained in:
Nicholas Nethercote 2023-07-18 09:45:21 +10:00
parent b2c3948892
commit 017c0b5a01

View File

@ -56,6 +56,8 @@ impl<'tcx> MonoItem<'tcx> {
}
}
// Note: if you change how item size estimates work, you might need to
// change NON_INCR_MIN_CGU_SIZE as well.
pub fn size_estimate(&self, tcx: TyCtxt<'tcx>) -> usize {
match *self {
MonoItem::Fn(instance) => {