mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
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 {
|
||||
match *self {
|
||||
MonoItem::Fn(instance) => {
|
||||
|
Loading…
Reference in New Issue
Block a user