about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-18 09:45:21 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-19 07:23:11 +1000
commit017c0b5a015e79625034ff47f199095cdf0af6b6 (patch)
tree9361e2bc29110e4595a5554f5e2be7d180d6d33d
parentb2c3948892558ca1ede7d3c9b96e1970d3b688fc (diff)
downloadrust-017c0b5a015e79625034ff47f199095cdf0af6b6.tar.gz
rust-017c0b5a015e79625034ff47f199095cdf0af6b6.zip
Add a useful comment.
-rw-r--r--compiler/rustc_middle/src/mir/mono.rs2
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) => {