From 3b7dd97e263ded4f965af87ded9db3831c1c50ac Mon Sep 17 00:00:00 2001 From: varkor Date: Wed, 17 Apr 2019 23:12:53 +0100 Subject: [PATCH] Add a FIXME to collector --- src/librustc_mir/monomorphize/collector.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_mir/monomorphize/collector.rs b/src/librustc_mir/monomorphize/collector.rs index 1815c53aa126f..78696da0470e7 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