Skip to content

Commit 8438647

Browse files
committed
Move attributes.testing.test.enabled
Moving to follow the attribute template.
1 parent 98baa62 commit 8438647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/attributes/testing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ r[attributes.testing.test]
1010
## The `test` attribute
1111

1212
r[attributes.testing.test.intro]
13-
14-
r[attributes.testing.test.enabled]
15-
These functions are only compiled when in test mode.
1613
The *`test` [attribute][attributes]* marks a function to be executed as a test.
1714

1815
> [!EXAMPLE]
@@ -45,6 +42,9 @@ Only the first instance of `test` on an function is honored. Subsequent `test` a
4542
4643
<!-- 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. -->
4744
45+
r[attributes.testing.test.enabled]
46+
These functions are only compiled when in test mode.
47+
4848
> [!NOTE]
4949
> The test mode is enabled by passing the `--test` argument to `rustc` or using `cargo test`.
5050

0 commit comments

Comments
 (0)