Commit Graph

303456 Commits

Author SHA1 Message Date
Folkert de Vries
ca70466fa3 aarch64: use f16::min and f16::max 2025-07-12 18:12:08 +02:00
Jonathan Brouwer
3187aa751a Fix clippy & rustdoc-json
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-12 17:48:52 +02:00
Jonathan Brouwer
68066b90b8 Update uitest stderrs
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-12 17:48:52 +02:00
Jonathan Brouwer
a1cfca3d07 Fix clippy & rustdoc-json
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-12 17:48:52 +02:00
Jonathan Brouwer
ef82007ed7 Port #[automatically_derived] to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-12 17:48:50 +02:00
A4-Tacks
01f434675b Fix assoc type where clause position 2025-07-12 23:48:41 +08:00
LorrensP-2158466
e3fc6e5348 merge source and target bindings into single field 2025-07-12 17:42:02 +02:00
Jieyou Xu
977e7d4e11 Label clippy changes with T-clippy team label 2025-07-12 23:15:19 +08:00
Jieyou Xu
869c0e729b Hoist the more "special" autolabels to the start of the section 2025-07-12 23:13:46 +08:00
Jieyou Xu
8011058d90 Make it clearer which key-values belong to which autolabel 2025-07-12 23:12:15 +08:00
Antoni Boucher
1954034e34 Comment test that cannot be fixed currently 2025-07-12 10:44:48 -04:00
Antoni Boucher
0bb092a93f Fix building the sysroot 2025-07-12 10:28:44 -04:00
Jakub Beránek
9de6e2c547 Add rustc-pull CI automation 2025-07-12 16:21:32 +02:00
Alejandra González
7e2d26f4b2 Fix approx_const for some new cases (#15236)
Fix some cases for `approx_const`:
- When the literal has more digits than significant ones, the string
comparison wasn't working
- When numbers are formatted in a non trivial way (with leading `0`s or
using `_`) the lint now finds those cases

changelog: [`approx_const`]: Fix when used over overly precise literals
and non trivially formatted numerals

Fixes rust-lang/rust-clippy#15194
2025-07-12 13:57:16 +00:00
bit-aloo
a9a238ba5b explicitly drop span_guard in wait_for_output 2025-07-12 19:23:58 +05:30
bors
bfc046a4b8 Auto merge of #143624 - tmiasko:copy-prop-borrowed, r=cjgillot
Propagate from borrowed locals in CopyProp

r? cjgillot
2025-07-12 13:48:36 +00:00
Timo
3c3ee9bddb {flat_,}map_identity: recognize |[x, y]| [x, y] as an identity function as well (#15229)
changelog: [`map_identity`,`flat_map_identity`]: also recognize `|[x,
y]| [x, y]`

fixes rust-lang/rust-clippy#15198
2025-07-12 13:10:23 +00:00
b-naber
9ed5378cfd replace binding and shadowed_glob on NameResolution with non_glob_binding and glob_binding 2025-07-12 15:06:32 +02:00
bjorn3
10bec8f7de Add change_tracker.rs entry 2025-07-12 12:37:03 +00:00
bjorn3
ccc302baa0 Move --compile-time-deps 2025-07-12 12:34:37 +00:00
Ada Alakbarova
e610584a9a {flat_,}map_identity: also recognize |[x, y]| [x, y] 2025-07-12 14:02:41 +02:00
Scott McMurray
d5bcfb334b Simplify codegen for niche-encoded variant tests 2025-07-12 04:53:24 -07:00
Ada Alakbarova
415438718c Use Ty::is_fn instead of manually matching on TyKind 2025-07-12 13:34:32 +02:00
Jieyou Xu
6f8a7f0000 Make rustdoc-gui-test dummy compiletest config purpose explicit 2025-07-12 19:07:34 +08:00
bors
915e535244 Auto merge of #143810 - matthiaskrgr:rollup-iw7a23z, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#143403 (Port several trait/coherence-related attributes the new attribute system)
 - rust-lang/rust#143633 (fix: correct assertion to check for 'noinline' attribute presence before removal)
 - rust-lang/rust#143647 (Clarify and expand documentation for std::sys_common dependency structure)
 - rust-lang/rust#143716 (compiler: doc/comment some codegen-for-functions interfaces)
 - rust-lang/rust#143747 (Add target maintainer information for aarch64-unknown-linux-musl)
 - rust-lang/rust#143759 (Fix typos in function names in the `target_feature` test)
 - rust-lang/rust#143767 (Bump `src/tools/x` to Edition 2024 and some cleanups)
 - rust-lang/rust#143769 (Remove support for SwitchInt edge effects in backward dataflow)
 - rust-lang/rust#143770 (build-helper: clippy fixes)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-12 10:46:43 +00:00
Ralf Jung
b703451b34 refine comment
Co-authored-by: Jakub Beránek <berykubik@gmail.com>
2025-07-12 12:11:54 +02:00
Ralf Jung
2ecbf825ba fix clippy_test_deps workspace handling 2025-07-12 12:10:04 +02:00
Ralf Jung
a0a8e80604 fix clippy_test_deps workspace handling 2025-07-12 12:10:04 +02:00
bit-aloo
57ee3f206c add span to streaming command execution flow 2025-07-12 14:55:30 +05:30
bit-aloo
acbbc18599 fix span for deferred command execution 2025-07-12 14:52:34 +05:30
Ralf Jung
0cc60617d7 clippy: fix test filtering when TESTNAME is empty 2025-07-12 11:11:29 +02:00
Ralf Jung
73edfe7b73 clippy: fix test filtering when TESTNAME is empty 2025-07-12 11:11:29 +02:00
Jieyou Xu
b9ae117199 Do not glob-reexport TestMode variants
I would like to introduce `TestSuite` over stringly-typed test suite
names, and some test suite names are the same as test modes, which can
make this very confusing.
2025-07-12 16:17:19 +08:00
Jieyou Xu
4aad9ab8aa Rename Mode to TestMode
It is *critical* that we maintain clear nomenclature in `compiletest`.
We have many types of "modes" in `compiletest` -- pass modes, coverage
modes, compare modes, you name it. `Mode` is also a *super* general
term. Rename it to `TestMode` to leave no room for such ambiguity.

As a follow-up, I also intend to introduce an enum for `TestSuite`, then
rid of all usage of glob re-exported `TestMode::*` enum variants -- many
test suites share the same name as the test mode.
2025-07-12 16:07:20 +08:00
Jieyou Xu
b4dfd51bac Do not allow defaults for Mode and Config
They do not have sensible defaults, and it is crucial that we get them
right.
2025-07-12 15:59:16 +08:00
Jieyou Xu
832b6273bd Move string_enum to util module 2025-07-12 15:57:40 +08:00
Jieyou Xu
33668c1b0e Remove outdated debugger version warning 2025-07-12 15:46:08 +08:00
bors
2f9c9cede6 Auto merge of #143766 - matthiaskrgr:rollup-0x7t69s, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#142391 (rust: library: Add `setsid` method to `CommandExt` trait)
 - rust-lang/rust#143302 (`tests/ui`: A New Order [27/N])
 - rust-lang/rust#143303 (`tests/ui`: A New Order [28/28] FINAL PART)
 - rust-lang/rust#143568 (std: sys: net: uefi: tcp4: Add timeout support)
 - rust-lang/rust#143611 (Mention more APIs in `ParseIntError` docs)
 - rust-lang/rust#143661 (chore: Improve how the other suggestions message gets rendered)
 - rust-lang/rust#143708 (fix: Include frontmatter in -Zunpretty output )
 - rust-lang/rust#143718 (Make UB transmutes really UB in LLVM)

r? `@ghost`
`@rustbot` modify labels: rollup

try-job: i686-gnu-nopt-1
try-job: test-various
2025-07-12 07:44:04 +00:00
Ralf Jung
b0e4c3594f ./x test miri: fix cleaning the miri_ui directory 2025-07-12 09:40:35 +02:00
Ralf Jung
91a52cac82 Merge pull request #4465 from RalfJung/readme-strict-provenance
readme: update strict provenance link
2025-07-12 07:20:28 +00:00
Ralf Jung
bccc32bf79 readme: update strict provenance link 2025-07-12 08:55:17 +02:00
dswij
3d7188d06d Add uninlined_format_args example for {:?} (#15228)
Before this, you had to guess how to fix a `{:?}` formatting argument. I
have happened to guess `{:?var}` in the past, got frustrated, and
disabled the lint. This additional example would have saved me a bit of
trouble.

changelog: [`uninlined_format_args`]: added an example of how to fix a
`{:?}` parameter.
2025-07-12 06:20:15 +00:00
Teodoro Freund
093b6e5de9 Fix approx_const for some new cases
Improved naming and comment
2025-07-12 07:16:23 +01:00
bors
9535feebd5 Auto merge of #143809 - weihanglo:update-cargo, r=weihanglo
Update cargo

14 commits in 930b4f62cfcd1f0eabdb30a56d91bf6844b739bf..eabb4cd923deb73e714f7ad3f5234d68ca284dbe
2025-06-28 14:58:43 +0000 to 2025-07-09 22:07:55 +0000
- feat: Implementation and tests for `multiple-build-scripts` (rust-lang/cargo#15704)
- perf: Speed up TOML parsing by upgrading toml (rust-lang/cargo#15736)
- Mark cachelock tests that rely on interprocess blocking behaviour as unsupported on AIX. (rust-lang/cargo#15734)
- feat(publish): Stabilize multi-package publishing (rust-lang/cargo#15636)
- Update to Rust 2024 (rust-lang/cargo#15732)
- Clarify package ID specifications in SBOMs are fully qualified (rust-lang/cargo#15731)
- chore(deps): update cargo-semver-checks to v0.42.0 (rust-lang/cargo#15730)
- test: Switch config tests to use snapshots (rust-lang/cargo#15729)
- implement package feature unification (rust-lang/cargo#15684)
- chore: Upgrade dependencies (rust-lang/cargo#15722)
- Report valid file name when we can't find a build target for `name = "foo.rs"` (rust-lang/cargo#15707)
- chore(release): Publish build-rs on release (rust-lang/cargo#15708)
- Override `Cargo.lock` checksums when doing a dry-run `publish` (rust-lang/cargo#15711)
- test(rustfix): Update for nightly (rust-lang/cargo#15717)

r? ghost
2025-07-12 04:39:57 +00:00
nazo6
5d7db7e16e Fixed a core crate compilation failure when enabling the optimize_for_size feature on some targets 2025-07-12 10:59:19 +09:00
Folkert de Vries
301bb69450 Merge pull request #1868 from folkertdev/gen-arm-remove-lazy-static
`stdarch-gen-arm`: remove `lazy_static`, use `LazyLock` instead
2025-07-11 23:44:24 +00:00
Sayantan Chakraborty
cd48abd478 Merge pull request #1858 from folkertdev/aarch-comparison-operators
aarch64: use `core::intrinsics::simd` for integer min/max
2025-07-11 23:07:13 +00:00
Pavel Grigorenko
f6bdffdcba Add Ref/RefMut try_map method 2025-07-12 02:03:04 +03:00
Folkert de Vries
d6feec7735 stdarch-gen-arm: remove lazy_static, use LazyLock instead 2025-07-12 01:02:49 +02:00
Jakub Beránek
0528cc9638 Access wasi_sdk_path instead of reading environment variable in bootstrap 2025-07-11 22:43:02 +02:00