diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-18 09:45:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-19 07:23:11 +1000 |
| commit | 017c0b5a015e79625034ff47f199095cdf0af6b6 (patch) | |
| tree | 9361e2bc29110e4595a5554f5e2be7d180d6d33d | |
| parent | b2c3948892558ca1ede7d3c9b96e1970d3b688fc (diff) | |
| download | rust-017c0b5a015e79625034ff47f199095cdf0af6b6.tar.gz rust-017c0b5a015e79625034ff47f199095cdf0af6b6.zip | |
Add a useful comment.
| -rw-r--r-- | compiler/rustc_middle/src/mir/mono.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/mono.rs b/compiler/rustc_middle/src/mir/mono.rs index d217e1c5f8f..f4133dfbc95 100644 --- a/compiler/rustc_middle/src/mir/mono.rs +++ b/compiler/rustc_middle/src/mir/mono.rs @@ -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) => { |
