[go: nahoru, domu]

Skip to content

Commit

Permalink
Add a useful comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Jul 18, 2023
1 parent b2c3948 commit 017c0b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_middle/src/mir/mono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 017c0b5

Please sign in to comment.