Commit graph

2896 commits

Author SHA1 Message Date
Tshepang Mbambo
eb6749c02e is a question 2025-05-10 12:35:50 +02:00
Tshepang Mbambo
2efa4e6115 sembr 2025-05-10 12:35:40 +02:00
Tshepang Mbambo
9f07c1ef93 make more readable 2025-05-10 12:34:43 +02:00
Tshepang Mbambo
4e684a9977 make more clear what is meant 2025-05-10 12:33:45 +02:00
Tshepang Mbambo
8c6c97d0e2 use the right case 2025-05-10 12:32:59 +02:00
Tshepang Mbambo
c1de624605 link to chapter referred to
This made it look the the topic was covered in the chapter just before
the current one.
2025-05-10 12:21:56 +02:00
Tshepang Mbambo
6831638f20
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
30526830bb Fix minor typo in rustdoc-internals.md 2025-05-09 15:50:49 +03:00
Stan Manilov
a07c71d773
Fix minor typo in installation.md 2025-05-08 16:36:53 +03:00
Stan Manilov
d87763dc4f Remark test naming exception 2025-05-08 14:05:31 +03:00
Stan Manilov
47cd0e733c
Fix minor typo in serialization.md 2025-05-08 11:13:50 +03:00
The rustc-dev-guide Cronjob Bot
659f0b606d Merge from rustc 2025-05-08 07:16:31 +00:00
The rustc-dev-guide Cronjob Bot
046bfb3e8c Preparing for merge from rustc 2025-05-08 07:16:18 +00:00
Guillaume Gomez
82c99c41c0
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
56d6b4e427 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
bf06eaf7a2
Merge pull request #2367 from rust-lang/rustc-pull
Rustc pull update
2025-05-01 07:01:46 +02:00
Martin Ombura Jr.
9a3a212dae adds commas 2025-05-01 04:07:27 +00:00
The rustc-dev-guide Cronjob Bot
560de7e512 Merge from rustc 2025-05-01 04:05:49 +00:00
The rustc-dev-guide Cronjob Bot
27eb274233 Preparing for merge from rustc 2025-05-01 04:05:40 +00:00
Martin Ombura Jr.
3e0cbbb899 adds 'with' to help clarify how to build a new compiler 2025-05-01 04:01:42 +00:00
许杰友 Jieyou Xu (Joe)
b02178b1d4
Merge pull request #2352 from xizheyin/enable-behind-upstream 2025-04-30 18:42:23 +08:00
许杰友 Jieyou Xu (Joe)
b1c86935cd
Merge pull request #2359 from rust-lang/tshepang-repo-name 2025-04-30 18:41:49 +08:00
Vadim Petrochenkov
20faf8532b compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
Tshepang Mbambo
48bbf5a91b
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
029a2c4746
Merge pull request #2363 from smanilov/patch-1
Update compiler-src.md
2025-04-29 23:01:31 +02:00
Travis Cross
c7eeeb1263 Merge PR #2360: Add docs about stabilizing an edition 2025-04-29 19:09:46 +00:00
Boxy
7f1ae9b8c0 Fix footnotes 2025-04-29 19:35:26 +01:00
lcnr
fcec80ab24
Merge pull request #2266 from BoxyUwU/normalization
Introduce a normalization chapter
2025-04-29 20:19:27 +02:00
Boxy
e2fb99c97e Introduce a normalization chapter 2025-04-29 19:08:55 +01:00
Stan Manilov
c466cd01d8
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
50500376b3 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
0aae3caf24 Update mdbook to 0.4.48
This updates to the latest version of mdbook which has had a variety
of fixes of new features since the last update.

Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0448
2025-04-28 11:41:17 -07:00
Eric Huss
b0e675bc52 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
3d23917b2d 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
Tshepang Mbambo
451d73fbe2 use repo name in push pr title
I found "Rustc dev guide subtree update awkward"
2025-04-28 06:49:13 +02:00
The rustc-dev-guide Cronjob Bot
aa15830ee2 Merge from rustc 2025-04-28 04:02:54 +00:00
The rustc-dev-guide Cronjob Bot
de491f9b78 Preparing for merge from rustc 2025-04-28 04:02:47 +00:00
Yuki Okushi
d91ffb6da5
Merge pull request #2351 from rust-lang/rustc-pull 2025-04-27 18:53:00 +09:00
Tshepang Mbambo
9c4d568cfc
replace command that does not work 2025-04-26 15:34:43 +02:00
Tshepang Mbambo
9eeadbf096
copy-paste ease 2025-04-26 15:18:36 +02:00
Tshepang Mbambo
79faff2b9b use correct code block markers 2025-04-26 15:09:05 +02:00
Tshepang Mbambo
3945ae9d72
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
7a70f336cc
Merge pull request #2345 from rust-lang/extraneous
toolchain version does not need to be specified
2025-04-26 13:42:45 +02:00
Tshepang Mbambo
ba6dd90615
typo 2025-04-25 18:32:43 +02:00
xizheyin
2b8e9b508c
Enable [behind-upstream] triagebot option
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-25 15:17:19 +08:00
The rustc-dev-guide Cronjob Bot
745500fbc5 Preparing for merge from rustc 2025-04-24 04:02:49 +00:00
Nicholas Nethercote
92799b6f89 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
f2ab763c20
rustc-dev-guide: document that //@ add-core-stubs imply -Cforce-unwind-tables=yes 2025-04-23 17:18:20 +08:00
Manuel Drehwald
e9896ccc1e update build and test instructions 2025-04-22 01:16:04 -04:00
The rustc-dev-guide Cronjob Bot
d12c1f581f Merge from rustc 2025-04-21 04:03:09 +00:00