Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a FIXME to collector
  • Loading branch information
varkor committed Apr 17, 2019
1 parent a759e2c commit 3b7dd97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_mir/monomorphize/collector.rs
Expand Up @@ -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
Expand Down

0 comments on commit 3b7dd97

Please sign in to comment.