]> git.lizzy.rs Git - rust.git/commitdiff
Add a FIXME to collector
authorvarkor <github@varkor.com>
Wed, 17 Apr 2019 22:12:53 +0000 (23:12 +0100)
committervarkor <github@varkor.com>
Wed, 17 Apr 2019 23:30:50 +0000 (00:30 +0100)
src/librustc_mir/monomorphize/collector.rs

index 1815c53aa126f45c091c2cbbd45f8d356c54f0f8..78696da0470e741edcb7ff74c2faf56641c1b48d 100644 (file)
@@ -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