Commit graph

2846 commits

Author SHA1 Message Date
Jieyou Xu
f2ab763c20
rustc-dev-guide: document that //@ add-core-stubs imply -Cforce-unwind-tables=yes 2025-04-23 17:18:20 +08:00
The rustc-dev-guide Cronjob Bot
d12c1f581f Merge from rustc 2025-04-21 04:03:09 +00:00
The rustc-dev-guide Cronjob Bot
49b62eeacc Preparing for merge from rustc 2025-04-21 04:03:02 +00:00
Chris Denton
67539cee69
Rollup merge of #140044 - tshepang:rdg-push, r=jieyouxu
rustc-dev-guide subtree update

r? ``@ghost``
2025-04-20 13:02:49 +00:00
Tshepang Mbambo
48612702d9 improve readability by adding pauses 2025-04-19 17:58:12 +02:00
Tshepang Mbambo
d09b3c75de fix grammar 2025-04-19 17:58:12 +02:00
Tshepang Mbambo
6be60e83b5 needed a stronger pause 2025-04-19 17:51:41 +02:00
Chris Denton
237064a0c4
Rollup merge of #138934 - onur-ozkan:extended-config-profiles, r=Kobzol
support config extensions

_Copied from the `rustc-dev-guide` addition:_

>When working on different tasks, you might need to switch between different bootstrap >configurations.
>Sometimes you may want to keep an old configuration for future use. But saving raw config >values in
>random files and manually copying and pasting them can quickly become messy, especially if >you have a
>long history of different configurations.
>
>To simplify managing multiple configurations, you can create config extensions.
>
>For example, you can create a simple config file named `cross.toml`:
>
>```toml
>[build]
>build = "x86_64-unknown-linux-gnu"
>host = ["i686-unknown-linux-gnu"]
>target = ["i686-unknown-linux-gnu"]
>
>
>[llvm]
>download-ci-llvm = false
>
>[target.x86_64-unknown-linux-gnu]
>llvm-config = "/path/to/llvm-19/bin/llvm-config"
>```
>
>Then, include this in your `bootstrap.toml`:
>
>```toml
>include = ["cross.toml"]
>```
>
>You can also include extensions within extensions recursively.
>
>**Note:** In the `include` field, the overriding logic follows a right-to-left order. For example,
in `include = ["a.toml", "b.toml"]`, extension `b.toml` overrides `a.toml`. Also, parent extensions
always overrides the inner ones.

try-job: x86_64-mingw-2
2025-04-19 15:09:32 +00:00
许杰友 Jieyou Xu (Joe)
976d13fe49
Merge pull request #2346 from folkertdev/bootstrap-in-dependencies 2025-04-19 22:13:41 +08:00
Folkert de Vries
1ab497b3f4
document #[cfg(bootstrap)] in dependencies 2025-04-19 16:09:18 +02:00
Tshepang Mbambo
07b7f00a9e fix broken link 2025-04-19 16:04:22 +02:00
The rustc-dev-guide Cronjob Bot
3b2302ec0d Merge from rustc 2025-04-19 13:53:12 +00:00
The rustc-dev-guide Cronjob Bot
a0c64dce0d Preparing for merge from rustc 2025-04-19 13:53:05 +00:00
Tshepang Mbambo
311ef44dca
readme: be copy-paste friendly 2025-04-19 13:08:43 +02:00
Manuel Drehwald
834dbf565c upstream autodiff build instructions 2025-04-17 20:52:07 -04:00
Jieyou Xu
6bbee334fd
rustc-dev-guide: document //@ ignore-auxiliary 2025-04-17 18:52:57 +08:00
许杰友 Jieyou Xu (Joe)
35a3c3bfd5
Merge pull request #2339 from rust-lang/autodiff-docs 2025-04-17 14:03:30 +08:00
Manuel Drehwald
1236dcb9ce
add a first version of autodiff docs 2025-04-17 14:01:05 +08:00
Matthias Krüger
8e5df28a6a
Rollup merge of #139770 - nnethercote:rename-LifetimeName, r=BoxyUwU
Rename `LifetimeName` as `LifetimeKind`.

It's a much better name, more consistent with how we name such things.

Also rename `Lifetime::res` as `Lifetime::kind` to match. I suspect this field used to have the type `LifetimeRes` and then the type was changed but the field name remained the same.

r? ``@BoxyUwU``
2025-04-17 00:14:26 +02:00
Jakub Beránek
a9bcdb0ca1
Merge pull request #2337 from xizheyin/sync-code
Remind to update dev branch while behind too many commits
2025-04-16 07:36:00 +02:00
xizheyin
855ecf9a96
Remind to update dev branch while behind too many commits
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-16 13:09:29 +08:00
Nicholas Nethercote
62882f355e Improve borrowck_graphviz_* documentation.
In particular, `borrowck_graphviz_preflow` no longer exists.
2025-04-16 08:57:15 +10:00
Nicholas Nethercote
fe882bf330 Rename LifetimeName as LifetimeKind.
It's a much better name, more consistent with how we name such things.

Also rename `Lifetime::res` as `Lifetime::kind` to match. I suspect this
field used to have the type `LifetimeRes` and then the type was changed
but the field name remained the same.
2025-04-16 07:16:40 +10:00
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
Tshepang Mbambo
97be6a6131
Merge pull request #2333 from rust-lang/convetions-chapt-cleaning
Coding conventions chapter cleaning
2025-04-14 08:43:05 +02:00
Tshepang Mbambo
9e99fc3a73 clean "Coding conventions" chapter
- use correct code block markers
- add missing title
- rustfmt can now use edition setting in its config
  ... and this is set in Rust repo
- reduce visual noise
- needless repetition
- convention is to start sentence with upper case
- sembr
- whitespace
- semi-heading not adding much value
- fix grammar
2025-04-14 08:41:22 +02:00
Nicholas Nethercote
9734e44b83 Documentation fixes.
Remove old references to the HIR map.
2025-04-14 09:18:15 +10:00
许杰友 Jieyou Xu (Joe)
b3b89b6854
Merge pull request #2334 from rust-lang/consistency 2025-04-13 23:38:27 +08:00
Jieyou Xu
8c378f7990
tests: document -A {unused,internal_features} ui test mode presets 2025-04-13 23:34:24 +08: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
Urgau
40bfc14c7d
Enable [canonicalize-issue-links] and [no-mentions] in triagebot.toml 2025-04-12 18:24:59 +02:00
Tshepang Mbambo
2af7ec32be use consistent title capitalization 2025-04-12 13:01:16 +02:00
Tshepang Mbambo
667aa2e952
fix path 2025-04-12 10:41:48 +02:00
Tshepang Mbambo
f79a89da92
Merge pull request #2330 from rust-lang/tshepang-patch-5
date-check rdg contribution section
2025-04-12 10:28:49 +02:00
Tshepang Mbambo
e33a6d6f60
date-check rdg contribution section 2025-04-12 10:28:15 +02:00
许杰友 Jieyou Xu (Joe)
14ea903d4d
Merge pull request #2327 from rust-lang/tshepang-patch-1 2025-04-12 16:25:17 +08:00
Tshepang Mbambo
208e421ed3
Merge pull request #2329 from rust-lang/tshepang-patch-4
add missing word
2025-04-12 10:25:07 +02:00
Tshepang Mbambo
7ba53b7b75
add missing word 2025-04-12 10:24:31 +02:00
Tshepang Mbambo
770a6fcb48
remove implied text
"how much to trust" implies the opposite
2025-04-12 10:21:10 +02:00
Tshepang Mbambo
3ae1c9df5b
use more simple language
Not obvious what "sort by" means
2025-04-12 09:39:13 +02:00
Tshepang Mbambo
e0a2250f20
ease copy-paste 2025-04-12 06:14:37 +02:00
Freya Arbjerg
c5e23697c0 Update "crater" link to actually point to crater.md 2025-04-12 00:05:26 +02:00
Jakub Beránek
394610b6d6 Document that opt-dist requires metrics to be enabled 2025-04-11 21:30:10 +02:00
Tshepang Mbambo
e6eb98f8a3
Merge pull request #2320 from smanilov/patch-1
Update table of contents in about-this-guide.md
2025-04-11 18:43:11 +02:00
Stan Manilov
b2fce61869 Update table of contents in about-this-guide.md
1. added two new parts: Bootstrapping and Supporting Infrastructure;
2. touched up names of pre-existing parts, to match actual names in sidebar;
3. syntactic nits (start description of Analysis with a capital letter); and
4. make numbered list use only 1.

Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2025-04-11 16:57:44 +03: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
Stan Manilov
c285fe7256
Fix link to rustc_* TEST attributes in ui.md 2025-04-11 12:12:46 +03: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