about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2014-08-03 17:41:58 -0700
committerSteven Fackler <sfackler@gmail.com>2014-09-23 23:49:20 -0700
commit65cca7c8b14e9c5673af4921a57c2ccbac3fc2cb (patch)
tree2a693f86b51ea3725368b408efcc25d83041b9bd /src/doc
parente520bb1b2f1667f17c3503af71273921c4fc9989 (diff)
Deprecate `#[ignore(cfg(...))]`
Replace `#[ignore(cfg(a, b))]` with `#[cfg_attr(all(a, b), ignore)]`
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/guide-testing.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md
index 6fb198fbd2b..07813855d9b 100644
--- a/src/doc/guide-testing.md
+++ b/src/doc/guide-testing.md
@@ -72,8 +72,8 @@ is not used.
 Tests that should not be run can be annotated with the `ignore`
 attribute. The existence of these tests will be noted in the test
 runner output, but the test will not be run. Tests can also be ignored
-by configuration so, for example, to ignore a test on windows you can
-write `#[ignore(cfg(target_os = "win32"))]`.
+by configuration using the `cfg_attr` attribute so, for example, to ignore a
+test on windows you can write `#[cfg_attr(windows, ignore)]`.
 
 Tests that are intended to fail can be annotated with the
 `should_fail` attribute. The test will be run, and if it causes its