Commit Graph

10755 Commits

Author SHA1 Message Date
Michael Goulet 4b47bd439e Rollup merge of #141596 - tshepang:patch-2, r=Urgau
rustc book: fix erratic sentence by making it more simple
2025-05-27 13:01:41 +02:00
Tshepang Mbambo 0497f31122 rustc book: fix erratic sentence by making it more simple 2025-05-26 17:55:03 +02:00
jyn 231e8cb34e add "Compiler environment variables" section to the unstable book 2025-05-25 08:46:58 -04:00
jyn 4de3f8975a document existing setup 2025-05-24 19:49:21 -04:00
Matthias Krüger b0924297e1 Rollup merge of #141486 - xizheyin:issue-141414, r=GuillaumeGomez
rustdoc book: add argument explanation for `html_playground_url`

Fixes #141414

r? `@GuillaumeGomez`
2025-05-24 16:08:48 +02:00
Matthias Krüger 3e16a3ee9c Rollup merge of #141480 - jyn514:treat-err-as-bug, r=jieyouxu
document some -Z flags as living in the rustc-dev-guide

i was looking for these but didn't find them at first; add a breadcrumb so people know where to look
2025-05-24 16:08:47 +02:00
xizheyin 06e6c90204 rustdoc book: add argument explanation for html_playground_url
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-05-24 17:08:43 +08:00
jyn a56af95ed2 document some -Z flags 2025-05-24 01:14:39 -04:00
Petr Sumbera df61c7ad45 Add 2nd Solaris target maintainer 2025-05-23 15:31:01 +02:00
Matthias Krüger 18f42dd500 Rollup merge of #141316 - rustbot:docs-update, r=ehuss
Update books

## rust-lang/edition-guide

1 commits in 1b1bb49babd65c732468cfa515b0c009bd1d26bc..aa6ce337c0adf7a63e33960d184270f2a45ab9ef
2025-05-20 23:47:34 UTC to 2025-05-20 23:47:34 UTC

- Update references to the `missing_fragment_specifier` lint (rust-lang/edition-guide#376)

## rust-lang/reference

3 commits in acd0231ebc74849f6a8907b5e646ce86721aad76..118fd1f1f0854f50e3ae1fe4b64862aad23009ca
2025-05-20 22:52:38 UTC to 2025-05-20 21:45:13 UTC

- Explain why nested receivers are dyn-incompatible (rust-lang/reference#1822)
- Enable `[canonicalize-issue-links]` and `[no-mentions]` in triagebot (rust-lang/reference#1788)
- Mention the temporary scope of `while let`. (rust-lang/reference#1779)
2025-05-21 08:05:27 +02:00
rustbot fc31437b4c Update books 2025-05-21 01:50:12 +02:00
bors 2b96ddca12 Auto merge of #141305 - matthiaskrgr:rollup-l6nwaht, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #140972 (Add TRACING_ENABLED to Machine and add enter_trace_span!())
 - #141282 (`core_float_math`: Move functions to `math` module)
 - #141288 (Get rid of unnecessary `BufDisplay` abstraction)
 - #141289 (use `Self` alias in self types rather than manually substituting it)
 - #141291 (link tracking issue in explicit-extern-abis.md)
 - #141294 (triagebot: ping me if rustdoc js is modified)
 - #141303 (Fix pagetoc inactive color in rustc book)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-05-20 23:18:26 +00:00
Matthias Krüger 13f3f31840 Rollup merge of #141303 - Urgau:pagetoc-fix-color, r=ehuss
Fix pagetoc inactive color in rustc book

This PR fixes the color of inactive entry in rustc pagetoc, particularly with the "Rust" theme.

| Before | After |
|--------|-------|
| ![image](https://github.com/user-attachments/assets/c6c8fe9a-0016-46cb-a638-71a62787b629) | ![image](https://github.com/user-attachments/assets/7146be5b-6ac3-4c9b-8e5a-eedd6ce61314) |

Live preview at: http://urgau.rf.gd/book

Related to https://github.com/rust-lang/rust/pull/140113#issuecomment-2888615781
r? `@ehuss`
2025-05-20 20:57:30 +02:00
Urgau b8732aaa4d Fix pagetoc inactive color in rustc book 2025-05-20 20:03:17 +02:00
Matthias Krüger 1f54e14cd5 Rollup merge of #141269 - tshepang:rdg-push, r=jieyouxu
rustc-dev-guide subtree update

r? `@ghost`
2025-05-20 16:50:41 +02:00
Dan Johnson b68ebd04a5 link tracking issue in explicit-extern-abis.md 2025-05-20 07:40:52 -07:00
Tshepang Mbambo 86662dced5 Merge pull request #2392 from rust-lang/rustc-pull
Rustc pull update
2025-05-20 04:37:19 +02:00
rustbot 7600453bd5 Update books 2025-05-19 19:01:24 +02:00
Stan Manilov 4f45f0442b Update link to Forge guide on new flags 2025-05-19 17:32:29 +03:00
nora f42a6e3012 Merge pull request #2394 from smanilov/patch-9
Make run instructions first
2025-05-19 14:34:27 +02:00
Stan Manilov 114367587c Make run instructions first
Better, because then one knows how to run the examples.
2025-05-19 14:44:36 +03:00
Stan Manilov 686f0fa8a2 Remove unused references and simplify one 2025-05-19 14:41:19 +03:00
nora 85379b1d1a Merge pull request #2389 from fuzzypixelz/typos
Fix typos in "Libraries and Metadata"
2025-05-19 12:39:24 +02:00
The rustc-dev-guide Cronjob Bot 288ca05976 Merge from rustc 2025-05-19 04:16:41 +00:00
The rustc-dev-guide Cronjob Bot 70ead0af5b Preparing for merge from rustc 2025-05-19 04:10:52 +00:00
León Orell Valerian Liehr 34ee7e206f Exclude issues with an associated PR from the "What should I work on" GH query 2025-05-18 20:01:47 +02:00
Mahmoud Mazouz 228a7bb918 Fix typos in "Libraries and Metadata" 2025-05-18 15:37:18 +02:00
León Orell Valerian Liehr c7e2e88da0 Rollup merge of #141139 - jieyouxu:fix-rfl, r=Urgau
Fix Rust for Linux ping group label

Noticed in https://github.com/rust-lang/rust/pull/140966#issuecomment-2886704667. Seems like a broken label can cause the triagebot ping message to not be issued.

See https://github.com/rust-lang/triagebot/issues/1992.

```@rustbot``` label: +A-rust-for-linux
2025-05-18 11:03:48 +02:00
León Orell Valerian Liehr 5592f41a00 Rollup merge of #140113 - Urgau:rustc-book-page-toc, r=ehuss
Add per page TOC in the `rustc` book

This PR adds per page Table of Content (TOC) in the `rustc` book (to be extended in the future to our other books).

The goal is to easy the navigation inside the page by providing quick overview of the page content and our position inside that page.

That functionality is unfortunately not available natively in `mdbook`, which prompted community members to create [mdBook-pagetoc](https://github.com/JorelAli/mdBook-pagetoc/) (which this PR is heavily inspired by). It's "only" a JS file (to handle the TOC) and a CSS file (to handle the margin, colors, screen size, ...), there is no "post-processor" needed (in mdbook sense).

![image](https://github.com/user-attachments/assets/9e790bea-059d-414e-b4a5-ac8170f57e27)

Live preview at: http://urgau.rf.gd/book

r? ```@jieyouxu```
2025-05-18 11:03:44 +02:00
Jieyou Xu 2dddbd1ecb rustc-dev-guide: fix Rust for Linux rust-lang/rust label 2025-05-17 23:51:50 +08:00
Urgau 4cbcb44d70 Cleanup the Javascript and CSS of our custom TOC 2025-05-16 11:08:15 +02:00
Urgau 72f915aaca Fix flicker when page loads 2025-05-16 11:08:15 +02:00
Urgau 8fcff8c645 Add per page TOC in the rustc book 2025-05-16 11:08:14 +02:00
Matthias Krüger 5ce27f572f Rollup merge of #141026 - tshepang:rust-push, r=jieyouxu
rustc-dev-guide subtree update

r? ``@ghost``
2025-05-16 07:19:43 +02:00
The rustc-dev-guide Cronjob Bot 1fd536c5fb Merge from rustc 2025-05-15 09:46:22 +00:00
The rustc-dev-guide Cronjob Bot 4adff2f244 Preparing for merge from rustc 2025-05-15 09:46:15 +00:00
Tshepang Mbambo 5e3aa1610f avoid upstream pull conflict
We changed this line and have not pushed it upstream yet,
and upstream changed it in the meanwhile.
2025-05-15 11:39:59 +02:00
Tshepang Mbambo 05e7ce95c8 Merge pull request #2373 from rust-lang/tshepang-patch-2
avoid duplicating commands
2025-05-15 00:34:38 +02:00
Tshepang Mbambo 30b54adb96 Merge pull request #2379 from rust-lang/tshepang-which-chapter
clean TypeFold* chapter
2025-05-15 00:33:47 +02:00
Tshepang Mbambo b805dcb7ac Merge pull request #2380 from rust-lang/tshepang-crate-cleaning
clean our crates
2025-05-15 00:33:19 +02:00
Matthias Krüger 0267905eee Rollup merge of #140904 - ehuss:future-incompat-template, r=Mark-Simulacrum
Add an issue template for future-incompatible lints

This adds a GitHub issue template for future-incompatible lints. Most of the existing tracking issues have been using different formats with different information, and I think it would be helpful to make them a little more consistent and to ensure that sufficient information is provided.

Some comments on my choices:
* Added a dedicated section to describe *why* the change is being made. Many existing issues already have this, so let's standardize on it.
* Have a section with a very clear example. Almost all of the existing issues have this in one form or another.
* Added a "Recommendations" section, since this is something I see missing in several of the existing issues, and this is really important information IMHO.
* I reworded the "When" section. The existing template mentioned that these get reviewed every 6 weeks which my understanding is not true. That's also not very helpful information to the user, since it doesn't really answer the question. I'm not sure this section will actually be useful since I suspect most of the time we don't know when it will change (there have been a few exceptions).
* Clearly show the expected progression steps. Several issues already have this.
* Added implementation history, which is useful for linking PRs. (IDK, this could get merged with "Steps".)
2025-05-14 18:43:38 +02:00
bors 4eca99a18e Auto merge of #140887 - pietroalbini:pa-bootstrap-update, r=compiler-errors
Stage0 bootstrap update

This PR [follows the release process](https://forge.rust-lang.org/release/process.html#master-bootstrap-update-tuesday) to update the stage0 compiler.

The only thing of note is https://github.com/rust-lang/rust/commit/58651d1b316e268fac2100c3ae37bb502a36b8ba, which was flagged by clippy as a correctness fix. I think allowing that lint in our case makes sense, but it's worth to have a second pair of eyes on it.

r? `@Mark-Simulacrum`
2025-05-13 09:54:28 +00:00
Tshepang Mbambo b255ae2cdb remove dangling references 2025-05-12 23:59:55 +02:00
omahs 1caaa88700 Fix typos 2025-05-12 17:20:49 +00:00
Pietro Albini a360940ac9 update version placeholders 2025-05-12 15:33:30 +02:00
许杰友 Jieyou Xu (Joe) e98364238c Merge pull request #2378 from smanilov/patch-7 2025-05-12 21:32:54 +08:00
Stan Manilov 436c363100 Remove n.b. about parser refactoring
Discussed in PR 2378; the note was outdated.
2025-05-12 14:27:26 +03:00
Zalathar 2a0c72e3a9 Remove obsolete reference to unsized_tuple_coercion 2025-05-12 18:14:43 +10:00
bors 6812af9821 Auto merge of #140842 - tmiasko:print-mono-items, r=saethlin
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-11 22:15:30 +00:00
Eric Huss f6aeef3d9b Add an issue template for future-incompatible lints 2025-05-11 06:55:36 -07:00