Commit graph

298901 commits

Author SHA1 Message Date
Miguel Ojeda
f4ba1746cc CI: rfl: move job forward to Linux v6.16-rc1
Remove the comment on top as well, since that issue is now fixed in this
new tag.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-06-08 21:37:37 +02:00
Jakub Beránek
e82630c452 Run mingw-check-tidy on auto builds
Signed-off-by: Jakub Beránek <berykubik@gmail.com>
2025-06-08 20:49:08 +02:00
Ralf Jung
b154e03726 try to manually bless windows test output 2025-06-08 20:36:24 +02:00
Jakub Beránek
b189d29b92 Do not free disk space in the mingw-check-tidy job
It's not needed an it slows down the job considerably.

Signed-off-by: Jakub Beránek <berykubik@gmail.com>
2025-06-08 19:44:33 +02:00
nekename
982abc48b3
docs: make unbuffered_bytes docs more consistent 2025-06-08 18:37:39 +01:00
bohan
7c1c56646b early return in trait detection for non-trait item 2025-06-09 01:29:36 +08:00
bors
fb644e6a1a Auto merge of #142095 - joshtriplett:optimize-veccache, r=SparrowLii
Simplify and optimize `VecCache`'s `SlotIndex::from_index`

Simplify and optimize `SlotIndex::from_index`

Break out bucket 0 (containing `idx < 4096`) as an early return, which
simplifies the remainder of the function, and allows optimizing the
`checked_ilog2` since it can no longer return `None`.

This reduces the runtime of `vec_cache::tests::slot_index_exhaustive`
(which calls `SlotIndex::from_index` for every `u32`, twice) from ~15.5s
to ~13.3s.

Separately, simplify the test case as well. (The old and new code passes with
the old and new test case.)

---

Noticed because `slot_index_exhaustive` stood out as taking unusually long compared to other tests, so I started investigating what it was doing.
2025-06-08 15:26:49 +00:00
bjorn3
5f20249959 Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
bjorn3
9223704f4b Remove all unused feature gates from the compiler 2025-06-08 14:50:42 +00:00
llogiq
9e7782b809
Fix match_single_binding misses curlies on type signatures (#15017)
Closes rust-lang/rust-clippy#14991

----

changelog: [`match_single_binding`] fix missing curlies on type
signatures
2025-06-08 13:21:14 +00:00
dianne
53d339b2d0 add tests for pattern binding drop order edge cases
I couldn't find existing tests that for this behavior, so this should
make sure it doesn't accidentally change.
2025-06-08 06:18:38 -07:00
Alex Macleod
3af333e346
Fix create_dir ignores paths in suggestions (#15011)
Closes rust-lang/rust-clippy#14994

changelog: [`create_dir`] fix missing paths in suggestions
2025-06-08 13:07:59 +00:00
Urgau
fdae3448ba De-duplicate f16 & f128 doctest attributes 2025-06-08 14:51:13 +02:00
yanglsh
b5eac24820 fix: match_single_binding misses curlies on type signatures 2025-06-08 20:19:24 +08:00
Chayim Refael Friedman
5b1ac61383 Add the quickfix for increasing visibility of a private field to the private-field diagnostic (previously it was only on no-such-field)
The difference between the diagnostics is that no-such-field is for record struct construction, while private-field is for dot syntax.

I tried to unify them, but there is a bit of uniqueness in each. This is possible but maybe not worth it.

Also, fix the quickfix when there is already a visibility to the field (replace it instead of appending to it).
2025-06-08 15:17:34 +03:00
llogiq
737b8be34d
Fix std_instead_of_core FP when part of the use cannot be replaced (#15016)
Closes rust-lang/rust-clippy#14982

----

changelog: [`std_instead_of_core`] fix FP when part of the `use` cannot
be replaced
2025-06-08 11:58:08 +00:00
antoyo
485e43f33f
Merge pull request #698 from GuillaumeGomez/signal
Raise command signal to the current process
2025-06-08 07:52:47 -04:00
bjorn3
7988b8c0b3 Rustup to rustc 1.89.0-nightly (cdd545be1 2025-06-07) 2025-06-08 11:42:13 +00:00
yanglsh
d98070dbdb fix: std_instead_of_core FP when part of the use cannot be replaced 2025-06-08 19:31:15 +08:00
bors
244bbfc60e Auto merge of #142088 - compiler-errors:perf-universal-stall, r=lcnr
Filter out universals and lifetimes from `stalled_vars`

lol

r? lcnr
2025-06-08 11:25:24 +00:00
bjorn3
d0040227d9 Sync from rust cdd545be1b 2025-06-08 10:29:24 +00:00
Guillaume Gomez
d14a49d89c Add documentation about why we use exec 2025-06-08 11:48:01 +02:00
llogiq
a1a1393171
Invert suggestion if pointer is tested for non-nullness (#15015)
Fixes rust-lang/rust-clippy#15010

----

changelog: [`cmp_null`]: emit proper suggestion when pointer is checked
for non-nullness
2025-06-08 08:57:45 +00:00
Samuel Tardieu
f397a302a9
Invert suggestion if pointer is tested for non-nullness 2025-06-08 10:29:30 +02:00
bit-aloo
8bd81699d9
moved render_tests in utils to new execution context 2025-06-08 12:19:09 +05:30
bit-aloo
def44885ee
move git command to new execution context 2025-06-08 12:19:08 +05:30
bit-aloo
81ee86b23b
add execution context to bootstrap workflow 2025-06-08 12:19:08 +05:30
bit-aloo
3ab5e60d18
Add execution context 2025-06-08 12:19:07 +05:30
Kivooeo
85ce9ee481 cleaned up some tests 2025-06-08 11:25:09 +05:00
Ralf Jung
941a971752
Merge pull request #4385 from rust-lang/rustup-2025-06-08
Automatic Rustup
2025-06-08 05:41:23 +00:00
Ralf Jung
fab11f619d add specific help messages for stdcall and cdecl 2025-06-08 07:34:41 +02:00
Ralf Jung
1fc6be419a avoid repeating error annotations in test file 2025-06-08 07:34:41 +02:00
Ralf Jung
b616e11974 raw dylib: ensure that we have applied standard ABI checks
also unify error messages that do not seem to have a good reason to be different
2025-06-08 07:34:41 +02:00
Ralf Jung
873122c006 add (back) unsupported_calling_conventions lint to reject more invalid calling conventions 2025-06-08 07:34:41 +02:00
bors
8072811356 Auto merge of #142085 - compiler-errors:perf-self-obl, r=lcnr
Don't walk into `Certainty::Yes` goals

Don't walk into `Certainty::Yes` goals in the pending obligation finding code, since they will not have been stalled on an infer var anyways
2025-06-08 05:30:59 +00:00
yanglsh
4d6254c688 fix: create_dir ignores paths in suggestions 2025-06-08 13:15:29 +08:00
The Miri Cronjob Bot
1894b49ebb Merge from rustc 2025-06-08 05:03:35 +00:00
The Miri Cronjob Bot
f413f15767 Preparing for merge from rustc 2025-06-08 04:56:16 +00:00
Trevor Gross
10129e4964 Use the in-tree compiler-builtins
Many of `std`'s dependency have a dependency on the crates.io
`compiler-builtins` when used with the feature
`rustc-std-workspace-core`. Use a Cargo patch to select the in-tree
version instead.

`compiler-builtins` is also added as a dependency of
`rustc-std-workspace-core` so these crates can remove their crates.io
dependency in the future.
2025-06-08 02:36:58 +00:00
Trevor Gross
f43bb2ac99 compiler-builtins: Fix a rustdoc::bare-urls error 2025-06-08 02:36:58 +00:00
Trevor Gross
cc3e57147e Use the in-tree compiler-builtins
Many of `std`'s dependency have a dependency on the crates.io
`compiler-builtins` when used with the feature
`rustc-std-workspace-core`. Use a Cargo patch to select the in-tree
version instead.

`compiler-builtins` is also added as a dependency of
`rustc-std-workspace-core` so these crates can remove their crates.io
dependency in the future.
2025-06-08 02:36:58 +00:00
bors
0b65d0db5f Auto merge of #142074 - oli-obk:its-finally-gone, r=petrochenkov
Remove CollectItemTypesVisitor

I always felt like we were very unnecessarily walking the HIR, let's see if perf agrees

There is lots to ~~improve~~ consolidate further here, as we still have 3 item wfchecks:

* check_item (matching on the hir::ItemKind)
    * actually doing trait solver based checks (by using HIR spans)
* lower_item (matching on the hir::ItemKind after loading it again??)
    * just ensure_ok-ing a bunch of queries
* check_item_type (matching on DefKind)
    * some type based checks, mostly ensure_ok-ing a bunch of queries

fixes rust-lang/rust#121429
2025-06-08 02:04:41 +00:00
Catherine Flores
0138c79f76
Add missing word to cloned_ref_to_slice_refs docs (#15012)
changelog: none
2025-06-08 00:48:50 +00:00
bors
a5584a8fe1 Auto merge of #142181 - GuillaumeGomez:rollup-pn2p1lu, r=GuillaumeGomez
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#140560 (Allow `#![doc(test(attr(..)))]` everywhere)
 - rust-lang/rust#141447 (Document representation of `Option<unsafe fn()>`)
 - rust-lang/rust#141661 (Make the `dangerous_implicit_autorefs` lint deny-by-default)
 - rust-lang/rust#142065 (Stabilize `const_eq_ignore_ascii_case`)
 - rust-lang/rust#142116 (Fix bootstrap tracing imports)
 - rust-lang/rust#142126 (Treat normalizing consts like normalizing types in deeply normalize)
 - rust-lang/rust#142140 (compiler: Sort and doc ExternAbi variants)
 - rust-lang/rust#142148 (compiler: Treat ForceWarning as a Warning for diagnostic level)
 - rust-lang/rust#142154 (get rid of spurious cfg(bootstrap))

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-07 23:05:07 +00:00
Kivooeo
143354c52b added test for 30904 2025-06-08 03:44:44 +05:00
Chayim Refael Friedman
ac34cb4b47 Correctly handle attr macros placed in cfg_attr in speculative expansion 2025-06-08 01:44:14 +03:00
michal kostrubiec
aa95fcd461 Add support for automatically reducing found fuzz cases. 2025-06-08 00:09:57 +02:00
Chayim Refael Friedman
a5bf989466 Remove the optimization of builtin attrs in is_inside_macro_call()
`#[cfg_attr]` is a builtin attr, but it may still contain a macro.
2025-06-08 01:07:55 +03:00
Guillaume Gomez
aa940603f5
Rollup merge of #142154 - RalfJung:no-more-cfg-bootstrap, r=oli-obk
get rid of spurious cfg(bootstrap)

r? ```@oli-obk```
2025-06-07 22:23:00 +02:00
Guillaume Gomez
3c860e3764
Rollup merge of #142148 - workingjubilee:dont-ice-on-force-warn, r=Urgau
compiler: Treat ForceWarning as a Warning for diagnostic level

This silences an ICE.

No idea if this is the correct solution though tbh.

Fixes rust-lang/rust#142144
2025-06-07 22:22:59 +02:00