许杰友 Jieyou Xu (Joe)
8561cc8ddf
Only keep label description in Forge docs
2025-01-06 18:59:36 +02:00
Jakub Beránek
be5d7818f3
Add rustc-dev-guide to the list of repositories managed by josh ( #2197 )
2025-01-06 18:30:59 +08:00
Boxy
25beca904f
add josh-sync build dir to gitignore ( #2196 )
2025-01-06 02:57:03 +08:00
Jakub Beránek
98d7162b26
Preparing for merge from rustc
2025-01-05 18:15:01 +01:00
Boxy
1a75c30604
Split stuff out of representing types, and rewrite early/late bound chapter ( #2192 )
2025-01-05 17:51:45 +01:00
Stuart Cook
a483d98993
Describe how to use rust-analyzer with rmake.rs ( #2191 )
2025-01-05 17:51:45 +01:00
Tshepang Mbambo
f46e4aa3a9
fix comment
2025-01-05 17:51:45 +01:00
Tshepang Mbambo
a5207d30d3
make paragraph more readable
2025-01-05 17:51:45 +01:00
Tshepang Mbambo
2e6c7b4cc1
repetition not needed
2025-01-05 17:51:45 +01:00
Jakub Beránek
047e26bcad
Document josh subtrees and update subtree repository list ( #2182 )
2025-01-05 17:51:45 +01:00
Jakub Beránek
1c4ad64a44
Add tooling for performing Josh synces ( #2183 )
2025-01-05 17:51:45 +01:00
Onur Özkan
6c43e06e11
comment out FIXMEs to not display them on UI ( #2186 )
2025-01-05 17:51:45 +01:00
bors
7270e73b62
Auto merge of #135074 - wzssyqa:mips-mti, r=oli-obk
...
Target: Add mips mti baremetal support
Do the same thing as gcc, which use the vendor `mti` to mark the toolchain as MIPS32r2 default.
We support both big endian and little endian flavor:
mips-mti-none-elf
mipsel-mti-none-elf
2025-01-05 07:01:38 +00:00
YunQiang Su
1a82287070
Update src/doc/rustc/src/platform-support/mips-mti-none-elf.md
...
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2025-01-05 14:46:54 +08:00
Jubilee
dcb8be8934
Rollup merge of #134996 - bdbai:uwp-support, r=jieyouxu,ChrisDenton
...
Add UWP (msvc) target support page
- Added Platform Support page for `x86_64-uwp-windows-msvc`, `i686-uwp-windows-msvc`, `thumbv7a-uwp-windows-msvc` and `aarch64-uwp-windows-msvc`
- Adding myself as a maintainer
- Removing the ticks for `thumbv7a-pc-windows-msvc` and `thumbv7a-uwp-windows-msvc` as they do not currently build due to #134565 and https://github.com/rust-lang/backtrace-rs/pull/685
- Fixed a few minor issues to let most of the UWP targets compile
- Happy new year to all!
r? jieyouxu
2025-01-04 17:23:16 -08:00
YunQiang Su
5a0ce36232
Target: Add mips mti baremetal support
...
Do the same thing as gcc, which use the vendor `mti` to mark
the toolchain as MIPS32r2 default.
We support both big endian and little endian flavor:
mips-mti-none-elf
mipsel-mti-none-elf
2025-01-03 22:23:49 +08:00
Matthias Krüger
8439ae7422
Rollup merge of #131729 - Urgau:check-cfg-test-userspace, r=petrochenkov
...
Make the `test` cfg a userspace check-cfg
This PR implements MCP https://github.com/rust-lang/compiler-team/issues/785 , which makes the `test` cfg a "userspace" check-cfg, i.e. no longer included in the well known cfg list.
Things to do:
- [x] Accept the MCP (https://github.com/rust-lang/compiler-team/issues/785#issuecomment-2424121886 )
- [x] Mark `test` in Cargo (https://github.com/rust-lang/cargo/pull/14963 )
`@rustbot` labels +S-waiting-on-MCP +F-check_cfg
r? `@petrochenkov`
2025-01-03 07:57:24 +01:00
bdbai
33b0606041
Add UWP support page
2025-01-03 11:15:06 +08:00
Urgau
e8a4792b3e
Make the test cfg a "userspace" check-cfg
2025-01-02 16:49:55 +01:00
Jakub Beránek
8decc04e75
Add rustc-dev-guide as a josh subtree
2025-01-01 17:06:11 +01:00
Jakub Beránek
ccee38a930
Removed rustc-dev-guide as a submodule
2025-01-01 17:05:53 +01:00
bors
a8953d83cf
Auto merge of #134926 - rustbot:docs-update, r=ehuss
...
Update books
## rust-lang/book
13 commits in ad2011d3bcad9f152d034faf7635c22506839d58..04d06dfe541607e6419f3d028c3f9b245f3be4d9
2024-12-20 22:44:11 UTC to 2024-12-16 18:18:21 UTC
- Update section name (rust-lang/book#4175 )
- Update text to reflect the change from '&str' to 'char' in example (rust-lang/book#4173 )
- Update figure number in text and file name (rust-lang/book#4172 )
- Fix chapter number (rust-lang/book#4171 )
- Delete unused reference (rust-lang/book#4170 )
- Remove orphaned half-sentence (rust-lang/book#4169 )
- Fix chapter number (rust-lang/book#4168 )
- A better phrasing for generic methods. (rust-lang/book#3428 )
- Fix minor grammatical error (rust-lang/book#4098 )
- Update appendix-06-translation.md to add another Chinese translation. (rust-lang/book#3608 )
- Change Korean translation repo to newer (rust-lang/book#3625 )
- Clarify/improve readability in Ch. 02 discussion of `Result` variants (rust-lang/book#4167 )
- Ch. 20: conclude §01 with a reference to the Rustonomicon (rust-lang/book#4166 )
## rust-lang/nomicon
1 commits in 97e84a38c94bf9362b11284c20b2cb4adaa1e868..7ef05b9777c94836bc92f50f23e6e00981521a89
2024-12-30 10:38:10 UTC to 2024-12-30 10:38:10 UTC
- Fix URL fragment to MutexGuard's negative impl of Send (rust-lang/nomicon#472 )
## rust-lang/reference
3 commits in 9f41bc11342d46544ae0732caf14ec0bcaf27376..acd6794e712d5e2ef6f5c84fb95688d32a69b816
2024-12-18 23:04:30 +0000 to 2024-12-30 22:12:57 +0000
- Revert "`coverage` attribute" (rust-lang/reference#1706 )
- Document Rust 2024 match ergonomics reservations (rust-lang/reference#1702 )
- Add documentation for `#[diagnostic::do_not_recommend]` (rust-lang/reference#1663 )
## rust-lang/edition-guide
5 commits in bc4ce51e1d4dacb9350a92e95f6159a42de2f8c6..d56e0f3a0656b7702ca466d4b191e16c28262b82
2024-12-18 05:34:59 +0000 to 2024-12-31 20:04:52 +0000
- 2024: Document rustfmt overflow_delimited_expr (rust-lang/edition-guide#352 )
- 2024: Document rustfmt fixes (rust-lang/edition-guide#351 )
- Update the transitioning steps (rust-lang/edition-guide#350 )
- Revert "2024: Assignment operator RHS indentation" (rust-lang/edition-guide#343 )
- Revert "2024: Add chapter on single-line `where` clauses" (rust-lang/edition-guide#344 )
## rust-lang/rust-by-example
1 commits in 76406337f4131253443aea0ed7e7f451b464117c..093397535b48ae13ec76bc526b7e6eb8c096a85c
2024-12-18 17:29:56 UTC to 2024-12-18 17:29:56 UTC
- Mention that you're not allowed to partially move Drop types (rust-lang/rust-by-example#1902 )
## rust-lang/rustc-dev-guide
18 commits in 7f7ba48f04abc2ad25e52f30b5e2bffa286b019f..ad93c5f1c49f2aeb45f7a4954017b1e607df9f5e
2024-12-30 09:22:22 UTC to 2024-12-17 17:00:38 UTC
- Opt into, rather than out of, linkcheck (rust-lang/rustc-dev-guide#2180 )
- Remove stale implementation details of coverage instrumentation (rust-lang/rustc-dev-guide#2179 )
- Remove properly tracked config file from .gitignore & add support for skipping of link-checking (rust-lang/rustc-dev-guide#2023 )
- Add a couple of linkcheck exceptions: (rust-lang/rustc-dev-guide#2120 )
- Add missing link for [Node] (rust-lang/rustc-dev-guide#2177 )
- Fix 403 received for HEAD request (rust-lang/rustc-dev-guide#2176 )
- Start using mdbook-linkcheck2 (rust-lang/rustc-dev-guide#2103 )
- Document `x test --no-capture` (rust-lang/rustc-dev-guide#2174 )
- Remove the `-test` suffix from normalize directives (rust-lang/rustc-dev-guide#2172 )
- Rework the driver docs (rust-lang/rustc-dev-guide#2162 )
- Document `forbid-output` for UI tests (rust-lang/rustc-dev-guide#2171 )
- completions: Zsh is now supported (rust-lang/rustc-dev-guide#2173 )
- region-outlives propagation (rust-lang/rustc-dev-guide#2169 )
- compiletest: Document the `--debugger` flag (rust-lang/rustc-dev-guide#2170 )
- document the public ci dashboard (rust-lang/rustc-dev-guide#2167 )
- Fix trivial typo of "query-fied" (rust-lang/rustc-dev-guide#2165 )
- Fix some typos (rust-lang/rustc-dev-guide#2166 )
- Add suggestion for `--keep-stage 0` (rust-lang/rustc-dev-guide#2164 )
2025-01-01 05:25:45 +00:00
Trevor Gross
9472d32842
Rollup merge of #134975 - ehuss:revert-style-guide-rhs-break, r=compiler-errors
...
Revert style guide rhs break
This reverts https://github.com/rust-lang/rust/pull/132369 and https://github.com/rust-lang/rust/pull/119838 . The style-guide change for indentation of rhs was not implemented in time for the 2024 style edition.
See tracking issue https://github.com/rust-lang/rust/issues/132380 .
cc #134974 for the other style guide change in 2024.
r? ``@compiler-errors``
2024-12-31 18:42:26 -05:00
Trevor Gross
fee79a2900
Rollup merge of #134974 - ehuss:revert-single-line-where, r=compiler-errors
...
Revert #119515 single line where clause style guide
This did not get implemented for the style edition in 2024, so this PR removes it from the documentation.
See tracking issue https://github.com/rust-lang/rust/issues/132381 .
This can be added back in the next edition if it gets implemented. I'm a little unclear on what the style team intends for how future changes are documented. For example, the current style-guide documented behavior that rustfmt does not support. I'm not sure who the audience for this document is, or how this is intended to stay in sync with rustfmt. For example, if I read this and assume this is how it is supposed to work, and then rustfmt breaks that, it seems like that is confusing. Similarly, if I'm staying on an older edition, this documentation would be incorrect for my crate.
Perhaps changes like this could be "teed-up" in a PR, but not merged until the edition is stabilized (similar to how the reference works)? And include notes for parts that are edition-specific (so if I am using an older edition, I can see that something is different). In general, I'm a little confused on how this is intended to work.
Reverts:
- https://github.com/rust-lang/rust/pull/119515
2024-12-31 18:42:25 -05:00
Eric Huss
40b2cd9dde
Update reference, edition-guide
2024-12-31 12:29:50 -08:00
Eric Huss
7a46c7b112
Revert "Rollup merge of #119838 - joshtriplett:style-guide-binop-indent, r=compiler-errors"
...
This reverts commit 36287830a2 , reversing
changes made to 31026b7fe3 .
2024-12-31 08:50:28 -08:00
Eric Huss
a6ba04ae6a
Revert "Rollup merge of #132369 - joshtriplett:style-guide-binop-heuristic-assignment-only, r=calebcartwright"
...
This reverts commit 348d28052b , reversing
changes made to 526c67f37b .
2024-12-31 08:50:04 -08:00
Eric Huss
b4a092662c
Revert "Rollup merge of #119515 - joshtriplett:style-guide-gat-where-clause-same-line, r=compiler-errors"
...
This reverts commit 4d1cce9de5 , reversing
changes made to 030a12ce2b .
2024-12-31 07:57:06 -08:00
Max Heller
17d512ab59
Use id attribute for <a> tags instead of deprecated name attribute ( #2184 )
2024-12-31 22:02:50 +08:00
Matthias Krüger
3e888820bd
Rollup merge of #134610 - tbu-:pr_doc_target_fmt, r=Noratrieb
...
Format `build.toml` consistently in platform support docs
Also fix compiler team name in target tier docs.
2024-12-31 14:30:42 +01:00
Matthias Krüger
953418c957
Rollup merge of #132477 - Noratrieb:illumos-oxide, r=workingjubilee
...
Add illumos target documentation
Fixes https://github.com/rust-lang/rust/pull/130132#issuecomment-2339055221
`@jclulow` `@pfmooney` I'm adding you as requested.
The page is very barebones (as I do not know illumos well) and could use some improvements (for example in the "Cross-compilation toolchains and C code" section).
Feel free to suggest improvements (or rewrite it from scratch) if you find something.
2024-12-30 19:34:54 +01:00
rustbot
b560f5af11
Update books
2024-12-30 12:01:17 -05:00
Noratrieb
ac3ffccf37
Add illumos target documentation
2024-12-30 16:25:25 +01:00
Noah Lev
cc9a6fa552
Opt into, rather than out of, linkcheck ( #2180 )
...
This makes it less of a hassle to render the book locally.
2024-12-30 17:22:22 +08:00
Stuart Cook
6a8c200e6c
Remove stale implementation details of coverage instrumentation ( #2179 )
...
This level of detail in the dev guide is a maintenance burden; better to leave
this sort of thing to in-tree comments.
2024-12-30 12:02:52 +11:00
bors
6cd33d889d
Auto merge of #134901 - matthiaskrgr:rollup-b0wwuht, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #134870 (Fix sentence fragment in `pin` module docs)
- #134884 (Fix typos)
- #134892 (Added codegen test for elidings bounds check when indexes are manually checked)
- #134894 (Document how to run the split Docker pipelines)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-12-29 23:16:13 +00:00
Martin Liška
a4e98268bb
Remove properly tracked config file from .gitignore & add support for skipping of link-checking ( #2023 )
...
* Remove properly tracked config file from .gitignore
The file is part of the git history and is a configuration file.
Fixes : #2018
* Add env. variable support
* Refactoring
* Really skip linkcheck if requested
2024-12-29 13:23:49 -08:00
Martin Liška
bb3f3d8efd
Add a couple of linkcheck exceptions: ( #2120 )
...
* Add a couple of linkcheck exceptions:
Addresses:
```
Server returned 500 Internal Server Error for https://github.com/rust-lang/rust/pulls?q=is%3Apr+label%3AS-inactive+is%3Aclosed
Server returned 401 Unauthorized for https://objects.githubusercontent.com/github-production-release-asset-2e65be/343907537/60cd5880-7b81-11eb-9502-68d5f473ebe2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241103%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241103T085906Z&X-Amz-Expires=300&X-Amz-Signature=e532fd7d2bd271f12988982bc8e5a47a0f966b40452b55d444bbb74292ac1fb1&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Drustc.generic.wpaProfile&response-content-type=application%2Foctet-stream
Server returned 500 Internal Server Error for https://github.com/rust-lang/rust/pulls?q=is%3Apr+label%3AS-inactive
```
* Skip only github.com/rust-lang/rust/pulls?q=
2024-12-29 12:58:21 -08:00
Martin Liška
7ab1ca0f63
Add missing link for [Node] ( #2177 )
2024-12-30 04:34:34 +08:00
Martin Liška
8f3ffa3084
Fix 403 received for HEAD request ( #2176 )
2024-12-30 04:33:45 +08:00
Matthias Krüger
344a61e69b
Rollup merge of #134884 - calciumbe:patch1, r=jieyouxu
...
Fix typos
Hello, I fix some typos in docs and comments. Thank you very much.
2024-12-29 21:18:07 +01:00
bors
14ee63a3c6
Auto merge of #134765 - Noratrieb:linux-none-cant-unwind-silly, r=jieyouxu
...
Improve default target options for x86_64-unknown-linux-none
Without a standard library, we cannot unwind, so it should be panic=abort by default.
Additionally, it does not have std because while it is Linux, it cannot use libc, which std uses today for Linux.
Using PIE by default may be surprising to users, as shown in #134763 , so I've documented it explicitly. I'm not sure if we want to count that as fixing the issue or not.
cc `@morr0ne,` as you added the target (and are the maintainer), and `@Noratrieb,` who reviewed that PR (:D).
2024-12-29 20:10:37 +00:00
Noratrieb
b235cc9e70
Document x86_64-unknown-linux-none is PIE by default
2024-12-29 18:12:34 +01:00
dxsullivan
0ebdc0c431
docs: fix typos
2024-12-29 21:51:30 +08:00
calciumbe
4f8bebd6b5
fix: typos
...
Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
2024-12-29 21:35:02 +08:00
Martin Liška
e19542f0a9
Start using mdbook-linkcheck2 ( #2103 )
2024-12-28 15:00:32 -08:00
Tamir Duberstein
35e5c7d438
Document virality of feature(rustc_private)
...
Since 9cb1998ea1 this feature is viral.
2024-12-28 11:45:25 -05:00
clubby789
1a99d3bafa
Document x test --no-capture ( #2174 )
2024-12-28 19:55:20 +08:00
Stuart Cook
dec978fb3b
Remove the -test suffix from normalize directives ( #2172 )
2024-12-28 17:32:43 +08:00
bjorn3
1289e54d58
Rework the driver docs ( #2162 )
2024-12-27 20:40:32 +08:00