about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-04-17 23:12:53 +0100
committervarkor <github@varkor.com>2019-04-18 00:30:50 +0100
commit3b7dd97e263ded4f965af87ded9db3831c1c50ac (patch)
tree3d0ba9a5f1db01463053edb405152df8670c147e
parenta759e2cc1212b4d52058b1e352ea9c92dbb9cc86 (diff)
Add a FIXME to collector
-rw-r--r--src/librustc_mir/monomorphize/collector.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_mir/monomorphize/collector.rs b/src/librustc_mir/monomorphize/collector.rs
index 1815c53aa12..78696da0470 100644
--- a/src/librustc_mir/monomorphize/collector.rs
+++ b/src/librustc_mir/monomorphize/collector.rs
@@ -480,6 +480,8 @@ fn check_type_length_limit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
     let type_length_limit = *tcx.sess.type_length_limit.get();
     // We include the const length in the type length, as it's better
     // to be overly conservative.
+    // FIXME(const_generics): we should instead uniformly walk through `substs`,
+    // ignoring lifetimes.
     if type_length + const_length > type_length_limit {
         // The instance name is already known to be too long for rustc.
         // Show only the first and last 32 characters to avoid blasting