Add a useful comment.
This commit is contained in:
parent
b2c3948892
commit
017c0b5a01
@ -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 {
|
pub fn size_estimate(&self, tcx: TyCtxt<'tcx>) -> usize {
|
||||||
match *self {
|
match *self {
|
||||||
MonoItem::Fn(instance) => {
|
MonoItem::Fn(instance) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user