Skip to content

Commit d8fb884

Browse files
committed
Move bit about what's ignored to admonition
It's a bit unclear whether we want to guarantee that duplicates are ignored. Let's move the description of that behavior into the admonition.
1 parent 1563bab commit d8fb884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ The `test` attribute may only be applied to [free functions] that are monomorphi
3535
> * `Result<T, E> where T: Termination, E: Debug`
3636
3737
r[attributes.testing.test.duplicates]
38-
Only the first instance of `test` on an function is honored. Subsequent `test` attributes are ignored.
38+
Only the first instance of `test` on a function is honored.
3939
4040
> [!NOTE]
41-
> `rustc` currently warns on duplicate `test` attributes.
41+
> Subsequent `test` attributes are currently ignored and `rustc` warns about these.
4242
4343
<!-- TODO: This is a minor lie. Currently rustc warns that duplicates are ignored, but it then generates multiple test entries with the same name. I would vote for rejecting this in the future. -->
4444

0 commit comments

Comments
 (0)