You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *`type_length_limit` attribute* limits the maximum number of type substitutions made when constructing a concrete type during monomorphization.
47
+
The *`type_length_limit`[attribute][attributes]* limits the maximum number of type substitutions made when constructing a concrete type during monomorphization.
48
48
49
49
> [!NOTE]
50
50
> In `rustc` this limit is only enforced when the nightly `-Zenforce-type-length-limit` flag is active.
@@ -67,7 +67,19 @@ The *`type_length_limit` attribute* limits the maximum number of type substituti
67
67
> The default in `rustc` is 1048576.
68
68
69
69
r[attributes.limits.type_length_limit.syntax]
70
-
It is applied at the [crate] level, and uses the [MetaNameValueStr] syntax to set the limit based on the number of type substitutions.
70
+
The `type_length_limit` attribute uses the [MetaNameValueStr] syntax to set the limit. The value in the string must be a non-negative number.
0 commit comments