about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2025-08-21Demote x86_64-apple-darwin to Tier 2 with host toolsJake Goulding-2/+5
Switch to only using aarch64 runners (implying we are now cross-compiling) and stop running tests. In the future, we could enable (some?) tests via Rosetta 2. (cherry picked from commit c574c91e5739519b2fd3fdb5f07fa6e102705703)
2025-08-15Revert #143031 and #140772 due to #144533Mateusz Mikuła-3/+3
Revert <https://github.com/rust-lang/rust/pull/143031> and <https://github.com/rust-lang/rust/pull/140772> due to the issue with host tools reported in <https://github.com/rust-lang/rust/issue/144533>. This reverts commits 508021aa4320f1feb4c7a783ee16c2feebc9249a and d577b39c5a39796e911f885c9a354074b52c25ab. The decision was made in <https://github.com/rust-lang/rust/pull/144659#issuecomment-3182163412>. Tracking issue: <https://github.com/rust-lang/rust/issue/145435>
2025-07-30Rollup merge of #143465 - kornelski:extern-name, r=petrochenkovSamuel Tardieu-0/+6
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-29Verify llvm-needs-components are not empty and match the --target valueDaniel Paoliello-2/+11
2025-07-28Support multiple crate versions in --extern-html-root-urlKornel-0/+6
2025-07-28reword to avoid using a term used in a confusing manner, "error annotations"Tshepang Mbambo-2/+3
2025-07-28fix pausesTshepang Mbambo-2/+2
2025-07-28Merge ref '2b5e239c6b86' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-4/+4
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 2b5e239c6b86cde974b0ef0f8e23754fb08ff3c5 Filtered ref: dde2393b3444ae8595633863f4395f526b1b7932 This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-28Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to 2b5e239c6b86cde974b0ef0f8e23754fb08ff3c5.
2025-07-26Rollup merge of #144435 - tshepang:rdg-sync, r=jieyouxuMatthias Krüger-14/+15
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-25Revise content on lang feature processesTravis Cross-263/+333
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-25Address review feedbackJieyou Xu-51/+124
- 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-25Address review feedbackNiko Matsakis-5/+5
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-25Add stabilization template and revise docsNiko Matsakis-36/+99
2025-07-25Merge pull request #2518 from rust-lang/rustc-pullTshepang Mbambo-16/+24
Rustc pull update
2025-07-24Rename tests/ui/SUMMARY.md and update rustc dev guide on error-patternOneirical-4/+4
2025-07-24Merge ref 'efd420c770bb' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-15/+23
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: efd420c770bb179537c01063e98cb6990c439654 Filtered ref: d11dbbb02905535a89393e80c24274bee81fa928 This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-24Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to efd420c770bb179537c01063e98cb6990c439654.
2025-07-23Update josh sync documentationJakub Beránek-13/+10
Now all our Josh subtrees should be using josh-sync.
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-11/+11
2025-07-22Rename `tests/assembly` into `tests/assembly-llvm`Guillaume Gomez-4/+4
2025-07-22Rollup merge of #144251 - tshepang:rdg-sync, r=jieyouxu许杰友 Jieyou Xu (Joe)-8/+8
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/cca233729f03d0c59456cd3e866f92681faf4c54. Created using https://github.com/rust-lang/josh-sync. r? ```@ghost```
2025-07-22Rollup merge of #142097 - ZuseZ4:offload-host1, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+8
gpu offload host code generation r? ghost This will generate most of the host side code to use llvm's offload feature. The first PR will only handle automatic mem-transfers to and from the device. So if a user calls a kernel, we will copy inputs back and forth, but we won't do the actual kernel launch. Before merging, we will use LLVM's Info infrastructure to verify that the memcopies match what openmp offloa generates in C++. `LIBOMPTARGET_INFO=-1 ./my_rust_binary` should print that a memcpy to and later from the device is happening. A follow-up PR will generate the actual device-side kernel which will then do computations on the GPU. A third PR will implement manual host2device and device2host functionality, but the goal is to minimize cases where a user has to overwrite our default handling due to performance issues. I'm trying to get a full MVP out first, so this just recognizes GPU functions based on magic names. The final frontend will obviously move this over to use proper macros, like I'm already doing it for the autodiff work. This work will also be compatible with std::autodiff, so one can differentiate GPU kernels. Tracking: - https://github.com/rust-lang/rust/issues/131513
2025-07-21typoTshepang Mbambo-1/+1
2025-07-21Merge pull request #2514 from rust-lang/tshepang/for-ssh-protocolJakub Beránek-0/+4
add rdg push git config entry for git protocol pushers (again)
2025-07-21already documented elsewhereTshepang Mbambo-8/+2
2025-07-21add rdg push git config entry for git protocol pushers (again)Tshepang Mbambo-0/+10
2025-07-21Merge pull request #2512 from rust-lang/rustc-pullTshepang Mbambo-26/+37
Rustc pull update
2025-07-21fix some typosTshepang Mbambo-6/+6
2025-07-21Merge ref '460259d14de0' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-25/+36
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 460259d14de0274b97b8801e08cb2fe5f16fdac5 Filtered ref: 599ee17eb87c83f97eb37fd9fe264da65d4c9461 This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-21Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to 460259d14de0274b97b8801e08cb2fe5f16fdac5.
2025-07-20Add new `needs-backends` tests annotationsGuillaume Gomez-0/+1
2025-07-20Add new `ignore-backends` tests annotationsGuillaume Gomez-0/+1
2025-07-20Auto merge of #143002 - Enselic:tests-ui-run-fail-exit-vs-signal, r=petrochenkovbors-7/+19
tests: Require `run-fail` ui tests to have an exit code (`SIGABRT` not ok) And introduce two new directives for ui tests: * `run-crash` * `run-fail-or-crash` Normally a `run-fail` ui test like tests that panic shall not be terminated by a signal like `SIGABRT`. So begin having that as a hard requirement. Some of our current tests do terminate by a signal/crash however. Introduce and use `run-crash` for those tests. Note that Windows crashes are not handled by signals but by certain high bits set on the process exit code. Example exit code for crash on Windows: `0xc000001d` (`STATUS_ILLEGAL_INSTRUCTION`). Because of this, we define "crash" on all platforms as "not exit with success and not exit with a regular failure code in the range 1..=127". Some tests behave differently on different targets: * Targets without unwind support will abort (crash) instead of exit with failure code 101 after panicking. As a special case, allow crashes for `run-fail` tests for such targets. * Different sanitizer implementations handle detected memory problems differently. Some abort (crash) the process while others exit with failure code 1. Introduce and use `run-fail-or-crash` for such tests. This adds further (cc https://github.com/rust-lang/rust/pull/142304, https://github.com/rust-lang/rust/pull/142886) protection against the regression in https://github.com/rust-lang/rust/issues/123733 since that bug also manifested as `SIGABRT` in `tests/ui/panics/panic-main.rs` (shown as `Aborted (core dumped)` in the logs attached to that issue, and I have also been able to reproduce this locally). ### TODO - [x] **Q:** what about on Windows? **A:** we'll treat any exit code outside of 1 - 127 as "crashed", and we'll do the same on unix. - [x] test all permutations of actual vs expected **Done:** See https://github.com/rust-lang/rust/pull/143002#issuecomment-3007502894. - [x] Handle targets without unwind support - [x] Add `run-fail-or-crash` for some sanitizer tests - [x] remote-test-client. See https://github.com/rust-lang/rust/pull/143448 ### Zulip discussion See https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/compiletest.3A.20terminate.20by.20signal.20vs.20exit.20with.20error/with/525611235 try-job: aarch64-apple try-job: x86_64-msvc-1 try-job: x86_64-gnu try-job: dist-i586-gnu-i586-i686-musl try-job: test-various try-job: armhf-gnu
2025-07-19tests: Require `run-fail` ui tests to have an exit code (`SIGABRT` not ok)Martin Nordholts-7/+19
And introduce two new directives for ui tests: * `run-crash` * `run-fail-or-crash` Normally a `run-fail` ui test like tests that panic shall not be terminated by a signal like `SIGABRT`. So begin having that as a hard requirement. Some of our current tests do terminate by a signal/crash however. Introduce and use `run-crash` for those tests. Note that Windows crashes are not handled by signals but by certain high bits set on the process exit code. Example exit code for crash on Windows: `0xc000001d`. Because of this, we define "crash" on all platforms as "not exit with success and not exit with a regular failure code in the range 1..=127". Some tests behave differently on different targets: * Targets without unwind support will abort (crash) instead of exit with failure code 101 after panicking. As a special case, allow crashes for `run-fail` tests for such targets. * Different sanitizer implementations handle detected memory problems differently. Some abort (crash) the process while others exit with failure code 1. Introduce and use `run-fail-or-crash` for such tests.
2025-07-19Rollup merge of #144149 - reallesee:master, r=Noratrieb许杰友 Jieyou Xu (Joe)-1/+1
docs: update link to RISC-V and Xtensa installation guide Replace outdated link https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html with the official Espressif documentation at https://docs.espressif.com/projects/rust/book/installation/index.html
2025-07-18add unstable-books doc for offloadManuel Drehwald-0/+8
2025-07-18docs: update link to RISC-V and Xtensa installation guideMicke-1/+1
2025-07-18Rollup merge of #143961 - 1c3t3a:correct-exploit-mitigations, r=rcvalleMatthias Krüger-11/+11
Correct which exploit mitigations are enabled by default This was brought up by ``@Noratrieb`` in [#project-exploit-mitigations > Incorrect table in the rustc book](https://rust-lang.zulipchat.com/#narrow/channel/343119-project-exploit-mitigations/topic/Incorrect.20table.20in.20the.20rustc.20book/with/523684203). Thanks! :) [Rendered](https://github.com/rust-lang/rust/blob/132a47e72316b60e99c3e5fefb9c3a06641138e4/src/doc/rustc/src/exploit-mitigations.md) r? ``@rcvalle``
2025-07-18fix typosYiqun Liu-1/+1
2025-07-18Rollup merge of #144049 - tshepang:rust-push, r=jieyouxuMatthias Krüger-983/+151
rustc-dev-guide subtree update r? ghost
2025-07-17parse `const trait Trait`Deadbeef-6/+3
2025-07-17copy-paste convenienceTshepang Mbambo-1/+4
2025-07-17Merge ref 'fd2eb391d032' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-170/+214
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: fd2eb391d032181459773f3498c17b198513e0d0 Filtered ref: 1ea8d5f9c22f0930a0caa27637ef9232fead3c2b This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-17Prepare for merging from rust-lang/rustThe rustc-josh-sync Cronjob Bot-1/+1
This updates the rust-version file to fd2eb391d032181459773f3498c17b198513e0d0.
2025-07-17some improvements to "Invariants of the type system"Tshepang Mbambo-19/+22
2025-07-16go over invariants again :3lcnr-33/+48
Co-authored-by: Boxy <rust@boxyuwu.dev>
2025-07-15Add `0323pin` as target maintainer, and fix link to pkgsrc-wip and explain.Havard Eidnes-1/+2
2025-07-15Correct which exploit mitigations are enabled by defaultBastian Kersting-11/+11
2025-07-15Rollup merge of #143938 - rustbot:docs-update, r=ehussSamuel Tardieu-0/+0
Update books ## rust-lang/book 3 commits in ef1ce8f87a8b18feb1b6a9cf9a4939a79bde6795..b2d1a0821e12a676b496d61891b8e3d374a8e832 2025-07-08 17:24:41 UTC to 2025-07-02 21:30:57 UTC - Chapter 16 from tech review (rust-lang/book#4438) - WIP ch 17 edits after tech review (rust-lang/book#4319) - Chapter 15 from tech review (rust-lang/book#4433) ## rust-embedded/book 1 commits in 41f688a598a5022b749e23d37f3c524f6a0b28e1..fe88fbb68391a465680dd91109f0a151a1676f3e 2025-07-08 18:54:25 UTC to 2025-07-08 18:54:25 UTC - Clarify usage of #[interrupt] attribute and recommend device crate re… (rust-embedded/book#386) ## rust-lang/nomicon 3 commits in 8b61acfaea822e9ac926190bc8f15791c33336e8..3ff384320598bbe8d8cfe5cb8f18f78a3a3e6b15 2025-07-05 07:34:22 UTC to 2025-07-05 07:13:51 UTC - Add build script part to FFI chapter for more clear and smooth learn … (rust-lang/nomicon#440) - Cleanups for tree example of splitting borrows (rust-lang/nomicon#443) - Handle drop zst (rust-lang/nomicon#425) ## rust-lang/reference 17 commits in e9fc99f107840813916f62e16b3f6d9556e1f2d8..1f45bd41fa6c17b7c048ed6bfe5f168c4311206a 2025-07-11 23:15:51 UTC to 2025-07-01 16:49:33 UTC - mention an important use for the naked attribute (rust-lang/reference#1929) - Array expression repeat operands can be const blocks. (rust-lang/reference#1928) - Document (tuple) struct pattern namespace behavior (rust-lang/reference#1925) - Replace set of en dashes with set of em dashes (rust-lang/reference#1926) - Update `should_panic` to use the attribute template (rust-lang/reference#1882) - const-eval.const-expr.borrows: mention indirect places (rust-lang/reference#1865) - associated-items.md: remove redundant word (rust-lang/reference#1874) - introduction.md: replace hard-to-read example (rust-lang/reference#1873) - typo (rust-lang/reference#1924) - Update `ignore` to use the attribute template (rust-lang/reference#1881) - Update `test` to use the attribute template (rust-lang/reference#1880) - Update `cfg_attr` to use the attribute template (rust-lang/reference#1879) - Update `cfg` to use the attribute template (rust-lang/reference#1878) - allow constants to refer to mutable/external memory, but reject such constants as patterns (rust-lang/reference#1859) - Remove outdated comment about non-copy unions (rust-lang/reference#1872) - Add a template for documenting attributes (rust-lang/reference#1877) - Switch enum grammar to use "variant" (rust-lang/reference#1876) ## rust-lang/rust-by-example 1 commits in 288b4e4948add43f387cad35adc7b1c54ca6fe12..e386be5f44af711854207c11fdd61bb576270b04 2025-07-04 23:17:15 UTC to 2025-07-04 23:17:15 UTC - Update Chinese translations (rust-lang/rust-by-example#1943)