Commit Graph

54 Commits

Author SHA1 Message Date
León Orell Valerian Liehr 290bacb73e
Flesh out sections about crashes tests and update mentions of glacier 2025-05-26 13:54:49 +02:00
Tshepang Mbambo f640f46968
typo 2025-05-24 01:38:43 +02:00
Tomasz Miąsko b82a852640 Remove mono item collection strategy override from -Zprint-mono-items
Previously `-Zprint-mono-items` would override the mono item collection
strategy. When debugging one doesn't want to change the behaviour, so
this was counter productive. Additionally, the produced behaviour was
artificial and might never arise without using the option in the first
place (`-Zprint-mono-items=eager` without `-Clink-dead-code`).  Finally,
the option was incorrectly marked as `UNTRACKED`.

Resolve those issues, by turning `-Zprint-mono-items` into a boolean
flag that prints results of mono item collection without changing the
behaviour of mono item collection.

For codegen-units test incorporate `-Zprint-mono-items` flag directly
into compiletest tool.

Test changes are mechanical. `-Zprint-mono-items=lazy` was removed
without additional changes, and `-Zprint-mono-items=eager` was turned
into `-Clink-dead-code`.  Linking dead code disables internalization, so
tests have been updated accordingly.
2025-05-09 12:19:09 +02:00
bit-aloo e4ddc21c8a
replace config.toml to bootstrap.toml in src:doc:rustc-dev-guide 2025-03-17 12:56:44 +05:30
许杰友 Jieyou Xu (Joe) 93eca2b494 Document that `rmake.rs`/`run-make-support` may not use unstable features 2025-03-07 19:09:41 +08:00
许杰友 Jieyou Xu (Joe) 6a61f6f721 rustc-dev-guide: remove mentions of legacy `Makefile` run-make infra
And remove outdated requirements to run `run-make` tests on Windows.
2025-03-02 05:56:56 +08:00
Stuart Cook bb71c99918 Describe how to use rust-analyzer with `rmake.rs` (#2191) 2025-01-05 17:51:45 +01:00
clubby789 5f32a38a3d Document `x test --no-capture` (#2174) 2024-12-28 19:55:20 +08:00
clubby789 a49028cf1e Document the `--debugger` flag (#2170) 2024-12-23 08:43:28 +00:00
许杰友 Jieyou Xu (Joe) 67054cce92 Update `//@ proc-macro` aux build directive docs (#2149)
Co-authored-by: Eric Huss <eric@huss.org>
2024-11-29 13:01:15 +08:00
许杰友 Jieyou Xu (Joe) 65a59a3398 Remove `pretty-expanded` as it no longer exists (#2147) 2024-11-28 09:27:28 +08:00
许杰友 Jieyou Xu (Joe) 1f42c533c9 Document how to acquire `cdb.exe` (#2137) 2024-11-16 16:53:42 +00:00
许杰友 Jieyou Xu (Joe) a54fe7590c Describe `minicore` test auxiliary and directive (#2097) 2024-11-04 14:26:20 +08:00
Thomas Nyman 1170f0de32 Fix internal and incomplete links (#2107)
* Fix broken link in syntax-intro.md

* Fix broken link in tests/compiletest.md

* Fix incorrectly formatted reference-style link in compiler-src.md

* Fix broken links to rustc-driver.md to point to rustc-driver/intro.md

* Define URLs for incomplete links to rustc sources in stabilization_guide.md

* Define link to coherence.md for incomplete link in solve/invariants.md
2024-10-31 11:13:57 +08:00
Stuart Cook 0e2bebfe2d Rename `needs-profiler-support` to `needs-profiler-runtime` (#2095) 2024-10-10 09:27:13 +11:00
Stuart Cook f2eb9245ca Document compiletest directives `ignore-coverage-map` and `ignore-coverage-run` (#2094) 2024-10-09 10:21:58 +08:00
许杰友 Jieyou Xu (Joe) 6f4b909f69 Purge `run-pass-valgrind` mentions 2024-10-07 23:12:09 +02:00
许杰友 Jieyou Xu (Joe) 9bb0da343a [Testing 2/2] Revise revisions docs (#2089)
Co-authored-by: nora <48135649+Noratrieb@users.noreply.github.com>
2024-10-07 14:33:52 +08:00
许杰友 Jieyou Xu (Joe) 2b9274252f [Testing 1/2] Revise testing chapters excluding the directives chapter (#2088) 2024-10-07 10:39:22 +08:00
许杰友 Jieyou Xu (Joe) f56b9b0a44 Revise wording to not imply *only* Python 3.10 can be installed 2024-09-24 19:55:07 +02:00
nora 15da3b9246 Update src/tests/compiletest.md 2024-09-24 19:54:06 +02:00
许杰友 Jieyou Xu (Joe) d871e70475 Document `crashes` test suite
Describe procedure for adding new crashes tests and removing crashes
tests when the crash is intentionally fixed.

Also mention setting `COMPILETEST_VERBOSE_CRASHES=1` env var for verbose
crashes test output.
2024-09-24 19:54:06 +02:00
许杰友 Jieyou Xu (Joe) 6e8fc18158 Note lldb debuginfo requires `python310.dll` to be present in `PATH` 2024-09-24 19:49:14 +02:00
Martin Liška 9a13c75f11 linkcheck: fix reported broken links (part 2) (#2024)
* linkcheck: fix reported broken links (part 2)

* Apply suggestions from code review

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>

* Fix mir::Constant link target

* Fix borked links

* Fix one more link name

* Exclude 2 links from checking

* Fix exclude patterns in book.toml

* Fix comment

* Fix rmake-tests URL

* Apply suggestions from code review

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>

---------

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
2024-07-27 14:45:57 +02:00
Stuart Cook c2eb5560d2 Compiletest docs for recently-added features (#1994)
* Docs for `needs-forced-clang-based-tests` (was `needs-matching-clang`)

* Docs for `aux-codegen-backend`

* Docs for `{{sysroot-base}}` and `{{target-linker}}`
2024-06-12 15:58:02 +01:00
许杰友 Jieyou Xu (Joe) cf49c91585 run-make: add tip about quick-compile with stage0 rustc 2024-06-10 13:49:19 +02:00
Stuart Cook 62990d0e5e Document the `//@ unused-revision-names:` test header (#1991) 2024-06-08 13:13:44 +01:00
Yutaro Ohno cbd09807b0 Rename `-Z verbose` to `-Z verbose-internals`
The `-Z verbose` option has been renamed to `-Z verbose-internals` in
commit  b5d83619 [1] (PR #119129 [2]). This commit updates the remaining
`-Z verbose` to `-Z verbose-internals`.

[1]: b5d8361909
[2]: https://github.com/rust-lang/rust/pull/119129
2024-04-30 10:15:49 +02:00
Trevor Gross 34aaf19626 Add a note about checks with multiple revisions (#1963) 2024-04-13 16:16:44 +01:00
许杰友 Jieyou Xu (Joe) 1b1b3b4627 Explicitly mention compiletest directives are supported in rmake.rs (#1949) 2024-04-06 22:41:09 +02:00
Martin Nordholts 4f4e8ee67d Add basic docs for the new `aux-bin` header (#1942) 2024-04-06 21:01:03 +01:00
Stuart Cook 4e8bd38dda Add compiletest docs for FileCheck prefixes and `//@ filecheck-flags:` (#1914)
This patch also adds docs for `//@ llvm-cov-flags:`, and notes that coverage
tests support revisions (though none of the current tests actually do so).
2024-03-01 23:30:17 +01:00
许杰友 Jieyou Xu (Joe) 6595d0e0f0 Update run-make test description (#1920) 2024-03-01 23:22:50 +01:00
许杰友 Jieyou Xu (Joe) 601180f306 Update compiletest directives to be in `ui_test` style `//@` 2024-02-22 20:15:52 +01:00
Zalathar 7650a97c11 Remove outdated references to `-Z dump-mir-spanview`
This flag was removed by <https://github.com/rust-lang/rust/pull/119566>.
2024-01-16 10:28:45 +02:00
Zalathar a19ce0794b Update documentation for coverage tests 2023-11-08 16:43:50 +02:00
Zalathar b472a7fc8c Clarify that `run-coverage` only runs in some of the CI jobs 2023-09-12 13:27:25 +02:00
Zalathar f987fe8382 Document the `coverage-map` and `run-coverage` test suites 2023-09-11 23:29:18 +02:00
Tshepang Mbambo ab4a6e1350 date-check: test suites/classes using "revisions" (#1738) 2023-08-27 09:59:53 +09:00
İsmail Arılık a014f290dc fix(duplicate): remove unnecessary duplicate word 2023-07-18 12:17:31 +02:00
sslime336 e2487ebdc4 Change `x.py` into `x`, add explanation for `x` 2023-06-30 23:11:14 +02:00
sslime336 a04ad82e3c Change `./x.py` into `./x` 2023-06-30 23:11:14 +02:00
Eric Huss 1b6f93987d Fix some links 2023-06-29 06:43:19 +02:00
Tshepang Mbambo b6c87310d1 run-make tests: fix and improve (#1702) 2023-06-26 23:03:03 +09:00
Yukang e6289be8dc Add SIP solution for macOS users (#1636) 2023-03-21 17:50:39 +09:00
ozkanonur 375adf22dc extend bootstrap related documentations
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-01-31 12:42:30 -06:00
Albert Larsan d4ec98736e Change `src/test` to `tests` (#1547) 2023-01-13 07:31:47 +09:00
Tshepang Mbambo 8194045511 make date-check more lightweight (#1394)
* make date-check lightweight

This avoids having to write the date twice when updating date-check.

Before "As of <-- 2022-07 --> July 2022"
After "As of July 2022"

* please clippy

* update date-check docs

* accept review suggestion

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042163557

* accept review suggestion

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042167261

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#issuecomment-1189105017

* this breaks markdown

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018268

This led to a more robust regex, though making the tool more picky.
It also found a wrong date format that was missed.

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018419

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018816

* accept review suggestion

This was reverted by mistake

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934019395

* use a more simple fn

* address review comment

https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018981

Much more clean

* nit

* accept review suggestion

Co-authored-by: Noah Lev <camelidcamel@gmail.com>

* avoid a failed regex

Also, test new shape

* adjust to new regex (which uses named groups)

New regex was introduced by 456008cc35

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-08-02 13:50:32 -07:00
Luqman Aden afb2eb604d Debuginfo tests now also support revisions. 2022-07-21 04:48:49 +02:00
Eric Huss b005279610 Remove mention of -Zborrowck=mir with Polonius. (#1367) 2022-06-08 19:30:43 -03:00