about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2025-05-15Merge pull request #2380 from rust-lang/tshepang-crate-cleaningTshepang Mbambo-127/+139
clean our crates
2025-05-14Rollup merge of #140904 - ehuss:future-incompat-template, r=Mark-SimulacrumMatthias Krüger-33/+3
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-14Fix link to GatherBorrowsLi-yao Xia-1/+1
2025-05-13Auto merge of #140887 - pietroalbini:pa-bootstrap-update, r=compiler-errorsbors-1/+1
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-12remove dangling referencesTshepang Mbambo-3/+0
2025-05-12Fix typosomahs-12/+12
2025-05-12update version placeholdersPietro Albini-1/+1
2025-05-12Merge pull request #2378 from smanilov/patch-7许杰友 Jieyou Xu (Joe)-3/+0
2025-05-12Remove n.b. about parser refactoringStan Manilov-3/+0
Discussed in PR 2378; the note was outdated.
2025-05-12Remove obsolete reference to `unsized_tuple_coercion`Zalathar-6/+6
2025-05-11Auto merge of #140842 - tmiasko:print-mono-items, r=saethlinbors-6/+2
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-11Add an issue template for future-incompatible lintsEric Huss-33/+3
2025-05-11Rollup merge of #140882 - Dietr1ch:dev/duration_constructors_lite, r=BurntSushiLeón Orell Valerian Liehr-1/+13
Split duration_constructors to get non-controversial constructors out This implements #140881
2025-05-10noiseTshepang Mbambo-2/+0
2025-05-10we are a collectiveTshepang Mbambo-1/+0
2025-05-10"cargo fmt"Tshepang Mbambo-18/+28
2025-05-10bump editionTshepang Mbambo-2/+2
2025-05-10no point versioning theseTshepang Mbambo-103/+108
They are internal tools.
2025-05-10add missing wordTshepang Mbambo-1/+1
2025-05-10last updated a year agoTshepang Mbambo-0/+1
2025-05-10sembrTshepang Mbambo-19/+13
2025-05-10reduce clutter when reading sourceTshepang Mbambo-8/+16
2025-05-10fix broken linksTshepang Mbambo-3/+3
2025-05-10is a questionTshepang Mbambo-1/+1
2025-05-10sembrTshepang Mbambo-3/+5
2025-05-10make more readableTshepang Mbambo-1/+1
2025-05-10make more clear what is meantTshepang Mbambo-1/+1
2025-05-10use the right caseTshepang Mbambo-3/+3
2025-05-10link to chapter referred toTshepang Mbambo-1/+2
This made it look the the topic was covered in the chapter just before the current one.
2025-05-10Merge pull request #2369 from rust-lang/tshepang-patch-1Tshepang Mbambo-0/+10
add rdg push git config entry for git protocol pushers
2025-05-09Split duration_constructors to get non-controversial bits out faster.Dietrich Daroch-1/+13
2025-05-09Rollup merge of #140852 - est31:edition_guide_let_chains, r=ehussMatthias Krüger-0/+0
Update the edition guide for let chains Pull https://github.com/rust-lang/edition-guide/pull/337 into the rustc tree.
2025-05-09Update the edition guide for let chainsest31-0/+0
2025-05-09Merge pull request #2376 from smanilov/patch-5Tshepang Mbambo-2/+2
Fix minor typo in rustdoc-internals.md
2025-05-09Fix minor typo in rustdoc-internals.mdStan Manilov-2/+2
2025-05-09Remove mono item collection strategy override from -Zprint-mono-itemsTomasz Miąsko-6/+2
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-08Auto merge of #140786 - Kobzol:try-builds-no-deny-warnings, r=jieyouxubors-6/+10
Do not deny warnings in "fast" try builds When we do the classic ``@bors` try` build without specifying `try-job` in the PR description, we want to get a compiler toolchain for perf./crater/local experimentation as fast as possible. We don't run any tests in that case, so it seems reasonable to also ignore warnings. Fixes: https://github.com/rust-lang/rust/issues/140753 r? `@jieyouxu` try-job: dist-x86_64-linux
2025-05-08Mention fast try builds in the rustc-dev-guideJakub Beránek-6/+10
2025-05-08Fix minor typo in installation.mdStan Manilov-1/+1
2025-05-08Remark test naming exceptionStan Manilov-0/+6
2025-05-08Fix minor typo in serialization.mdStan Manilov-1/+1
2025-05-08Merge from rustcThe rustc-dev-guide Cronjob Bot-30/+101
2025-05-08Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-05-08Rollup merge of #140764 - joshtriplett:style-nullary-functions, r=traviscrossMatthias Krüger-0/+13
style: Never break within a nullary function call `func()` or a unit literal `()` Implements https://github.com/rust-lang/style-team/issues/210
2025-05-08Auto merge of #140106 - dianne:deref-pat-usefulness, r=Nadrierilbors-2/+1
allow deref patterns to participate in exhaustiveness analysis Per [this proposal](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Exhaustiveness), this PR allows deref patterns to participate in exhaustiveness analysis. Currently all deref patterns enforce `DerefPure` bounds on their scrutinees, so this assumes all patterns it's analyzing are well-behaved. This also doesn't support [mixed exhaustiveness](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Mixed-exhaustiveness), and instead emits an error if deref patterns are used together with normal constructors. I think mixed exhaustiveness would be nice to have (especially if we eventually want to support arbitrary `Deref` impls[^1]), but it'd require more work to get reasonable diagnostics[^2]. Tracking issue for deref patterns: #87121 r? `@Nadrieril` [^1]: Regardless of whether we support limited exhaustiveness checking for untrusted `Deref` or always require other arms to be exhaustive, I think it'd be useful to allow mixed matching for user-defined smart pointers. And it'd be strange if it worked there but not for `Cow`. [^2]: I think listing out witnesses of non-exhaustiveness can be confusing when they're not necessarily disjoint, and when you only need to cover some of them, so we'd probably want special formatting and/or explanatory subdiagnostics. And if it's implemented similarly to unions, we'd probably also want some way of merging witnesses; the way witnesses for unions can appear duplicated is pretty unfortunate. I'm not sure yet how the diagnostics should look, especially for deeply nested patterns.
2025-05-07style: Never break within a nullary function call `func()` or a unit literal ↵Josh Triplett-0/+13
`()`
2025-05-07Rollup merge of #140741 - husqvarnagroup:af/armv5te-target-maintainer, ↵Guillaume Gomez-1/+31
r=jieyouxu add armv5te-unknown-linux-gnueabi target maintainer My employer is interested in having this target maintained and we already have some tests in our CI running for it. armv5te-unknown-linux-gnueabi can be ticket off in #113739.
2025-05-07Rollup merge of #140234 - nnethercote:separate-Analysis-and-Results, r=davidtwcoGuillaume Gomez-2/+1
Separate dataflow analysis and results `Analysis` gets put into `Results` with `EntryStates`, by `iterate_to_fixpoint`. This has two problems: - `Results` is passed various places where only `Analysis` is needed. - `EntryStates` is passed around mutably everywhere even though it is immutable. This commit mostly separates `Analysis` from `Results` and fixes these two problems. r? `@davidtwco`
2025-05-07add armv5te-unknown-linux-gnueabi target maintainerAdrian Friedli-1/+31
2025-05-07Rollup merge of #139518 - xizheyin:issue-138527, r=traviscrossGuillaume Gomez-12/+12
Stabilize precise capture syntax in style guide Closes #138527 r? `@jieyouxu`