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 *`recursion_limit` attribute* may be applied at the [crate] level to set the maximum depth for potentially infinitely-recursive compile-time operations like macro expansion or auto-dereference.
10
+
The *`recursion_limit`[attribute][attributes]* sets the maximum depth for potentially infinitely-recursive compile-time operations like macro expansion or auto-dereference.
11
11
12
12
> [!EXAMPLE]
13
13
> ```rust,compile_fail
@@ -37,7 +37,19 @@ The *`recursion_limit` attribute* may be applied at the [crate] level to set the
37
37
> The default recursion limit in `rustc` is 128.
38
38
39
39
r[attributes.limits.recursion_limit.syntax]
40
-
It uses the [MetaNameValueStr] syntax to specify the recursion depth.
40
+
The `recursion_limit` attribute uses the [MetaNameValueStr] syntax to specify the recursion depth. The value in the string must be a non-negative integer.
0 commit comments