Commit Graph

300570 Commits

Author SHA1 Message Date
Oli Scherer
845d9ff963 Remove some unsized tuple impls now that we don't support unsizing tuples anymore 2025-07-02 14:17:54 +00:00
A4-Tacks
625b73b8b0 Fix AsMut::as_mut name 2025-07-02 21:55:55 +08:00
Pavel Grigorenko
2ab641d75e bootstrap: validate rust.codegen-backends & targer.<triple>.codegen-backends 2025-07-02 16:55:47 +03:00
Antoni Boucher
0b61286dd3 Fix m68k CI 2025-07-02 09:51:49 -04:00
Samuel Tardieu
fc076315d2 Add Triagebot's concern capability to the Clippy repository
This is a newly added triagebot capability, which allows registering and
then resolving concerns with an issue or a pull request. The concerns
are gathered by Triagebot in the issue/PR summary.

Concerns are different from notes: when a concern is resolved, it is
striked through in the issue/PR summary, and a link to the comment
resolving it is also added, whereas a note can only be removed and then
disappears from the summary.

The `has-concerns` label, which must be created at the time of merging
this change, will be automatically set on issues/PRs that have
unresolved concerns, and cleared when all concerns are resolved.
2025-07-02 15:51:16 +02:00
Samuel Tardieu
8e4b5448cf use ui_test dependency builder for test dependencies (#14883)
changelog: none

This tries to make progress on
https://github.com/rust-lang/rust/issues/78717 by using the ui_test
dependency handling instead of linking in the dependencies of clippy
itself with the tests. This partially reverts
https://github.com/rust-lang/rust-clippy/pull/11045. However, we still
use the old style of dealing with dependencies for clippy's own crates
and the "internal" tests, as otherwise those would get rebuilt which
takes too long.
2025-07-02 13:44:39 +00:00
Ralf Jung
143c05af80 Merge pull request #4438 from RalfJung/genmc-conditional-import
use more clever approach for genmc conditional import
2025-07-02 13:42:11 +00:00
Ralf Jung
8fc0fd5a80 use more clever approach for genmc conditional import 2025-07-02 15:16:03 +02:00
Marijn Schouten
674724c741 remove deprecated from core::ffi::c_str 2025-07-02 12:30:05 +00:00
Ralf Jung
de1278bd16 interpret: move the native call preparation logic into Miri 2025-07-02 14:25:11 +02:00
Jakub Beránek
7d35f2f8c0 Use non-global interner in test_string_interning in bootstrap 2025-07-02 14:25:05 +02:00
bors
b94bd12401 Auto merge of #142978 - Kobzol:query-hit, r=oli-obk
Add new self-profiling event to cheaply aggregate query cache hit counts

Self-profile can record various types of things, some of them are not enabled, like query cache hits. Rustc currently records cache hits as "instant" measureme events, which records the thread ID, current timestamp, and constructs an individual event for each such cache hit. This is incredibly expensive, in a small hello world benchmark that just depends on serde, it makes compilation with nightly go from ~3s (with `-Zself-profile`) to ~15s (with `-Zself-profile -Zself-profile-events=default,query-cache-hit`).

We'd like to add query cache hits to rustc-perf (https://github.com/rust-lang/rustc-perf/pull/2168), but there we only need the actualy cache hit counts, not the timestamp/thread ID metadata associated with it.

This PR adds a new `query-cache-hit-count` event. Instead of generating individual instant events, it simply aggregates cache hit counts per *query invocation* (so a combination of a query and its arguments, if I understand it correctly) using an atomic counter. At the end of the compilation session, these counts are then dumped to the self-profile log using integer events (in a similar fashion as how we record artifact sizes). I suppose that we could dedup the query invocations in rustc directly, but I don't think it's really required. In local experiments with the hello world + serde case, the query invocation records generated ~30 KiB more data in the self-profile, which was ~10% increase in this case.

With this PR, the overhead of `-Zself-profile` seems to be the same as before, at least on my machine, so I also enabled query cache hit counts by default when self profiling is enabled.

We should also modify `analyzeme`, specifically [this](https://github.com/rust-lang/measureme/blob/master/analyzeme/src/analysis.rs#L139), and make it load the integer events with query cache hit counts. I can do that as a follow-up, it's not required to be done in sync with this PR, and it doesn't require changes in rustc.

CC `@cjgillot`

r? `@oli-obk`
2025-07-02 11:41:14 +00:00
Marijn Schouten
626ca82faf byte-addresses memory -> byte-addressed memory 2025-07-02 11:18:02 +00:00
Camille GILLOT
4a95b16527 Move crashes tests. 2025-07-02 10:51:40 +00:00
Ralf Jung
5ce7a04910 Merge pull request #4437 from RalfJung/env-cleanup
skip env var memory for leak check
2025-07-02 10:40:11 +00:00
Jakub Beránek
3f3c498137 Apply review comments 2025-07-02 12:18:56 +02:00
Ralf Jung
510040fb44 skip env var memory for leak check 2025-07-02 12:12:24 +02:00
Samuel Tardieu
8bd580b80e Add track_caller attributes to trace origin of Clippy lints
This allows the use of `-Z track-diagnostics` to see the origin of
Clippy lints emission, as is already the case for lints coming from
rustc.
2025-07-02 11:50:25 +02:00
Samuel Tardieu
b4d35fde7e Add track_caller attributes to trace origin of Clippy lints
This allows the use of `-Z track-diagnostics` to see the origin of
Clippy lints emission, as is already the case for lints coming from
rustc.
2025-07-02 11:50:25 +02:00
Camille GILLOT
992fa62118 Hash resolutions. 2025-07-02 09:14:34 +00:00
Camille GILLOT
a0dc0b549d Do not depend on FOREVER_RED_NODE. 2025-07-02 09:14:33 +00:00
Chris Denton
6671d9b92a Rename mingw-check-tidy to tidy 2025-07-02 08:48:20 +00:00
Jakub Beránek
b49ca021e1 Use portable AtomicU64 2025-07-02 10:04:35 +02:00
Jakub Beránek
e6c64df274 Add cross-compilation check tests 2025-07-02 09:18:53 +02:00
Jakub Beránek
07a1b82442 Add bootstrap tool check test 2025-07-02 09:17:50 +02:00
Jakub Beránek
c17da9ebc2 Add Rust Analyzer check tests 2025-07-02 09:15:08 +02:00
Jakub Beránek
029304e4a6 Add codegen check tests 2025-07-02 09:13:44 +02:00
Jakub Beránek
a7c625146e Add compiletest check tests 2025-07-02 09:12:37 +02:00
Jakub Beránek
4dfa59dcfb Add snapshot tests for checking compiler, library and rustc tools 2025-07-02 09:10:39 +02:00
Jakub Beránek
3c391a6394 Automatically derive stage in step metadata where possible 2025-07-02 09:02:48 +02:00
Ralf Jung
0d43e2fe2b Merge pull request #4406 from Stypox/tracing
Add tracing_chrome under "tracing" feature
2025-07-02 06:55:58 +00:00
Ralf Jung
0234984e27 Merge pull request #4436 from rust-lang/rustup-2025-07-02
Automatic Rustup
2025-07-02 06:37:56 +00:00
Ralf Jung
d2f2271ccd rename show_error -> fatal_error 2025-07-02 08:31:21 +02:00
Stypox
28900b0ee2 Add tracing feature to enable tracing_chrome support 2025-07-02 08:29:13 +02:00
Trevor Gross
be35d37d8b Use the compiler to determine whether or not to enable f16 and f128
Currently we whether or not to build and test `f16` and `f128` support
mostly based on the target triple. This isn't always accurate, however,
since support also varies by backend and the backend version.

Since recently, `rustc` is aware of this with the unstable config option
`target_has_reliable_{f16,f128}`, which better represents when the types
are actually expected to be available and usable. Switch our
compiler-builtins and libm configuration to use this by probing `rustc`
for the target's settings.

A few small `cfg` fixes are needed with this.
2025-07-02 01:18:54 -05:00
Laurențiu Nicola
42e9a9f418 Merge pull request #20137 from Hmikihiro/migrate-wrap_unwrap_cfg_attr-assist-to-syntaxeditor
Migrate `wrap_unwrap_cfg_attr` Assist to use `SyntaxEditor`
2025-07-02 05:24:36 +00:00
The Miri Cronjob Bot
af5f4be160 Merge from rustc 2025-07-02 05:05:02 +00:00
The Miri Cronjob Bot
9d9f0e0455 Preparing for merge from rustc 2025-07-02 04:57:05 +00:00
Jieyou Xu
0346895e26 Rename {HeadersCache, iter_header} -> {DirectivesCache, iter_directives} for self-consistency 2025-07-02 12:08:00 +08:00
Jieyou Xu
475f447f12 Update compiletest to use "directive" terminology consistently 2025-07-02 12:08:00 +08:00
Jieyou Xu
cf5788d30d Rename header -> directives
compiletest has confusingly two terminology to refer to the same concept
-- "headers" and "directives". To make this more self-consistent and
less confusing, stick with "directives" only.

This commit **intentionally** tries to be limited to move-only (modulo
some key usage reference renames) to help git history.
2025-07-02 12:07:57 +08:00
bors
f51c9870ba Auto merge of #142974 - cuviper:stage0-bump, r=Mark-Simulacrum
Update stage0 to 1.89.0-beta.1

- Update version placeholders
- Update stage0 to 1.89.0-beta.1
- Update `STAGE0_MISSING_TARGETS`
- Update `cfg(bootstrap)`

r? `@Mark-Simulacrum`

try-job: dist-i586-gnu-i586-i686-musl
2025-07-02 01:41:18 +00:00
Michael Goulet
91c53c97a9 Consider polarity in sizedness fast path 2025-07-02 00:37:40 +00:00
Michael Goulet
d3c0ef0c9f Use is_trivially_wf for ProvePredicate fast path 2025-07-02 00:33:06 +00:00
Michael Goulet
ae0bef778a Remove fast path from codegen_select, since Sized has no methods 2025-07-02 00:33:06 +00:00
Antoni Boucher
3021598bdf Specify the linker when building the test project in m68k CI 2025-07-01 19:51:59 -04:00
Antoni Boucher
fec79b86a2 Add missing space before --target-triple 2025-07-01 19:35:39 -04:00
Antoni Boucher
cf509d87d9 Add missing --target-triple flags in m68k CI 2025-07-01 19:29:07 -04:00
Antoni Boucher
89f0cb3bfc Specify linker in m68k CI 2025-07-01 19:10:45 -04:00
Antoni Boucher
1bbe5946f2 Fix installation of libgccjit for m68k 2025-07-01 18:50:39 -04:00