Skip to content

Commit 3b7dd97

Browse files
committed
Add a FIXME to collector
1 parent a759e2c commit 3b7dd97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_mir/monomorphize/collector.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ fn check_type_length_limit<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
480480
let type_length_limit = *tcx.sess.type_length_limit.get();
481481
// We include the const length in the type length, as it's better
482482
// to be overly conservative.
483+
// FIXME(const_generics): we should instead uniformly walk through `substs`,
484+
// ignoring lifetimes.
483485
if type_length + const_length > type_length_limit {
484486
// The instance name is already known to be too long for rustc.
485487
// Show only the first and last 32 characters to avoid blasting

0 commit comments

Comments
 (0)