Skip to content

Commit 2d6f590

Browse files
committed
overlong
1 parent 98afeb8 commit 2d6f590

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/doc/rustc-dev-guide/src/tests/directives.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ Consider writing the test as a proper incremental test instead.
264264

265265
#### The edition directive
266266

267-
The `//@ edition` directive can take an exact edition, a bounded range of editions, or a left-bounded half-open range of editions.
267+
The `//@ edition` directive can take an exact edition, a bounded range of editions,
268+
or a left-bounded half-open range of editions.
268269
This affects which edition is used by `./x test` to run the test.
269270

270271
For example:
@@ -275,7 +276,9 @@ For example:
275276
- A test with the `//@ edition: 2018..` directive will run under 2018 edition or greater.
276277
However, CI will only run the test with the lowest edition in the range (which is 2018 in this example).
277278

278-
You can also force `./x test` to use a specific edition by passing the `-- --edition=` argument. However, tests with the `//@ edition` directive will clamp the value passed to the argument. For example, if we run `./x test -- --edition=2015`:
279+
You can also force `./x test` to use a specific edition by passing the `-- --edition=` argument.
280+
However, tests with the `//@ edition` directive will clamp the value passed to the argument.
281+
For example, if we run `./x test -- --edition=2015`:
279282

280283
- A test with the `//@ edition: 2018` will run with the 2018 edition.
281284
- A test with the `//@ edition: 2015..2021` will be run with the 2015 edition.

0 commit comments

Comments
 (0)