about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-16Fix fname for miri王宇逸-1/+6
2025-05-16Cleanup the Javascript and CSS of our custom TOCUrgau-15/+3
2025-05-16Fix flicker when page loadsUrgau-28/+6
2025-05-16Add per page TOC in the rustc bookUrgau-0/+224
2025-05-16Auto merge of #141044 - flip1995:clippy-subtree-update, r=Manishearthbors-4453/+5273
Clippy subtree update r? `@Manishearth` Cargo.lock update due to Clippy version bump.
2025-05-16Rollup merge of #141026 - tshepang:rust-push, r=jieyouxuMatthias Krüger-172/+201
rustc-dev-guide subtree update r? ``@ghost``
2025-05-16Rollup merge of #141009 - emmanuel-ferdman:master, r=marcoieniMatthias Krüger-1/+1
Migrate to modern datetime API # PR Summary This small PR resolves the `datetime` library warnings: ```python DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). or datetime.datetime.utcnow() ``` Note that `.replace(tzinfo=None)` allows to keep the original behavior where the time appears as a naive UTC timestamp (i.e., without any timezone offset). Comparision: ```python # With .utcnow() or .now(datetime.timezone.utc).replace(tzinfo=None) Time,Idle 2025-05-14T15:40:25.013414,98.73417721518987 # With .now(datetime.timezone.utc) Time,Idle 2025-05-14T15:40:25.013414+00:00,98.73417721518987 ```
2025-05-16Rollup merge of #140834 - lcnr:apit-folder, r=compiler-errorsMatthias Krüger-30/+30
move (or remove) some impl Trait tests Probably not actually worth the effort, so I am stopping here :sweat_smile:
2025-05-15Update IDEs to use rustfmt 2024, fix Zed settingsChai T. Rex-6/+10
- Update IDE `rust-analyzer` settings to use 2024 rather than 2021. - Fix Zed settings by removing `${workspaceFolder}/` from paths.
2025-05-16Update to LLVM 20.1.5dianqk-0/+0
2025-05-15Improve asm supportChayim Refael Friedman-40/+186
Including: - Infer `label {}` and `const` operands. - Correctly handle unsafe check inside `label {}`. - Fix an embarrassing parser typo that cause labels to never be part of the AST
2025-05-15Rollup merge of #141027 - onur-ozkan:simpler-rustfmt-initialization, ↵Matthias Krüger-50/+12
r=albertlarsan68 remove `RustfmtState` to reduce `initial_rustfmt` complexity The current use of `RustfmtState` doesn't serve its main purpose as it never does the lazy evaulation since `Build::build` forces it to be ready on the early stage. If we want rustfmt to be ready on the early stage, we don't need to have `RustfmtState` complexity at all.
2025-05-15Merge commit '0450db33a5d8587f7c1d4b6d233dac963605766b' into ↵Philipp Krones-1/+0
clippy-subtree-update
2025-05-15Merge commit '0450db33a5d8587f7c1d4b6d233dac963605766b' into ↵Philipp Krones-4453/+5273
clippy-subtree-update
2025-05-15[win][CI] Convert paths to Windows format before adding to PATHDaniel Paoliello-3/+3
2025-05-15Fix exe() to make rustc wrapper happy王宇逸-1/+1
2025-05-15Experimental cygwin support in rustc王宇逸-4/+4
Co-authored-by: Ookiineko <chiisaineko@protonmail.com>
2025-05-15Bump undici from 6.21.1 to 6.21.3 in /editors/codedependabot[bot]-3/+3
Bumps [undici](https://github.com/nodejs/undici) from 6.21.1 to 6.21.3. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v6.21.1...v6.21.3) --- updated-dependencies: - dependency-name: undici dependency-version: 6.21.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
2025-05-15ci: split the dist-ohos jobMarcoIeni-20/+114
2025-05-15Merge pull request #19794 from ChayimFriedman2/dup-cratesLukas Wirth-6/+14
fix: Don't allow duplicate crates in the all_crates list
2025-05-15Auto merge of #141011 - matthiaskrgr:rollup-4uwllo2, r=matthiaskrgrbors-43/+17
Rollup of 7 pull requests Successful merges: - #140827 (Do not ICE when reassigning in GatherLocalsVisitor on the bad path) - #140904 (Add an issue template for future-incompatible lints) - #140953 (Fix a compiletest blessing message) - #140973 (Update rustix to 1.0.7 for bootstrap) - #140976 (Add `Ipv4Addr` and `Ipv6Addr` diagnostic items) - #140988 (MaybeUninit::write: fix doc) - #140989 (Suggest replace f with f: Box<f> when expr field is short hand) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-15remove `RustfmtState` to reduce `initial_rustfmt` complexityonur-ozkan-50/+12
The current use of `RustfmtState` doesn't serve its main purpose as it never does the lazy evaulation since `Build::build` forces it to be ready on the early stage. If we want rustfmt to be ready on the early stage, we don't need to have `RustfmtState` complexity at all. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-05-15Merge from rustcThe rustc-dev-guide Cronjob Bot-697/+836
2025-05-15Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-05-15avoid upstream pull conflictTshepang Mbambo-1/+1
We changed this line and have not pushed it upstream yet, and upstream changed it in the meanwhile.
2025-05-15normalize abort calls in miri testsjoboet-35/+43
2025-05-15Merge pull request #19793 from Hmikihiro/unused_import_conlict_deriveChayim Refael Friedman-32/+246
fix: Removing all unused imports removes used imports for imports used for Derive macros
2025-05-15Temporarily use Windows Server 2022 instead of Windows Server 2025 imagesJieyou Xu-2/+8
At the moment, it seems like Windows Server 2025 20250504.1.0 is misconfigured causing insufficient disk space failures. Temporarily go back to Windows Server 2022 in the hope that those are not also misconfigured.
2025-05-15Update Cargo.lockBerrysoft-35/+67
2025-05-15handle trait in functionHayashi Mikihiro-21/+23
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15check globHayashi Mikihiro-21/+22
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15rename fn name take_path to anyHayashi Mikihiro-5/+5
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15fix: ide-assists, generate mut trait impl indentA4-Tacks-3/+91
2025-05-15Merge pull request #2373 from rust-lang/tshepang-patch-2Tshepang Mbambo-4/+5
avoid duplicating commands
2025-05-15Merge pull request #2379 from rust-lang/tshepang-which-chapterTshepang Mbambo-25/+31
clean TypeFold* chapter
2025-05-15Merge pull request #2380 from rust-lang/tshepang-crate-cleaningTshepang Mbambo-127/+139
clean our crates
2025-05-14Don't allow duplicate crates in the all_crates listChayim Refael Friedman-6/+14
For some reason we had them in some projects, I'm not sure why. But this caused cache priming to appear stuck - because it uses a set of crate IDs for the actual work, but for the number of crates to index it just uses `db.all_crates().len()`.
2025-05-14Rollup merge of #140973 - Berrysoft:update-bootstrap-lock, r=jieyouxuMatthias Krüger-2/+2
Update rustix to 1.0.7 for bootstrap Another bump for bootstrap. Finally it compiles on Cygwin:) Hooray! r? ``@jieyouxu``
2025-05-14Rollup merge of #140953 - jieyouxu:compiletest-bless-msg, r=compiler-errorsMatthias Krüger-8/+12
Fix a compiletest blessing message It was showing compare mode instead of test name. Fixes #140945. Noticed in https://github.com/rust-lang/rust/pull/140622#issuecomment-2868705612.
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-14Update `src/gcc` submodule to `04ce66d8c918de9273bd7101638ad8724edf5e21`Guillaume Gomez-0/+0
2025-05-14Migrate to modern datetime APIEmmanuel Ferdman-1/+1
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-14fix: Removing all unused imports removes used imports for imports used for ↵Hayashi Mikihiro-46/+257
Derive macros Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-14fixes: ide-assists, generate_new indent losesA4-Tacks-1/+136
2025-05-14Fix link to GatherBorrowsLi-yao Xia-1/+1
2025-05-14replace `cc_detect::cc2ar` with `cc::try_get_archiver`onur-ozkan-145/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-05-14Update rustix to 1.0.7 for bootstrap王宇逸-2/+2
2025-05-13Auto merge of #140887 - pietroalbini:pa-bootstrap-update, r=compiler-errorsbors-505/+500
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-13Format and skip formatting for pinMichael Goulet-2/+1
2025-05-13Auto merge of #140951 - compiler-errors:super-fmt, r=ytmimibors-0/+5
Do not remove `super` keyword from `super let` This is affecting a macro in the standard library: https://github.com/rust-lang/rust/blob/bc7512ee6309ee7e8cacf87b94aa6d1f550c9d99/library/core/src/pin.rs#L1945 I added an exception in 6f6a9a585891d0a2d1114a7a621f35f28f39c0d9, but I'd like to remove it eventually, so opening this in-tree to not block this on the next rustfmt sync. r? `@calebcartwright` or `@ytmimi`