Commit graph

2803 commits

Author SHA1 Message Date
onur-ozkan
78cb4538ee document include in bootstrap.example.toml
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15 11:33:06 +03:00
onur-ozkan
89e3befe63 document config extensions
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-15 11:32:56 +03:00
Chris Denton
423e7b8286
Rollup merge of #139618 - petrochenkov:virsugg, r=jieyouxu
compiletest: Make `SUGGESTION` annotations viral

If one of them is expected in a test file, then others should be annotated as well, in the same way as with `HELP`s and `NOTE`s.
This doesn't require much of an additional annotation burden, but simplifies the rules.

r? ```@jieyouxu```
2025-04-13 11:48:17 +00:00
Jakub Beránek
394610b6d6 Document that opt-dist requires metrics to be enabled 2025-04-11 21:30:10 +02:00
bors
71b68da1bd Auto merge of #139578 - ferrocene:pa-compiletest-edition, r=jieyouxu
Fix breakage when running compiletest with `--test-args=--edition=2015`

Compiletest has an `--edition` flag to change the default edition tests are run with. Unfortunately no test suite successfully executes when that flag is passed. If the edition is set to something greater than 2015 the breakage is expected, since the test suite currently supports only edition 2015 (Ferrous Systems will open an MCP about fixing that soonish). Surprisingly, the test suite is also broken if `--edition=2015` is passed to compiletest. This PR focuses on fixing the latter.

This PR fixes the two categories of failures happening when `--edition=2015` is passed:

* Some edition-specific tests set their edition through `//@ compile-flags` instead of `//@ edition`. Compiletest doesn't parse the compile flags, so it would see no `//@ edition` and add another `--edition` flag, leading to a rustc error.
* Compiletest would add the edition after `//@ compile-flags`, while some tests depend on flags passed to `//@ compile-flags` being the last flags in the rustc invocation.

Note that for the first category, I opted to manually go and replace all `//@ compile-flags` setting an edition with an explicit `//@ edition`. We could've changed compiletest to instead check whether an edition was set in `//@ compile-flags`, but I thought it was better to enforce a consistent way to set the edition in tests.

I also added the edition to the stamp, so that changing `--edition` results in tests being re-executed.

r? `@jieyouxu`
2025-04-11 10:53:45 +00:00
Vadim Petrochenkov
ad72ba2e2c dev-guide: Document dont-require-annotations
and its use cases in more detail
2025-04-10 23:48:57 +03:00
Pietro Albini
33794fd196
mention --edition restrictions in rustc-dev-guide 2025-04-10 12:34:57 +02:00
Jieyou Xu
5fe7712a10
rustc-dev-guide: document needs-crate-type 2025-04-10 12:52:08 +08:00
timesince
069fd02588
Remove redundant words 2025-04-09 18:46:50 +08:00
Tshepang Mbambo
eb676fd2da
improve flow 2025-04-07 06:42:37 +02:00
The rustc-dev-guide Cronjob Bot
5a28e1e8de Merge from rustc 2025-04-07 04:12:22 +00:00
The rustc-dev-guide Cronjob Bot
f74e85e2c2 Preparing for merge from rustc 2025-04-07 04:06:33 +00:00
Levi Zim
49ea23232c
Fix deadlink in libs-and-metadata.md 2025-04-06 20:05:03 +08:00
Gábor Szabó
fb6af25b2b
Update book.toml fix the authors field
See https://rust-lang.github.io/mdBook/format/configuration/general.html#general-metadata
2025-04-04 08:34:08 +03:00
binarycat
ceba464c69 add some links about the rustdoc-gui test suite 2025-04-03 15:09:11 -05:00
bors
82eb03ec62 Auto merge of #139301 - matthiaskrgr:rollup-sa6ali8, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #139080 (Experimental feature gate for `super let`)
 - #139145 (slice: Remove some uses of unsafe in first/last chunk methods)
 - #139149 (unstable book: document import_trait_associated_functions)
 - #139273 (Apply requested API changes to `cell_update`)
 - #139282 (rustdoc: make settings checkboxes always square)
 - #139283 (Rustc dev guide subtree update)
 - #139294 (Fix the `f16`/`f128` feature gates on integer literals)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-03 15:31:20 +00:00
Vadim Petrochenkov
4d64990690 compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
Tshepang Mbambo
fddb425ed8
test directive can appear anywhere in the file 2025-04-03 02:04:49 +02:00
Jieyou Xu
cae5d8a81c
Merge from rustc 2025-04-02 23:26:35 +08:00
Jieyou Xu
05d5fdadbb
Preparing for merge from rustc 2025-04-02 23:26:26 +08:00
clubby789
ebae4c65a1 Fix partial clone link 2025-03-30 13:21:01 +01:00
Tshepang Mbambo
9302f4d94f add rustfmt settings file 2025-03-30 00:31:44 +02:00
Tshepang Mbambo
471a2a8b87 example assumes a static exists
This was removed, likely by mistake, during a refactor.
2025-03-30 00:16:39 +02:00
Tshepang Mbambo
1faf7ff9a4 update rustc-{driver,interface} examples 2025-03-29 23:52:57 +02:00
Tshepang Mbambo
9448b79201
Merge pull request #2289 from y1lan/fix_compiler_err_of_examples
Fix compile errors of all the examples
2025-03-29 23:10:13 +02:00
许杰友 Jieyou Xu (Joe)
70cbe19fe0
Merge pull request #2288 from rust-lang/tshepang-known-bug-takes-args
mention that known-bug test directive takes arguments
2025-03-30 02:31:33 +08:00
Tshepang Mbambo
865a5a7e16 mention that know-bug test directive takes arguments 2025-03-29 20:02:01 +02:00
Vadim Petrochenkov
cf451f0830 compiletest: Support matching diagnostics on lines below 2025-03-29 13:30:20 +03:00
Samuel Tardieu
5952f01712 Fix trivial typo of BoundVariableKind 2025-03-28 21:04:21 +01:00
Santiago Pastorino
cdbb219f83
Fix code generation link 2025-03-28 12:38:32 -03:00
mejrs
a9a21bde85 Delete from_method from rustc_on_unimplemented documentation 2025-03-27 18:32:48 +01:00
Vadim Petrochenkov
8d5109aa6e compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
Tshepang Mbambo
62ec34bf5b
typo 2025-03-24 10:41:19 +02:00
Tshepang Mbambo
de8b6beac8
add needed break 2025-03-24 10:40:03 +02:00
许杰友 Jieyou Xu (Joe)
b34181ad56
Merge pull request #2299 from jieyouxu/test-jobs-reorg
Slightly reorganize ecosystem tests, stub out codegen backend test pages
2025-03-24 16:29:25 +08:00
Chiichen
ee6a159826 doc: fix reference to #create-a-configtoml 2025-03-23 12:38:46 +08:00
Jieyou Xu
d58ccd86c2
Stub out codegen backend test pages 2025-03-21 16:48:58 +08:00
Jieyou Xu
957aacd036
Move Fuchsia and RfL under ecosystem-test-jobs/ folder
Includes redirects to avoid breaking existing links.
2025-03-21 16:48:57 +08:00
Boxy
2de68a1bb1 Update ParamEnv section for TypingEnv changes 2025-03-20 17:30:22 +00:00
Vadim Petrochenkov
904ec4daed
Merge pull request #2199 from sagudev/patch-1
Fix rib example
2025-03-20 15:26:12 +03:00
许杰友 Jieyou Xu (Joe)
594eed922d
Merge pull request #2295 from lolbinarycat/rustdoc-htmldocck
add new section on the `rustdoc` test suite
2025-03-20 14:49:50 +08:00
Jieyou Xu
496c251d17
Disambiguate between wg-llvm and icebreakers-llvm in rustc-dev-guide 2025-03-20 12:40:51 +08:00
Tshepang Mbambo
2daaf49381
use correct code block markers
This makes this command pass

  mdbook test --chapter "Remarks on perma-unstable features"
2025-03-19 18:06:50 +02:00
Jakub Beránek
88478aca86
Set linkcheck in ci.yml 2025-03-19 17:25:07 +08:00
Matthias Krüger
67d3e5e53f
Rollup merge of #138655 - Kobzol:rdg-sync, r=jieyouxu
rustc-dev-guide sync

r? `@jieyouxu`
2025-03-19 08:17:15 +01:00
binarycat
eeda54f110 update filename in link 2025-03-18 13:29:14 -05:00
binarycat
7f29b47410 normalize link titles 2025-03-18 13:25:39 -05:00
binarycat
40b9be0c45 clean up wording/grammar and mention double quotes 2025-03-18 13:23:37 -05:00
binarycat
1081d98cf6 rename htmldocck.md -> rustdoc-test-suite.md 2025-03-18 13:21:15 -05:00
binarycat
6893f0ac7a rustdoc test suite: clean up wording and intro 2025-03-18 13:19:33 -05:00