Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fc2d4fe
Auto merge of #146683 - clarfonthey:safe-intrinsics, r=RalfJung,Amanieu
bors Sep 22, 2025
58f2812
Rollup merge of #146896 - tshepang:rdg-sync, r=tshepang
matthiaskrgr Sep 23, 2025
83a8d08
Rollup merge of #146898 - rustbot:docs-update, r=ehuss
matthiaskrgr Sep 23, 2025
7da95cc
Rollup merge of #146899 - Teapot4195:issue-146847-fix, r=nnethercote
matthiaskrgr Sep 23, 2025
0607d69
Rollup merge of #146904 - peter-lyons-kehl:140368_data_ptr_const_fn, …
matthiaskrgr Sep 23, 2025
a540f3d
Rollup merge of #146907 - cyrgani:146537-test, r=nnethercote
matthiaskrgr Sep 23, 2025
8ad9291
Auto merge of #146946 - matthiaskrgr:rollup-fsmrqez, r=matthiaskrgr
bors Sep 24, 2025
c957826
Auto merge of #146338 - CrooseGit:dev/reucru01/AArch64-enable-GCS, r=…
bors Sep 24, 2025
84e0783
Auto merge of #146697 - cjgillot:invalidate-patch, r=lcnr
bors Sep 25, 2025
cf90eba
Auto merge of #146919 - lcnr:yeet-fast-path, r=fee1-dead
bors Sep 25, 2025
27a89d7
Auto merge of #145882 - m-ou-se:format-args-extend-1-arg, r=petrochenkov
bors Sep 26, 2025
16b7836
Auto merge of #146595 - Shourya742:make-cargo-test-work-for-self-test…
bors Sep 26, 2025
19aad28
Auto merge of #146927 - Kobzol:install-clif, r=jieyouxu
bors Sep 27, 2025
cbc8250
Auto merge of #147002 - notriddle:stringdex3, r=GuillaumeGomez
bors Sep 28, 2025
44ed278
Document range syntax on the rustc dev guide
pvdrz Sep 21, 2025
d17881e
Rollup merge of #141839 - tshepang:ease-lsp-use, r=Mark-Simulacrum,fe…
Zalathar Oct 2, 2025
bcd14eb
Rollup merge of #146166 - ferrocene:pvdrz/edition-range, r=fmease,jie…
Zalathar Oct 2, 2025
73180f9
Rollup merge of #147259 - Zalathar:node-in-context, r=nnethercote
Zalathar Oct 2, 2025
97a2253
Rollup merge of #147263 - jieyouxu:disable-auto-backport-nominations,…
Zalathar Oct 2, 2025
32581c2
Rollup merge of #147268 - davidtwco:add-arm-maintainers-to-targets, r…
Zalathar Oct 2, 2025
b9cf874
Rollup merge of #147270 - GuillaumeGomez:move-cfg-code, r=lolbinarycat
Zalathar Oct 2, 2025
207e0db
Auto merge of #147282 - Zalathar:rollup-7wz3k9r, r=Zalathar
bors Oct 3, 2025
c49ceb7
Auto merge of #145898 - lolbinarycat:rustdoc-search-trait-parent, r=G…
bors Oct 3, 2025
11550f2
Auto merge of #142771 - dianqk:mir-stmt-debuginfo, r=cjgillot
bors Oct 3, 2025
ea0a927
Auto merge of #143613 - Enselic:panic-abort-uwtables, r=petrochenkov
bors Oct 3, 2025
b8d3c3c
Auto merge of #147375 - folkertdev:power-align-union, r=RalfJung
bors Oct 5, 2025
ebcfb43
Prepare for merging from rust-lang/rust
invalid-email-address Oct 6, 2025
321fef3
Merge ref '4fa824bb7831' from rust-lang/rust
invalid-email-address Oct 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9f32ccf35fb877270bc44a86a126440f04d676d0
4fa824bb78318a3cba8c7339d5754b4909922547
14 changes: 14 additions & 0 deletions src/tests/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,20 @@ Consider writing the test as a proper incremental test instead.

</div>

#### The edition directive

The `//@ edition` directive can take an exact edition, a bounded half-open range of editions or a left-bounded half-open range of editions, this affects which edition is used by `./x test` to run the test. For example:

- A test with the `//@ edition: 2018` directive will only run under the 2018 edition.
- A test with the `//@ edition: 2015..2021` directive can be run under both the 2015 and 2018 editions. However, CI will only run the test with the lowest edition possible (2015 in this case).
- A test with the `//@ edition: 2018..` directive will run under any edition greater or equal than 2018. However, CI will only run the test with the lowest edition possible (2018 in this case).

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`:

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

### Rustdoc

| Directive | Explanation | Supported test suites | Possible values |
Expand Down