Commit Graph

11089 Commits

Author SHA1 Message Date
Stuart Cook bd8e7fdc54 Rollup merge of #145040 - tshepang:rdg-sync, r=Kobzol
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/1beca6333e2de8df2d002613c7c8fce55a1a1257.

Created using https://github.com/rust-lang/josh-sync.

r? `@ghost`
2025-08-07 20:49:49 +10:00
Stuart Cook 3af6bb1f22 Rollup merge of #145026 - rustbot:docs-update, r=ehuss
Update books

## rust-lang/book

5 commits in b2d1a0821e12a676b496d61891b8e3d374a8e832..3e9dc46aa563ca0c53ec826c41b05f10c5915925
2025-08-02 01:33:29 UTC to 2025-07-14 21:23:38 UTC

- Appendix B and Appendix D from tech review (rust-lang/book#4466)
- Chapter 21 from tech review (rust-lang/book#4464)
- Chapter 20 from tech review (rust-lang/book#4460)
- Chapter 19 from tech review (rust-lang/book#4446)
- Chapter 18 from tech review (rust-lang/book#4445)

## rust-lang/reference

12 commits in 1f45bd41fa6c17b7c048ed6bfe5f168c4311206a..1be151c051a082b542548c62cafbcb055fa8944f
2025-08-05 19:51:40 UTC to 2025-07-14 19:49:01 UTC

- Fix build output directory in README (rust-lang/reference#1950)
- Update `link_name` to use the attribute template (rust-lang/reference#1896)
- Update `no_link` to use the attribute template (rust-lang/reference#1898)
- Update `proc_macro_derive` to use the attribute template (rust-lang/reference#1888)
- Update `automatically_derived` to use the attribute template (rust-lang/reference#1884)
- Update `derive` to use the attribute template (rust-lang/reference#1883)
- Fix and clarify CR LF normalization and CR in string literals (rust-lang/reference#1944)
- glossary.md: tweak description of "dispatch" (rust-lang/reference#1938)
- add missing id, r[asm.operand-type.supported-operands.const] (rust-lang/reference#1939)
- &str and &[u8] have the same layout (rust-lang/reference#1848)
- Rename and rewrite the "question mark operator" (rust-lang/reference#1931)
- Change "allocated object" to "allocation". (rust-lang/reference#1930)

## rust-lang/rust-by-example

3 commits in e386be5f44af711854207c11fdd61bb576270b04..bd1279cdc9865bfff605e741fb76a0b2f07314a7
2025-08-04 13:41:04 UTC to 2025-08-02 15:41:59 UTC

- Improve the activity instructions in `print_display` (rust-lang/rust-by-example#1948)
- Minor fixes (whitespace, typo, i32->u32) (rust-lang/rust-by-example#1947)
- Document drawbacks of alternatives to match binding (rust-lang/rust-by-example#1946)
2025-08-07 20:49:47 +10:00
Stuart Cook 1cd368a744 Rollup merge of #138689 - jedbrown:jed/nvptx-target-feature, r=ZuseZ4
add nvptx_target_feature

Tracking issue: #141468 (nvptx), which is part of #44839 (catch-all arches)
The feature gate is `#![feature(nvptx_target_feature)]`

This exposes the target features `sm_20` through `sm_120a` [as defined](https://github.com/llvm/llvm-project/blob/llvmorg-20.1.1/llvm/lib/Target/NVPTX/NVPTX.td#L59-L85) by LLVM.

Cc: ``````@gonzalobg``````
``````@rustbot`````` label +O-NVPTX +A-target-feature
2025-08-07 20:49:36 +10:00
The rustc-josh-sync Cronjob Bot e296468a47 Merge ref '6bcdcc73bd11' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 6bcdcc73bd
Filtered ref: 6cc4ce79e1f8dc0ec5a2e18049b9c1a51dee3221

This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-07 04:18:21 +00:00
The rustc-josh-sync Cronjob Bot 4f96b2aa5e Prepare for merging from rust-lang/rust
This updates the rust-version file to 6bcdcc73bd.
2025-08-07 04:18:12 +00:00
rustbot 790682b089 Update books 2025-08-07 01:02:58 +02:00
lolbinarycat 162b908eb6 Make link relative an link to md not html 2025-08-06 15:01:41 -05:00
lolbinarycat ef3708bf63 Link from "Overview of the compiler § Queries" to the Queries chapter
There's already a link in the other direction, so this seems fairly logical.
2025-08-06 13:31:52 -05:00
Jakub Beránek 21e488c00a Rollup merge of #144676 - tiif:dev_guide_unstable_bound, r=BoxyUwU
Add documentation for unstable_feature_bound

There is more detail and explanation in https://hackmd.io/``````@tiif/Byd3mq7Ige``````

Original PR that implemented this: rust-lang/rust#140399

r? ``````@BoxyUwU`````` to nominate for types team discussion
2025-08-06 15:55:43 +02:00
Jana Dönszelmann c3ee403322 add note on how to build wasi 2025-08-06 14:40:25 +02:00
Manuel Drehwald dfec44905c Merge pull request #2534 from skrobchik/patch-1
Update installation.md
2025-08-05 14:14:30 -07:00
Samuel Tardieu 518e367f9e Rollup merge of #144905 - tshepang:rdg-sync, r=jieyouxu
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/1263fc23672325c1d2e3d6bba8a7dd89e986245c.

Created using https://github.com/rust-lang/josh-sync.

r? ``@ghost``
2025-08-05 03:51:41 +02:00
Robert Serrano Kobylyansky affe2c4376 Update installation.md
The `--enable-offload` and `--enable--enzyme` arguments don't seem to work.

Changing them to `--enable-llvm-offload` and `--enable-llvm-enzyme` resulted in the `boostrap.toml` file generating succesfully.
2025-08-04 13:08:29 +01:00
Jakub Beránek 450040f2d3 Implement debugging output of the bootstrap Step graph into a DOT file 2025-08-04 08:29:18 +02:00
The rustc-josh-sync Cronjob Bot 682a6e17e4 Merge ref '383b9c447b61' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 383b9c447b
Filtered ref: 14b7b0bbd1e38402fca29ef84e5f75ee9d8cb1a9

This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-04 04:25:09 +00:00
The rustc-josh-sync Cronjob Bot b8d1af5e56 Prepare for merging from rust-lang/rust
This updates the rust-version file to 383b9c447b.
2025-08-04 04:24:59 +00:00
Stuart Cook 79e7e0359e Rollup merge of #144811 - jieyouxu:target-maintainer-docs, r=Noratrieb
Stylize `*-lynxos178-*` target maintainer handle to make it easier to copy/paste

Apparently I forgot to submit this branch I had lying around.

Noticed while reviewing Tier 3 target platform support pages. In the same style as rust-lang/rust#139028.
2025-08-04 11:24:41 +10:00
Samuel Tardieu 3823f0bc07 Rollup merge of #144738 - bjorn3:remove_omit_gdb_pretty_printer_section, r=jieyouxu
Remove the omit_gdb_pretty_printer_section attribute

Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
2025-08-03 21:56:56 +02:00
Tshepang Mbambo f84c62112a there is still no official policy 2025-08-03 07:18:26 +02:00
Tshepang Mbambo 3bba46bb52 Merge pull request #2509 from rust-lang/tshepang-auto-toc
make toc generation fully automatic
2025-08-03 06:55:44 +02:00
Kivooeo 5ebb0dd7da update doc 2025-08-02 19:01:07 +05:00
Jieyou Xu fe7730f648 Stylize *-lynxos178-* target maintainer handle to make it easier to copy/paste 2025-08-02 15:24:44 +08:00
Tshepang Mbambo 171c2478c0 Merge pull request #2526 from rust-lang/rustc-pull
Rustc pull update
2025-08-02 00:40:01 +02:00
bjorn3 ae2f8d9216 Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more
reliable. Before this commit the .gdb_debug_scripts section couldn't be
included in dylibs or rlibs as otherwise there is no way to disable the
section anymore without recompiling the entire standard library.
2025-08-01 20:04:59 +00:00
lcnr 219e4c141d Merge pull request #2530 from lcnr/type-system-invariants
fix link
2025-08-01 15:50:18 +02:00
lcnr ba57bbadc9 rarw 2025-08-01 15:49:36 +02:00
lcnr c277f4e64d Merge pull request #2529 from lcnr/type-system-invariants
add a chapter documenting candidate preference
2025-08-01 15:27:32 +02:00
lcnr 4f60c9097a rarw 2025-08-01 15:25:50 +02:00
lolbinarycat cab16432fb improve linking in the "Auxilirary builds" section of directive index 2025-07-31 13:33:51 -05:00
The rustc-josh-sync Cronjob Bot 7cab27d73a Merge ref '32e7a4b92b10' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 32e7a4b92b
Filtered ref: d39f3479bfafb04026ed3afec68aa671d13e9c3c

This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-31 04:17:04 +00:00
The rustc-josh-sync Cronjob Bot 7d378192a7 Prepare for merging from rust-lang/rust
This updates the rust-version file to 32e7a4b92b.
2025-07-31 04:16:57 +00:00
Samuel Tardieu b38ece9021 Rollup merge of #143465 - kornelski:extern-name, r=petrochenkov
Support multiple crate versions in --extern-html-root-url

Rustdoc's `--extern-html-root-url` used to use `tcx.crate_name()` to identify crates, but that used crates' internal names from their metadata, instead of names given to them in `--extern`. That was confusing, because both `--extern…` arguments seem related and use similar syntax. Crucially, this didn't work correctly with Cargo's package aliases or multiple versions of crates.

`sess.opts.externs` lacks `CrateNum`, and `Resolver.extern_prelude` gets destroyed before `rustdoc` has a chance to see it, so I've had to save this mapping in `CStore`.

Just in case, I've kept the previous mapping by crate name as a fallback for crates that weren't matched by their extern name.

Fixes rust-lang/rust#76296
2025-07-30 19:49:01 +02:00
tiif 712c28e832 Remove space
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
2025-07-30 11:54:32 +02:00
tiif ec40ee4c4e Add documentation for unstable_feature_bound 2025-07-30 09:30:10 +00:00
Jakub Beránek 951a6f792d Remove outdated ci.py reference 2025-07-30 08:11:01 +02:00
Daniel Paoliello cffde732ce Verify llvm-needs-components are not empty and match the --target value 2025-07-29 11:20:23 -07:00
Jakub Beránek 6a40a17051 Use main branch of josh-sync for CI workflow 2025-07-29 10:02:50 +02:00
Jakub Beránek 7e4ded4169 Remove bot-pull-requests triagebot config 2025-07-29 09:53:04 +02:00
Jakub Beránek ede338cd8f WIP: auth using GitHub app 2025-07-29 09:35:50 +02:00
Kornel 276c4238a7 Support multiple crate versions in --extern-html-root-url 2025-07-28 13:34:03 +01:00
Tshepang Mbambo 65589ad33f remove the markers 2025-07-28 11:45:21 +02:00
Tshepang Mbambo 3e6f950d66 avoid the need to specify if toc should be generated
- this removes one external dependency, mdbook-toc
- this steals code from rustc book
2025-07-28 09:26:08 +02:00
Tshepang Mbambo b707493721 reword to avoid using a term used in a confusing manner, "error annotations" 2025-07-28 09:09:41 +02:00
Tshepang Mbambo 66445e7975 fix pauses 2025-07-28 08:57:48 +02:00
The rustc-josh-sync Cronjob Bot 645b85e3d5 Merge ref '2b5e239c6b86' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 2b5e239c6b
Filtered ref: dde2393b3444ae8595633863f4395f526b1b7932

This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-28 04:18:40 +00:00
The rustc-josh-sync Cronjob Bot 8d82365a64 Prepare for merging from rust-lang/rust
This updates the rust-version file to 2b5e239c6b.
2025-07-28 04:18:33 +00:00
Matthias Krüger e2a5862d22 Rollup merge of #144435 - tshepang:rdg-sync, r=jieyouxu
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/4e310882ba9eaa71a192870837e949854057b3b0.

Created using https://github.com/rust-lang/josh-sync.

r? ```@ghost```
2025-07-26 15:28:02 +02:00
Travis Cross 64604ad1da Revise content on lang feature processes
Let's revise both the new content in this PR as well as the remaining
text in the relevant chapters so as to better describe our current
processes related to language features and their stabilizations.

For the new stabilization report template, based on reviewing its
early use and well as reviewing earlier stabilization reports, we've
revised it editorially and added questions designed to capture
additional details to which we commonly want people to speak.
2025-07-25 22:28:10 +00:00
Jieyou Xu 7547b15acb Address review feedback
- Address Call for Testing review feedback
- Address Affiliated work review feedback
- Drop "stabilization is easy" part
- Fix broken feature gate examples
- Elaborate on stabilization report summarization aspects
- Recommend waiting a bit for team nominations
- Make Stabilization Template markdown copy friendly
- Register stabilization report template
- Drop unfinished sentence
- Clarify stabilization report template is for language features
- Add test coverage elaboration
- Add UB checks / opt question
- Amend test coverage explanation
- Mention OSS nightly users
2025-07-25 22:28:10 +00:00
Niko Matsakis 857f46eb39 Address review feedback
Co-authored-by: lcnr <rust@lcnr.de>
Co-authored-by: Ralf Jung <post@ralfj.de>
Co-authored-by: waffle <waffle.lapkin@gmail.com>
2025-07-25 22:28:10 +00:00