about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2025-04-12remove implied textTshepang Mbambo-1/+1
"how much to trust" implies the opposite
2025-04-12ease copy-pasteTshepang Mbambo-2/+4
2025-04-12Update "crater" link to actually point to crater.mdFreya Arbjerg-1/+1
2025-04-11Merge pull request #2320 from smanilov/patch-1Tshepang Mbambo-14/+22
Update table of contents in about-this-guide.md
2025-04-11Update table of contents in about-this-guide.mdStan Manilov-14/+22
1. added two new parts: Bootstrapping and Supporting Infrastructure; 2. touched up names of pre-existing parts, to match actual names in sidebar; 3. syntactic nits (start description of Analysis with a capital letter); and 4. make numbered list use only 1. Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2025-04-11Fix link to rustc_* TEST attributes in ui.mdStan Manilov-1/+1
2025-04-07improve flowTshepang Mbambo-2/+3
2025-04-07Merge from rustcThe rustc-dev-guide Cronjob Bot-10/+250
2025-04-07Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-04-06Fix deadlink in libs-and-metadata.mdLevi Zim-1/+1
2025-04-04Rollup merge of #139339 - mejrs:tait, r=oli-obkMatthias Krüger-0/+159
unstable book: document tait Documents the type alias impl trait feature. Rendered: ![image](https://github.com/user-attachments/assets/1d904ff9-e1e1-4ef0-a62d-cbe2d480dce0) ![image](https://github.com/user-attachments/assets/9e877ad1-0f73-4ead-a4ac-0e106512cef8) ![image](https://github.com/user-attachments/assets/86663a23-9824-406d-a5e1-1e0c1662b5f5) because you are deeply involved in this I'll r you but feel free to reroll r? `@oli-obk`
2025-04-04Auto merge of #137869 - ↵bors-10/+43
Noratrieb:Now_I_am_become_death,_the_destroyer_of_i686-pc-windows-gnu, r=workingjubilee Demote i686-pc-windows-gnu to Tier 2 In accordance with [RFC 3771](https://github.com/rust-lang/rfcs/pull/3771). FCP has been completed. tracking issue #138422 I also added a stub doc page for the target and renamed the windows-gnullvm page for consistency.
2025-04-04Update book.toml fix the authors fieldGábor Szabó-1/+1
See https://rust-lang.github.io/mdBook/format/configuration/general.html#general-metadata
2025-04-04Fix linksmejrs-4/+4
2025-04-04unstable book: document taitmejrs-0/+159
2025-04-03add some links about the rustdoc-gui test suitebinarycat-1/+5
2025-04-03Auto merge of #139301 - matthiaskrgr:rollup-sa6ali8, r=matthiaskrgrbors-410/+565
Rollup of 7 pull requests Successful merges: - #139080 (Experimental feature gate for `super let`) - #139145 (slice: Remove some uses of unsafe in first/last chunk methods) - #139149 (unstable book: document import_trait_associated_functions) - #139273 (Apply requested API changes to `cell_update`) - #139282 (rustdoc: make settings checkboxes always square) - #139283 (Rustc dev guide subtree update) - #139294 (Fix the `f16`/`f128` feature gates on integer literals) r? `@ghost` `@rustbot` modify labels: rollup
2025-04-03compiletest: Require `//~` annotations even if `error-pattern` is specifiedVadim Petrochenkov-0/+3
2025-04-03Rollup merge of #139283 - BoxyUwU:rdg-push, r=jieyouxuMatthias Krüger-410/+543
Rustc dev guide subtree update r? ``@jieyouxu`` ``@Kobzol``
2025-04-03Rollup merge of #139149 - mejrs:itaf, r=ehussMatthias Krüger-0/+22
unstable book: document import_trait_associated_functions Documents https://github.com/rust-lang/rust/issues/134691 which was implemented in https://github.com/rust-lang/rust/pull/134754
2025-04-03test directive can appear anywhere in the fileTshepang Mbambo-1/+2
2025-04-02Demote i686-pc-windows-gnu to Tier 2Noratrieb-10/+43
In accordance with RFC 3771. I also added a stub doc page for the target and renamed the windows-gnullvm page for consistency.
2025-04-02Merge from rustcJieyou Xu-148/+415
2025-04-02Preparing for merge from rustcJieyou Xu-1/+1
2025-04-02Rollup merge of #139184 - Urgau:crate-root-lint-levels, r=jieyouxuTakayuki Maeda-0/+23
Add unstable `--print=crate-root-lint-levels` This PR implements `--print=crate-root-lint-levels` from MCP 833 https://github.com/rust-lang/compiler-team/issues/833. Tracking issue: https://github.com/rust-lang/rust/issues/139180 Best reviewed commit by commit.
2025-04-02Rollup merge of #139212 - ehuss:update-mdbook, r=Mark-SimulacrumStuart Cook-2/+1
Update mdbook to 0.4.48 This brings in several updates. Two significant ones are to halve the search index size, and the other introduces major changes to footnote rendering. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0448
2025-04-02Rollup merge of #139208 - futreall:master, r=jieyouxuStuart Cook-1/+1
fix dead link netbsd.md src/doc/rustc/src/platform-support/netbsd.md https://github.com/NetBSD/pkgsrc-wip/blob/master/rust/Makefile - https://github.com/NetBSD/pkgsrc-wip/blob/master/Makefile
2025-04-01Add unstable `--print=crate-root-lint-levels`Urgau-0/+23
2025-04-01Auto merge of #138492 - lcnr:rm-inline_const_pat, r=oli-obkbors-22/+0
remove `feature(inline_const_pat)` Summarizing https://rust-lang.zulipchat.com/#narrow/channel/144729-t-types/topic/remove.20feature.28inline_const_pat.29.20and.20shared.20borrowck. With https://github.com/rust-lang/types-team/issues/129 we will start to borrowck items together with their typeck parent. This is necessary to correctly support opaque types, blocking the new solver and TAIT/ATPIT stabilization with the old one. This means that we cannot really support `inline_const_pat` as they are implemented right now: - we want to typeck inline consts together with their parent body to allow inference to flow both ways and to allow the const to refer to local regions of its parent.This means we also need to borrowck the inline const together with its parent as that's necessary to properly support opaque types - we want the inline const pattern to participate in exhaustiveness checking - to participate in exhaustiveness checking we need to evaluate it, which requires borrowck, which now relies on borrowck of the typeck root, which ends up checking exhaustiveness again. **This is a query cycle**. There are 4 possible ways to handle this: - stop typechecking inline const patterns together with their parent - causes inline const patterns to be different than inline const exprs - prevents bidirectional inference, we need to either fail to compile `if let const { 1 } = 1u32` or `if let const { 1u32 } = 1` - region inference for inline consts will be harder, it feels non-trivial to support inline consts referencing local regions from the parent fn - inline consts no longer participate in exhaustiveness checking. Treat them like `pat if pat == const { .. }` instead. We then only evaluate them after borrowck - difference between `const { 1 }` and `const FOO: usize = 1; match x { FOO => () }`. This is confusing - do they carry their weight if they are now just equivalent to using an if-guard - delay exhaustiveness checking until after borrowck - should be possible in theory, but is a quite involved change and may have some unexpected challenges - remove this feature for now I believe we should either delay exhaustiveness checking or remove the feature entirely. As moving exhaustiveness checking to after borrow checking is quite complex I think the right course of action is to fully remove the feature for now and to add it again once/if we've got that implementation figured out. `const { .. }`-expressions remain stable. These seem to have been the main motivation for https://github.com/rust-lang/rfcs/issues/2920. r? types cc `@rust-lang/types` `@rust-lang/lang` #76001
2025-04-01Update mdbook to 0.4.48Eric Huss-2/+1
This brings in several updates. Two significant ones are to halve the search index size, and the other introduces major changes to footnote rendering. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0448
2025-04-01fix link in netbsd.mdfutreall-1/+1
Update netbsd.md Update netbsd.md
2025-04-01Auto merge of #137535 - Kobzol:split-metadata, r=petrochenkovbors-0/+3
Introduce `-Zembed-metadata` to allow omitting full metadata from rlibs and dylibs This is a continuation of https://github.com/rust-lang/rust/pull/120855 (I was mentored by `@bjorn3` to move it forward). Most of the original code was written by bjorn3, I tried to clean it up a bit and add some documentation and tests. This PR introduces a new unstable compiler flag called `-Zembed-metadata=[no|yes]`, with the default being `yes` (see https://github.com/rust-lang/rust/issues/57076 for context). When set to `no`, rustc will only store a small metadata stub inside rlibs/dylibs instead of the full metadata, to keep their size smaller. It should be used in combination with `--emit=metadata`, so that the users of such a compiled library can still read the metadata from the corresponding `.rmeta` file. [This comment](https://github.com/rust-lang/rust/pull/120855#issuecomment-1937018169) shows an example of binary/artifact size wins that can be achieved using this approach. Contrary to https://github.com/rust-lang/rust/pull/120855, this PR only introduces the new flag, along with a couple of run-make tests and documentation, but does not yet use it in bootstrap to actually compile rustc. I plan to do that as a follow-up step (along with integration in Cargo, which should ideally just always pass this flag to reduce the size of target directories). Fixes https://github.com/rust-lang/rust/issues/23366 Closes https://github.com/rust-lang/rust/issues/29511 Fixes https://github.com/rust-lang/rust/issues/57076 Another attempt of https://github.com/rust-lang/rust/pull/93945 and https://github.com/rust-lang/rust/pull/120855. r? `@petrochenkov`
2025-03-31Add documentation of the option into the unstable bookJakub Beránek-0/+3
2025-03-30unstable book: document import_trait_associated_functionsmejrs-0/+22
2025-03-30Remove duplicate c-variadic.mdmejrs-26/+0
2025-03-30Fix partial clone linkclubby789-1/+1
2025-03-30add rustfmt settings fileTshepang Mbambo-127/+39
2025-03-30example assumes a static existsTshepang Mbambo-2/+2
This was removed, likely by mistake, during a refactor.
2025-03-29update rustc-{driver,interface} examplesTshepang Mbambo-13/+12
2025-03-29Merge pull request #2289 from y1lan/fix_compiler_err_of_examplesTshepang Mbambo-17/+16
Fix compile errors of all the examples
2025-03-30Merge pull request #2288 from rust-lang/tshepang-known-bug-takes-args许杰友 Jieyou Xu (Joe)-0/+8
mention that known-bug test directive takes arguments
2025-03-29mention that know-bug test directive takes argumentsTshepang Mbambo-0/+8
2025-03-29compiletest: Support matching diagnostics on lines belowVadim Petrochenkov-0/+15
2025-03-28Fix trivial typo of `BoundVariableKind`Samuel Tardieu-1/+1
2025-03-28Fix code generation linkSantiago Pastorino-1/+1
2025-03-28Rollup merge of #139038 - adamgreig:thumb-target-maintainers, r=NoratriebMatthias Krüger-10/+5
Update target maintainers for thumb targets to reflect new REWG Arm team name Closes #139027 The name of the team responsible for these targets has changed as the team was merged with other Arm-related teams (see https://github.com/rust-embedded/wg/pull/818). The link gives an up-to-date list of github usernames that can be pinged, whereas the old email address is not very actively maintained or tracked.
2025-03-28Update target maintainers for thumb targets to reflect new REWG Arm team nameAdam Greig-10/+5
2025-03-27Rollup merge of #139010 - madsmtm:parse-xcrun-better, r=wesleywiserJacob Pratt-6/+12
Improve `xcrun` error handling The compiler invokes `xcrun` on macOS when linking Apple targets, to find the Xcode SDK which contain all the necessary linker stubs. The error messages that `xcrun` outputs aren't always that great though, so this PR tries to improve that by providing extra context when an error occurs. Fixes https://github.com/rust-lang/rust/issues/56829. Fixes https://github.com/rust-lang/rust/issues/84534. Part of https://github.com/rust-lang/rust/issues/129432. See also the alternative https://github.com/rust-lang/rust/pull/131433. Tested on: - `x86_64-apple-darwin`, MacBook Pro running Mac OS X 10.12.6 - With no tooling installed - With Xcode 9.2 - With Xcode 9.2 Commandline Tools - `aarch64-apple-darwin`, MacBook M2 Pro running macOS 14.7.4 - With Xcode 13.4.1 - With Xcode 16.2 - Inside `nix-shell -p xcbuild` (nixpkgs' `xcrun` shim) - `aarch64-apple-darwin`, VM running macOS 15.3.1 - With no tooling installed - With Xcode 16.2 Commandline Tools ``@rustbot`` label O-apple r? compiler CC ``@BlackHoleFox`` ``@thomcc``
2025-03-27Delete from_method from rustc_on_unimplemented documentationmejrs-3/+0
2025-03-27Rollup merge of #138946 - Urgau:platform-support-bottom, r=jieyouxuStuart Cook-13/+16
Un-bury chapters from the chapter list in rustc book This PR moves the "Platform Support" section to the bottom of rustc chapter book, as to un-burry chapters from the chapter list, which where hidden by the wall of targets. | Before | After | |--------|-------| | ![image](https://github.com/user-attachments/assets/92769307-eadb-4d9d-bdbb-9e610207eb79) | ![image](https://github.com/user-attachments/assets/1834f5c5-a1e6-4674-9be2-1094d1376eda) | r? ````@jieyouxu````