Nicholas Nethercote
b557b97e1e
Documentation fixes.
...
Remove old references to the HIR map.
2025-04-14 09:18:15 +10:00
Chris Denton
6a7bff3d89
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
35acfcc46b
Document that `opt-dist` requires metrics to be enabled
2025-04-11 21:30:10 +02:00
bors
9f227ffb56
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
0423c7b2df
dev-guide: Document `dont-require-annotations`
...
and its use cases in more detail
2025-04-10 23:48:57 +03:00
Pietro Albini
d7631d20aa
mention --edition restrictions in rustc-dev-guide
2025-04-10 12:34:57 +02:00
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