Commit Graph

303456 Commits

Author SHA1 Message Date
Josh Stone 81edf2beba Drop rust-version from rustc_thread_pool
The current `rust-version = "1.63"` was inherited from rayon, but it
doesn't make sense to limit this in the compiler workspace. Having any
setting at all has effects on tools like `cargo info` that try to infer
the MSRV when the workspace itself doesn't specify it. Since we are the
compiler, our only MSRV is whatever bootstrapping requires.
2025-08-04 15:03:49 -07:00
Oneirical 7196d8cd66 Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
Kivooeo 970ac40300 updated doc comment 2025-08-05 01:21:59 +05:00
Jonathan Brouwer b3317dd055 Correct the use of must_use on btree::IterMut
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-04 22:20:30 +02:00
Alejandra González 826e514e44 Issues priority (#15393)
We can actualize "Issue and PR triage" section. Seems labels
[P-medium](https://github.com/rust-lang/rust-clippy/labels/P-medium),
[P-high](https://github.com/rust-lang/rust-clippy/labels/P-high),
[L-sync-blocker](https://github.com/rust-lang/rust-clippy/labels/L-sync-blocker)
are not relevant anymore. Suppose that we can save the priority from
[feature
freeze](https://github.com/alex-semenyuk/rust-clippy/blob/master/book/src/development/feature_freeze.md?plain=1)
since the only difference accepting new lints.

changelog: none
2025-08-04 20:13:24 +00:00
binarycat 81081f4513 compiletest: add hint for when a ui test produces no errors 2025-08-04 14:21:00 -05:00
Michael Goulet 878acaa795 Dont print arg span in MIR dump for tail call 2025-08-04 18:35:43 +00:00
Esteban Küber 2db126d651 Include whitespace in "remove |" suggestion and make it hidden 2025-08-04 18:06:18 +00:00
Mateusz Mikuła d2e3ea9ba7 windows-gnullvm: include libunwind.dll in dist 2025-08-04 20:02:32 +02:00
Michael Goulet a573fd958e Don't actually pass BB to check_call_dest 2025-08-04 17:26:18 +00:00
bors 0060d5a2a8 Auto merge of #144893 - GuillaumeGomez:subtree-update_cg_gcc_2025-08-04, r=GuillaumeGomez
GCC backend subtree update

cc `@antoyo`
2025-08-04 17:25:02 +00:00
Esteban Küber 91e606b715 Tweak auto trait errors
Make suggestions to remove params and super traits tool-only, and make
the suggestion span more accurate.

```
error[E0567]: auto traits cannot have generic parameters
  --> $DIR/auto-trait-validation.rs:6:19
   |
LL | auto trait Generic<T> {}
   |            -------^^^
   |            |
   |            auto trait cannot have generic parameters

error[E0568]: auto traits cannot have super traits or lifetime bounds
  --> $DIR/auto-trait-validation.rs:8:20
   |
LL | auto trait Bound : Copy {}
   |            -----   ^^^^
   |            |
   |            auto traits cannot have super traits or lifetime bounds
```

```
error[E0380]: auto traits cannot have associated items
  --> $DIR/issue-23080.rs:5:8
   |
LL | unsafe auto trait Trait {
   |                   ----- auto traits cannot have associated items
LL |     fn method(&self) {
   |        ^^^^^^
```
2025-08-04 17:20:07 +00:00
Guillaume Gomez 22607491bb Add GUI regression test for tooltips i icons 2025-08-04 19:17:08 +02:00
Guillaume Gomez b4f404b581 Fix wrong font being used for tooltips i icons 2025-08-04 19:17:08 +02:00
Sasha Pourcelot 904e2af3a9 Port #[coroutine] to the new attribute system
Related to https://github.com/rust-lang/rust/issues/131229#issue-2565886367.
2025-08-04 18:37:40 +02:00
Michael Goulet c7ea022166 Enforce tail call type is related to body return type in borrowck 2025-08-04 16:35:58 +00:00
Michael Goulet f6ce4ac9d3 Anonymize binders in tail call sig 2025-08-04 15:31:50 +00:00
Samuel Tardieu d6cf7b905f Remove rogue comma from infallible_try_from lint message (#15409)
Spotted while reading through the new lints in the changelog for Clippy
1.89:

```
 1 | error: infallible TryFrom impl; consider implementing From, instead
   |                                                           ^ this comma looks out of place
```

---

changelog: [`infallible_try_from`]: Fix a typo in the lint message
2025-08-04 14:51:12 +00:00
Fayti1703 5b22c0c1ed Remove rogue comma from infallible_try_from lint message 2025-08-04 16:38:31 +02:00
Ayush Singh 6e75abd0aa std: sys: io: io_slice: Add UEFI types
UEFI networking APIs do support vectored read/write. While the types for
UDP4, UDP6, TCP4 and TCP6 are defined separately, they are essentially
the same C struct. So we can map IoSlice and IoSliceMut to have the same
binary representation.

Since all UEFI networking types for read/write are DSTs, `IoSlice` and
`IoSliceMut` will need to be copied to the end of the transmit/receive
structures. So having the same binary representation just allows us to
do a single memcpy instead of having to loop and set the DST.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-04 20:02:01 +05:30
Jakub Beránek d85a645316 Require approval from t-infra instead of t-release on tier bumps 2025-08-04 16:22:05 +02:00
Alex Macleod 048e8f2d01 Fix not showing deprecated lints (#15407)
As discussed at rust-lang/rust-clippy#15387 revert changes
https://github.com/rust-lang/rust-clippy/pull/15315 to show deprecated.

changelog: none
2025-08-04 14:17:59 +00:00
Alexey Semenyuk 0708b6a1e6 Fix not showing deprecated lints 2025-08-04 19:08:25 +05:00
Guillaume Gomez 75e20afb82 Add new test::print_merged_doctests_times used by rustdoc to display more detailed time information and add new OutputFormatter::write_merged_doctests_times method to handle it 2025-08-04 16:06:56 +02:00
Jakub Beránek d857d54110 Print CGU reuse statistics when -Zprint-mono-items is enabled 2025-08-04 15:43:50 +02:00
Kivooeo b7f5392946 remove begin prefix 2025-08-04 18:25:34 +05:00
Tshepang Mbambo a13caaae3e Merge pull request #2533 from rust-lang/rustc-pull
Rustc pull update
2025-08-04 15:20:57 +02:00
Jieyou Xu 51f60d1139 Remove tcp-stress.rs test
This stress test was originally introduced in
65cca4bd3f to detect a UAF in libuv (see
RUST-12823), but we no longer use libuv, so remove this test as it was
causing flaky timeout failures. See RUST-144878 for discussion.
2025-08-04 20:09:21 +08:00
Robert Serrano Kobylyansky affe2c4376 Update installation.md
The `--enable-offload` and `--enable--enzyme` arguments don't seem to work.

Changing them to `--enable-llvm-offload` and `--enable-llvm-enzyme` resulted in the `boostrap.toml` file generating succesfully.
2025-08-04 13:08:29 +01:00
Kivooeo d2cfe486f0 remove feature gate 2025-08-04 16:41:10 +05:00
Philipp Krones 7a179313b9 Changelog for Clippy 1.89 🌽 (#15375)
Violets are red,
Roses are blue,
As August winds whisper,
Take a chance, then rest too.

<hr>

Appreciate it as always @xFrednet

<img width="601" height="744" alt="image"
src="https://github.com/user-attachments/assets/a0e4af41-da97-4565-881b-549ed51d7fc5"
/>

<hr>

Cats for the next release can be traditionally nominated in the comments
:D
Please be more active and cat-minded 😻

changelog: none

r? flip1995
2025-08-04 10:55:20 +00:00
Jakub Beránek ac28b5b93a Fix splitting dylib paths 2025-08-04 12:21:27 +02:00
Waffle Lapkin cf7b67420b add project_fields helper function 2025-08-04 11:34:46 +02:00
Boxy 6b805102c0 Update RELEASES.md
Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
2025-08-04 10:29:01 +01:00
Boxy 7e3bb00fa7 Update RELEASES.md
Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
2025-08-04 10:28:55 +01:00
Samuel Tardieu 2b9fb32c62 clean-up semicolon_inside_block (#15390)
changelog: none
2025-08-04 08:59:43 +00:00
Guillaume Gomez 21bd67796e Merge commit '482e8540a1b757ed7bccc2041c5400f051fdb01e' into subtree-update_cg_gcc_2025-08-04 2025-08-04 10:49:43 +02:00
Waffle Lapkin e3ed3e0f1c small refactor of InterpResult
- don't need type alias to default type argument
- `Residual` impl allows to use more std APIs (like `<[T; N]>::try_map`)
2025-08-04 10:08:01 +02:00
Waffle Lapkin 8b65f3d0e8 properly reject tail calls to &FnPtr or &FnDef 2025-08-04 09:09:49 +02:00
Waffle Lapkin 4f94bbf13d drive-by cleanup: fix outdated documentation 2025-08-04 09:06:02 +02:00
Jakub Beránek 2f4b40fe4e Do not render both cached and uncached edge between two steps 2025-08-04 08:29:18 +02:00
Jakub Beránek 450040f2d3 Implement debugging output of the bootstrap Step graph into a DOT file 2025-08-04 08:29:18 +02:00
Scott McMurray 9b107bed9f Add a mir-opt test for an unneeded drop_in_place 2025-08-03 22:26:32 -07:00
bors e1b9081e69 Auto merge of #144882 - Zalathar:rollup-i5q32em, r=Zalathar
Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#144694 (Distinguish prepending and replacing self ty in predicates)
 - rust-lang/rust#144875 (Add some pre-codegen MIR tests for debug mode)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-04 05:04:16 +00:00
Stuart Cook ed363ac523 Rollup merge of #144694 - compiler-errors:with-self-ty, r=SparrowLii
Distinguish prepending and replacing self ty in predicates

There are two kinds of functions called `with_self_ty`:
1. Prepends the `Self` type onto an `ExistentialPredicate` which lacks it in its internal representation.
2. Replaces the `Self` type of an existing predicate, either for diagnostics purposes or in the new trait solver when normalizing that self type.

This PR distinguishes these two because I often want to only grep for one of them. Namely, let's call it `with_replaced_self_ty` when all we're doing is replacing the self type.
2025-08-04 14:58:09 +10:00
Stuart Cook fe644eb01c Rollup merge of #144875 - scottmcm:more-mir-tests, r=cjgillot
Add some pre-codegen MIR tests for debug mode

No functional changes; just some tests.

I made these for rust-lang/rust#144483, but that's going in a different direction, so I wanted to propose we just add them to help see the impact of other related changes in the future.

r? mir
2025-08-04 14:58:09 +10:00
Stuart Cook 7307dc0ca1 Rollup merge of #144694 - compiler-errors:with-self-ty, r=SparrowLii
Distinguish prepending and replacing self ty in predicates

There are two kinds of functions called `with_self_ty`:
1. Prepends the `Self` type onto an `ExistentialPredicate` which lacks it in its internal representation.
2. Replaces the `Self` type of an existing predicate, either for diagnostics purposes or in the new trait solver when normalizing that self type.

This PR distinguishes these two because I often want to only grep for one of them. Namely, let's call it `with_replaced_self_ty` when all we're doing is replacing the self type.
2025-08-04 14:58:09 +10:00
The rustc-josh-sync Cronjob Bot 682a6e17e4 Merge ref '383b9c447b61' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 383b9c447b
Filtered ref: 14b7b0bbd1e38402fca29ef84e5f75ee9d8cb1a9

This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-04 04:25:09 +00:00
The rustc-josh-sync Cronjob Bot b8d1af5e56 Prepare for merging from rust-lang/rust
This updates the rust-version file to 383b9c447b.
2025-08-04 04:24:59 +00:00
Zalathar b37c214ec2 coverage: Represent CovmapVersion as an enum
Using an enum here was historically not worth the extra hassle, but now we can
lean on `#[derive(TryFromU32)]` to hide most of the boilerplate.
2025-08-04 13:48:41 +10:00