about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-02Add Triagebot's `concern` capability to the Clippy repositorySamuel Tardieu-0/+4
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-02use ui_test dependency builder for test dependencies (#14883)Samuel Tardieu-46/+47
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-02Merge pull request #4438 from RalfJung/genmc-conditional-importRalf Jung-12/+3
use more clever approach for genmc conditional import
2025-07-02use more clever approach for genmc conditional importRalf Jung-12/+3
2025-07-02remove deprecated from core::ffi::c_strMarijn Schouten-17/+9
2025-07-02interpret: move the native call preparation logic into MiriRalf Jung-61/+67
2025-07-02Use non-global interner in `test_string_interning` in bootstrapJakub Beránek-4/+7
2025-07-02Auto merge of #142978 - Kobzol:query-hit, r=oli-obkbors-7/+94
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-02byte-addresses memory -> byte-addressed memoryMarijn Schouten-1/+1
2025-07-02Move crashes tests.Camille GILLOT-2/+45
2025-07-02Merge pull request #4437 from RalfJung/env-cleanupRalf Jung-50/+9
skip env var memory for leak check
2025-07-02Apply review commentsJakub Beránek-2/+3
2025-07-02skip env var memory for leak checkRalf Jung-50/+9
2025-07-02Add `track_caller` attributes to trace origin of Clippy lintsSamuel Tardieu-0/+58
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-02Add `track_caller` attributes to trace origin of Clippy lintsSamuel Tardieu-0/+60
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-02Hash resolutions.Camille GILLOT-22/+19
2025-07-02Do not depend on FOREVER_RED_NODE.Camille GILLOT-6/+4
2025-07-02Rename mingw-check-tidy to tidyChris Denton-10/+10
2025-07-02Use portable `AtomicU64`Jakub Beránek-1/+2
2025-07-02Add cross-compilation check testsJakub Beránek-0/+47
2025-07-02Add bootstrap tool check testJakub Beránek-0/+14
2025-07-02Add Rust Analyzer check testsJakub Beránek-0/+18
2025-07-02Add codegen check testsJakub Beránek-0/+25
2025-07-02Add compiletest check testsJakub Beránek-4/+30
2025-07-02Add snapshot tests for checking compiler, library and rustc toolsJakub Beránek-1/+182
2025-07-02Automatically derive stage in step metadata where possibleJakub Beránek-62/+60
2025-07-02Merge pull request #4406 from Stypox/tracingRalf Jung-102/+828
Add tracing_chrome under "tracing" feature
2025-07-02Merge pull request #4436 from rust-lang/rustup-2025-07-02Ralf Jung-5594/+4967
Automatic Rustup
2025-07-02rename show_error -> fatal_errorRalf Jung-34/+34
2025-07-02Add tracing feature to enable tracing_chrome supportStypox-73/+799
2025-07-02Use the compiler to determine whether or not to enable `f16` and `f128`Trevor Gross-111/+66
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-02Merge pull request #20137 from ↵Laurențiu Nicola-42/+85
Hmikihiro/migrate-wrap_unwrap_cfg_attr-assist-to-syntaxeditor Migrate `wrap_unwrap_cfg_attr` Assist to use `SyntaxEditor`
2025-07-02Merge from rustcThe Miri Cronjob Bot-5593/+4966
2025-07-02Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-07-02Rename {`HeadersCache`, `iter_header`} -> {`DirectivesCache`, ↵Jieyou Xu-14/+14
`iter_directives`} for self-consistency
2025-07-02Update compiletest to use "directive" terminology consistentlyJieyou Xu-24/+23
2025-07-02Rename `header` -> `directives`Jieyou Xu-12/+12
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-02fix: Fix TypePrintFn flag passing for autodiff codegenKaran Janthe-0/+13
Signed-off-by: Karan Janthe <karanjanthe@gmail.com>
2025-07-02Auto merge of #142974 - cuviper:stage0-bump, r=Mark-Simulacrumbors-656/+557
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-02Consider polarity in sizedness fast pathMichael Goulet-3/+27
2025-07-02Use is_trivially_wf for ProvePredicate fast pathMichael Goulet-12/+2
2025-07-02Remove fast path from codegen_select, since Sized has no methodsMichael Goulet-9/+2
2025-07-01Specify the linker when building the test project in m68k CIAntoni Boucher-2/+2
2025-07-01Add missing space before --target-tripleAntoni Boucher-1/+1
2025-07-01Add missing --target-triple flags in m68k CIAntoni Boucher-2/+2
2025-07-01Specify linker in m68k CIAntoni Boucher-3/+1
2025-07-01Fix installation of libgccjit for m68kAntoni Boucher-1/+1
2025-07-01doc_nested_refdefs: do not falsely report checkboxes as refdefs (#15146)Samuel Tardieu-32/+6
changelog: [`doc_nested_refdefs`]: fix false positive where [task lists](http://pulldown-cmark.github.io/pulldown-cmark/third_party/gfm_tasklist.html) are reported as refdefs
2025-07-01Remove OVERWRITE_TARGET_TRIPLE env var now that config.sh is goneAntoni Boucher-9/+20
2025-07-02Remove unneeded `.as_bytes()`Samuel Tardieu-1/+1
`&str` already implements `AsRef<[u8]>`