Commit Graph

2628 Commits

Author SHA1 Message Date
Tshepang Mbambo a2cc4ae295
Merge pull request #2376 from smanilov/patch-5
Fix minor typo in rustdoc-internals.md
2025-05-09 15:53:15 +02:00
Stan Manilov 374f53e02b Fix minor typo in rustdoc-internals.md 2025-05-09 15:50:49 +03:00
Stan Manilov e1c08547a1
Fix minor typo in installation.md 2025-05-08 16:36:53 +03:00
Stan Manilov 7434026e13 Remark test naming exception 2025-05-08 14:05:31 +03:00
Stan Manilov 0e630fb60d
Fix minor typo in serialization.md 2025-05-08 11:13:50 +03:00
Guillaume Gomez 5514fe9ef6
Rollup merge of #140234 - nnethercote:separate-Analysis-and-Results, r=davidtwco
Separate dataflow analysis and results

`Analysis` gets put into `Results` with `EntryStates`, by `iterate_to_fixpoint`. This has two problems:
- `Results` is passed various places where only `Analysis` is needed.
- `EntryStates` is passed around mutably everywhere even though it is immutable.

This commit mostly separates `Analysis` from `Results` and fixes these two problems.

r? `@davidtwco`
2025-05-07 18:19:04 +02:00
Vadim Petrochenkov 0d29d41413 compiletest: Support matching on non-json lines in compiler output
and migrate most of remaining `error-pattern`s to it.
2025-05-04 18:27:45 +03:00
Tshepang Mbambo 72a9e36e04
Merge pull request #2367 from rust-lang/rustc-pull
Rustc pull update
2025-05-01 07:01:46 +02:00
Martin Ombura Jr. 7f939765c4 adds commas 2025-05-01 04:07:27 +00:00
The rustc-dev-guide Cronjob Bot f6524cb54d Merge from rustc 2025-05-01 04:05:49 +00:00
Martin Ombura Jr. 9c4b433575 adds 'with' to help clarify how to build a new compiler 2025-05-01 04:01:42 +00:00
Vadim Petrochenkov d41f1f4219 compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
Tshepang Mbambo 1b2f1c30d9
for a more friendly output
Also, these are normal Rust things (crates/packages), so remove the word *normal*.
2025-04-29 23:39:06 +02:00
Tshepang Mbambo 64dd1c3a8c
Merge pull request #2363 from smanilov/patch-1
Update compiler-src.md
2025-04-29 23:01:31 +02:00
Travis Cross 2cc8f1a3a1 Merge PR #2360: Add docs about stabilizing an edition 2025-04-29 19:09:46 +00:00
Boxy 2eae1c6f99 Fix footnotes 2025-04-29 19:35:26 +01:00
lcnr 12be276e9d
Merge pull request #2266 from BoxyUwU/normalization
Introduce a normalization chapter
2025-04-29 20:19:27 +02:00
Boxy 38a5e54ccd Introduce a normalization chapter 2025-04-29 19:08:55 +01:00
Stan Manilov 7700fb5dc8
Update compiler-src.md
Refactor the dependency structure from a nested unordered list to a single-level ordered list.

IMO, this is clearer, but happy to close this PR without merging, if the change is not desired.
2025-04-29 16:39:54 +03:00
Eric Huss fb49fb6ba0 Add documentation on how to stabilize the compiler edition
This adds documentation on how to stabilize the edition in the compiler.
2025-04-28 14:53:36 -07:00
Eric Huss 4ba34d12fb Add documentation on how to migration the edition of the standard library
Based on lessons learned from 2024. There's probably still more details
to say here since it was a ton of work. These are the major points that
I remember.
2025-04-28 11:30:33 -07:00
Eric Huss d0998d33cb Add an example of the example of an edition migration lint
It was observed that some people were missing the `edition20xx` rustdoc
attribute. Although this probably won't solve that problem, I'd still
like to highlight it as something to be aware of.
2025-04-28 11:29:42 -07:00
The rustc-dev-guide Cronjob Bot 825c56bcaa Merge from rustc 2025-04-28 04:02:54 +00:00
Tshepang Mbambo e36f9af1cd
replace command that does not work 2025-04-26 15:34:43 +02:00
Tshepang Mbambo 2b4bd30756
copy-paste ease 2025-04-26 15:18:36 +02:00
Tshepang Mbambo 0220b0b8a5 use correct code block markers 2025-04-26 15:09:05 +02:00
Tshepang Mbambo b9fbcd1b13
Merge pull request #2343 from hwhsu1231-fork/fix-prefix-chapter
fix(docs): add newlines between prefix/suffix chapters
2025-04-26 14:47:39 +02:00
Tshepang Mbambo 55d22e3d8c
typo 2025-04-25 18:32:43 +02:00
Nicholas Nethercote ed695f4484 Separate `Analysis` and `Results`.
`Results` contains and `Analysis` and an `EntryStates`. The unfortunate
thing about this is that the analysis needs to be mutable everywhere
(`&mut Analysis`) which forces the `Results` to be mutable everywhere,
even though `EntryStates` is immutable everywhere.

To fix this, this commit renames `Results` as `AnalysisAndResults`,
renames `EntryStates` as `Results`, and separates the analysis and
results as much as possible. (`AnalysisAndResults` doesn't get much use,
it's mostly there to facilitate method chaining of
`iterate_to_fixpoint`.)

`Results` is immutable everywhere, which:
- is a bit clearer on how the data is used,
- avoids an unnecessary clone of entry states in
  `locals_live_across_suspend_points`, and
- moves the results outside the `RefCell` in Formatter.

The commit also reformulates `ResultsHandle` as the generic `CowMut`,
which is simpler than `ResultsHandle` because it doesn't need the
`'tcx` lifetime and the trait bounds. It also which sits nicely
alongside the new use of `Cow` in `ResultsCursor`.
2025-04-24 11:36:07 +10:00
Jieyou Xu dd639a47fe
rustc-dev-guide: document that `//@ add-core-stubs` imply `-Cforce-unwind-tables=yes` 2025-04-23 17:18:20 +08:00
Manuel Drehwald e74f97682c update build and test instructions 2025-04-22 01:16:04 -04:00
The rustc-dev-guide Cronjob Bot 4c6635291d Merge from rustc 2025-04-21 04:03:09 +00:00
Chris Denton c1b574ef00
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 43a4aedbbe improve readability by adding pauses 2025-04-19 17:58:12 +02:00
Tshepang Mbambo 0e5847e7c8 fix grammar 2025-04-19 17:58:12 +02:00
Tshepang Mbambo 58d5664e4e needed a stronger pause 2025-04-19 17:51:41 +02:00
Chris Denton 6cbd6c0838
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) 3587bad938
Merge pull request #2346 from folkertdev/bootstrap-in-dependencies 2025-04-19 22:13:41 +08:00
Folkert de Vries 4aa47cdf02
document `#[cfg(bootstrap)]` in dependencies 2025-04-19 16:09:18 +02:00
Tshepang Mbambo 3a23ec2529 fix broken link 2025-04-19 16:04:22 +02:00
The rustc-dev-guide Cronjob Bot 87eb26fc96 Merge from rustc 2025-04-19 13:53:12 +00:00
Haowei Hsu a250445f8e fix(docs): add newlines between prefix/suffix chapters
add newlines between prefix/suffix chapters in SUMMARY.md
to ensure correct extraction by mdbook-i18n-helpers.
2025-04-18 18:49:34 +08:00
Manuel Drehwald 23c4b36751 upstream autodiff build instructions 2025-04-17 20:52:07 -04:00
Jieyou Xu bde086e3fa
rustc-dev-guide: document `//@ ignore-auxiliary` 2025-04-17 18:52:57 +08:00
许杰友 Jieyou Xu (Joe) b8d3c51b30
Merge pull request #2339 from rust-lang/autodiff-docs 2025-04-17 14:03:30 +08:00
Manuel Drehwald 5cedd19842
add a first version of autodiff docs 2025-04-17 14:01:05 +08:00
Matthias Krüger 960baa6bb3
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 01928b1abd
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 523f2a571a
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 299077b6c3 Improve `borrowck_graphviz_*` documentation.
In particular, `borrowck_graphviz_preflow` no longer exists.
2025-04-16 08:57:15 +10:00