We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a79314 + 509c06e commit e2f0bdcCopy full SHA for e2f0bdc
src/attributes/limits.md
@@ -35,14 +35,18 @@ a!{}
35
36
## The `type_length_limit` attribute
37
38
+> **Note**: This limit is only enforced when the nightly `-Zenforce-type-length-limit` flag is active.
39
+>
40
+> For more information, see <https://github.com/rust-lang/rust/pull/127670>.
41
+
42
The *`type_length_limit` attribute* limits the maximum number of type
43
substitutions made when constructing a concrete type during monomorphization.
44
It is applied at the [crate] level, and uses the [_MetaNameValueStr_] syntax
45
to set the limit based on the number of type substitutions.
46
47
> Note: The default in `rustc` is 1048576.
48
-```rust,compile_fail
49
+```rust,ignore
50
#![type_length_limit = "4"]
51
52
fn f<T>(x: T) {}
0 commit comments