Commit Graph

2551 Commits

Author SHA1 Message Date
Jieyou Xu 5fb6b8e48f
rustc-dev-guide: document `needs-crate-type` 2025-04-10 12:52:08 +08:00
timesince f34fa18b01
Remove redundant words 2025-04-09 18:46:50 +08:00
Tshepang Mbambo e76ab78d1d
improve flow 2025-04-07 06:42:37 +02:00
The rustc-dev-guide Cronjob Bot 216eb512fb Merge from rustc 2025-04-07 04:12:22 +00:00
Levi Zim 4188afe2e7
Fix deadlink in libs-and-metadata.md 2025-04-06 20:05:03 +08:00
binarycat 7fda61b116 add some links about the rustdoc-gui test suite 2025-04-03 15:09:11 -05:00
bors 20d0bf9f27 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 8f4357e7a2 compiletest: Require `//~` annotations even if `error-pattern` is specified 2025-04-03 11:08:55 +03:00
Tshepang Mbambo a90cb7416c
test directive can appear anywhere in the file 2025-04-03 02:04:49 +02:00
Jieyou Xu 64527fa438
Merge from rustc 2025-04-02 23:26:35 +08:00
clubby789 fcb6370406 Fix partial clone link 2025-03-30 13:21:01 +01:00
Tshepang Mbambo 01bbdec63c
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) fdca2d3605
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 6c1077e05d mention that know-bug test directive takes arguments 2025-03-29 20:02:01 +02:00
Vadim Petrochenkov 628eb7064d compiletest: Support matching diagnostics on lines below 2025-03-29 13:30:20 +03:00
Samuel Tardieu f1a4e592db Fix trivial typo of `BoundVariableKind` 2025-03-28 21:04:21 +01:00
Santiago Pastorino a480687c6c
Fix code generation link 2025-03-28 12:38:32 -03:00
mejrs 9745529523 Delete from_method from rustc_on_unimplemented documentation 2025-03-27 18:32:48 +01:00
Vadim Petrochenkov 2e81955d9c compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
Tshepang Mbambo 55e47b61f5
typo 2025-03-24 10:41:19 +02:00
Tshepang Mbambo 07e905fbe6
add needed break 2025-03-24 10:40:03 +02:00
许杰友 Jieyou Xu (Joe) 354463193d
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 6f9680da7a doc: fix reference to #create-a-configtoml 2025-03-23 12:38:46 +08:00
Jieyou Xu b7fc809e0b
Stub out codegen backend test pages 2025-03-21 16:48:58 +08:00
Jieyou Xu 8c3302aa5f
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 b5522c1f58 Update `ParamEnv` section for `TypingEnv` changes 2025-03-20 17:30:22 +00:00
Vadim Petrochenkov c95537b30a
Merge pull request #2199 from sagudev/patch-1
Fix rib example
2025-03-20 15:26:12 +03:00
许杰友 Jieyou Xu (Joe) 047ccc0a28
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 0da80bbea1
Disambiguate between wg-llvm and icebreakers-llvm in rustc-dev-guide 2025-03-20 12:40:51 +08:00
Tshepang Mbambo 86aa63456e
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
Matthias Krüger 7d4c53d816
Rollup merge of #138655 - Kobzol:rdg-sync, r=jieyouxu
rustc-dev-guide sync

r? `@jieyouxu`
2025-03-19 08:17:15 +01:00
binarycat 59f11cdfe5 update filename in link 2025-03-18 13:29:14 -05:00
binarycat 871280d6df normalize link titles 2025-03-18 13:25:39 -05:00
binarycat 2e1c4999c8 clean up wording/grammar and mention double quotes 2025-03-18 13:23:37 -05:00
binarycat 174678da35 rename htmldocck.md -> rustdoc-test-suite.md 2025-03-18 13:21:15 -05:00
binarycat 72aa06dff1 rustdoc test suite: clean up wording and intro 2025-03-18 13:19:33 -05:00
binarycat f248d2f57c htmldocck: expand limitations and mention compiletest directives 2025-03-18 13:10:26 -05:00
binarycat 8b501562a8 add htmldocck.md to SUMMARY.md 2025-03-18 12:10:43 -05:00
binarycat f00643aa1c add new section on the `rustdoc` test suite 2025-03-18 12:04:47 -05:00
Jakub Beránek 1bcd02da96
Add Fuchsia ping group page 2025-03-18 16:22:57 +01:00
Jakub Beránek ba77a8030b
Reorder RfL tests page to move the "what if it breaks" section to the top 2025-03-18 16:17:59 +01:00
Jakub Beránek db56758b57
Add Fuchsia ping group notice 2025-03-18 16:16:28 +01:00
许杰友 Jieyou Xu (Joe) c3b9e8ae0a
Merge pull request #2268 from xizheyin/issue-137421
Add issue link for explaining that why rustc_private linker fails
2025-03-18 22:44:16 +08:00
xizheyin e0d9704841 Add chapter Remarks on perma-unstable features
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-18 20:49:20 +08:00
Jieyou Xu af667b8696
Merge from rustc 2025-03-18 12:08:38 +08:00
Matthias Krüger 7ceeee7ca4
Rollup merge of #138533 - Kobzol:try-job-auto-tests, r=marcoieni
Only use `DIST_TRY_BUILD` for try jobs that were not selected explicitly

Some CI jobs (x64 Linux, ARM64 Linux and x64 MSVC) use the `opt-dist` tool to build an optimized toolchain using PGO and BOLT. When performing a default try build for x64 Linux, in most cases we want to run perf. on that artifact. To reduce the latency of this common use-case, `opt-dist` skips building several components not needed for perf., and it also skips running post-optimization tests, when it detects that the job is executed as a try job (not a merge/auto job).

This is useful, but it also means that if you *want* to run the tests, you had to go to `jobs.yml` and manually comment this environment variable, create a WIP commit, do a try build, and then remove the WIP commit, which is annoying (in the similar way that modifying what gets run in try builds was annoying before we had the `try-job` annotations).

I thought that we could introduce some additional PR description marker like `try-job-run-tests`, but it's hard to discover that such things exist.

Instead, I think that there's a much simpler heuristic for determining whether `DIST_TRY_BUILD` should be used (that I implemented in this PR):
- If you do just ``@bors` try`, without any custom try jobs selected, `DIST_TRY_BUILD` will be activated, to finish the build as fast as possible.
- If you specify any custom try jobs, you are most likely doing experiments and you want to see if tests pass and everything builds as it should. The `DIST_TRY_BUILD` variable will thus *not* be set in this case.

In this way, if you want to run dist tests, you can just add the `try-job: dist-x86_64-linux` line to the PR description, and you don't need to create any WIP commits.

r? `@marcoieni`
2025-03-17 22:49:06 +01:00
bit-aloo e4ddc21c8a
replace config.toml to bootstrap.toml in src:doc:rustc-dev-guide 2025-03-17 12:56:44 +05:30
jyn bfda715ef4 expand ${workspaceFolder} in sample vim config 2025-03-16 21:06:18 -04:00
Jakub Beránek f6940a6e7c Add a note to rustc-dev-guide 2025-03-16 20:42:37 +01:00
Yang Lin 832299550c Following commit 401dd84 in the Rust project
(https://github.com/rust-lang/rust),
`ErrorGuaranteed` was replaced by fatal errors.
As a result, `tcx.analysis()` now aborts directly
instead of returning an error guard.
To accommodate this change, this update replaces
`tcx.analysis()` with `typeck()`
to perform type checking in the example.
2025-03-16 23:43:17 +08:00