File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ r[attributes.limits]
33
44The following [ attributes] affect compile-time limits.
55
6+ <!-- template:attributes -->
67r[ attributes.limits.recursion_limit]
78## The ` recursion_limit ` attribute
89
@@ -43,13 +44,13 @@ r[attributes.limits.recursion_limit.allowed-positions]
4344The `recursion_limit` attribute may only be applied to the crate root.
4445
4546> [!NOTE]
46- > `rustc` currently warns in other positions, but this may be rejected in the future.
47+ > `rustc` ignores use in other positions but lints against it. This may become an error in the future.
4748
4849r[attributes.limits.recursion_limit.duplicates]
49- Only the first instance of `recursion_limit` on an item is honored. Subsequent `recursion_limit` attributes are ignored .
50+ Only the first use of `recursion_limit` on an item has effect .
5051
5152> [!NOTE]
52- > `rustc` currently warns on following duplicate `recursion_limit` attributes . This may become an error in the future.
53+ > `rustc` lints against any use following the first . This may become an error in the future.
5354
5455<!-- template:attributes -->
5556r[attributes.limits.type_length_limit]
You can’t perform that action at this time.
0 commit comments