Skip to content

Commit 7d0c3c8

Browse files
committed
Minor update of recursion_limit
More closely align with the template, and some minor word tweaks.
1 parent 4b528d2 commit 7d0c3c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/attributes/limits.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ r[attributes.limits]
33

44
The following [attributes] affect compile-time limits.
55

6+
<!-- template:attributes -->
67
r[attributes.limits.recursion_limit]
78
## The `recursion_limit` attribute
89

@@ -43,13 +44,13 @@ r[attributes.limits.recursion_limit.allowed-positions]
4344
The `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
4849
r[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 -->
5556
r[attributes.limits.type_length_limit]

0 commit comments

Comments
 (0)