Matthias Krüger
b3ddf3cae2
Rollup merge of #142066 - ferrocene:lw/edition-2015-tests, r=compiler-errors
...
More simple 2015 edition test decoupling
This should be the last of these PRs for now. The remaining tests that do not work on other editions than 2015 either need the range support (so blocked on the MCP), need normalization rules (which needs discussions first/same MCP) or revisions.
r? compiler-errors
2025-06-12 03:14:50 +02:00
Matthias Krüger
bdf7b74517
Rollup merge of #142040 - jswrenn:transmute-ty-region-generic, r=compiler-errors
...
transmutability: shift abstraction boundary
Previously, `rustc_transmute`'s layout representations were genericized over `R`, a reference. Now, it's instead genericized over representations of type and region. This allows us to move reference transmutability logic from `rustc_trait_selection` to `rustc_transmutability` (and thus unit test it independently of the compiler), and — in a follow-up PR — will make it possible to support analyzing function pointer transmutability with minimal surgery.
r? `@compiler-errors`
2025-06-12 03:14:49 +02:00
Matthias Krüger
9f6e81c202
Rollup merge of #141307 - b-naber:closure-body, r=celinval
...
Add method to retrieve body of closure in stable-mir
fixes https://github.com/rust-lang/project-stable-mir/issues/85
r? `@celinval`
2025-06-12 03:14:49 +02:00
Mark Rousskov
24fd5b4087
Cargo wants wasmparser in different order
...
It's not clear to me how we ended up with the other order here --
hopefully this isn't an indicator of some form of instability in Cargo?
But either order is fine...
2025-06-11 21:12:45 -04:00
Mark Rousskov
9a495acf88
Add new permitted dependencies
2025-06-11 21:11:54 -04:00
github-actions
94b41f6dd0
cargo update
...
compiler & tools dependencies:
Locking 57 packages to latest compatible versions
Updating anstream v0.6.18 -> v0.6.19
Updating anstyle v1.0.10 -> v1.0.11
Updating anstyle-lossy v1.1.3 -> v1.1.4
Updating anstyle-parse v0.2.6 -> v0.2.7
Updating anstyle-query v1.1.2 -> v1.1.3
Updating anstyle-svg v0.1.7 -> v0.1.8
Updating anstyle-wincon v3.0.7 -> v3.0.9
Updating bitflags v2.9.0 -> v2.9.1
Updating bumpalo v3.17.0 -> v3.18.1
Updating bytecount v0.6.8 -> v0.6.9
Updating camino v1.1.9 -> v1.1.10
Updating clap v4.5.38 -> v4.5.39
Updating clap_builder v4.5.38 -> v4.5.39
Updating color-eyre v0.6.4 -> v0.6.5
Updating color-spantrace v0.2.2 -> v0.3.0
Updating colorchoice v1.0.3 -> v1.0.4
Updating curl v0.4.47 -> v0.4.48
Updating curl-sys v0.4.80+curl-8.12.1 -> v0.4.82+curl-8.14.1
Updating errno v0.3.11 -> v0.3.12
Updating flate2 v1.1.1 -> v1.1.2
Updating hashbrown v0.15.3 -> v0.15.4
Updating hermit-abi v0.3.9 -> v0.5.1
Updating icu_properties v2.0.0 -> v2.0.1
Updating icu_properties_data v2.0.0 -> v2.0.1
Updating jiff v0.2.13 -> v0.2.14
Updating jiff-static v0.2.13 -> v0.2.14
Updating jsonpath-rust v1.0.1 -> v1.0.2
Updating libloading v0.8.7 -> v0.8.8
Updating lock_api v0.4.12 -> v0.4.13
Updating num_cpus v1.16.0 -> v1.17.0
Adding once_cell_polyfill v1.70.1
Updating openssl-sys v0.9.108 -> v0.9.109
Updating owo-colors v4.2.0 -> v4.2.1
Updating parking_lot v0.12.3 -> v0.12.4
Updating parking_lot_core v0.9.10 -> v0.9.11
Updating portable-atomic v1.11.0 -> v1.11.1
Updating rustc-build-sysroot v0.5.7 -> v0.5.8
Updating rustversion v1.0.20 -> v1.0.21
Updating serde_spanned v0.6.8 -> v0.6.9
Updating smallvec v1.15.0 -> v1.15.1
Updating socket2 v0.5.9 -> v0.5.10
Updating sysinfo v0.35.0 -> v0.35.2
Updating tokio v1.45.0 -> v1.45.1
Updating toml_datetime v0.6.9 -> v0.6.11
Updating tracing-attributes v0.1.28 -> v0.1.29
Updating type-map v0.5.0 -> v0.5.1
Updating uuid v1.16.0 -> v1.17.0
Updating wasm-encoder v0.230.0 -> v0.233.0
Updating wasmparser v0.230.0 -> v0.233.0
Updating wast v230.0.0 -> v233.0.0
Updating wat v1.230.0 -> v1.233.0
Updating windows-bindgen v0.61.0 -> v0.61.1
Updating windows-core v0.61.0 -> v0.61.2
Updating windows-future v0.2.0 -> v0.2.1
Updating windows-result v0.3.2 -> v0.3.4
Updating windows-strings v0.4.0 -> v0.4.2
Adding windows-threading v0.1.0
note: pass `--verbose` to see 38 unchanged dependencies behind latest
library dependencies:
Locking 1 package to latest compatible version
Updating hashbrown v0.15.3 -> v0.15.4
note: pass `--verbose` to see 5 unchanged dependencies behind latest
rustbook dependencies:
Locking 39 packages to latest compatible versions
Updating anstream v0.6.18 -> v0.6.19
Updating anstyle v1.0.10 -> v1.0.11
Updating anstyle-parse v0.2.6 -> v0.2.7
Updating anstyle-query v1.1.2 -> v1.1.3
Updating anstyle-wincon v3.0.7 -> v3.0.9
Updating bitflags v2.9.0 -> v2.9.1
Updating bumpalo v3.17.0 -> v3.18.1
Updating cc v1.2.22 -> v1.2.26
Updating clap v4.5.38 -> v4.5.39
Updating clap_builder v4.5.38 -> v4.5.39
Updating clap_complete v4.5.50 -> v4.5.52
Updating colorchoice v1.0.3 -> v1.0.4
Updating errno v0.3.11 -> v0.3.12
Updating flate2 v1.1.1 -> v1.1.2
Updating hashbrown v0.15.3 -> v0.15.4
Updating icu_properties v2.0.0 -> v2.0.1
Updating icu_properties_data v2.0.0 -> v2.0.1
Updating jiff v0.2.13 -> v0.2.14
Updating jiff-static v0.2.13 -> v0.2.14
Updating lock_api v0.4.12 -> v0.4.13
Adding once_cell_polyfill v1.70.1
Updating opener v0.8.1 -> v0.8.2
Updating parking_lot v0.12.3 -> v0.12.4
Updating parking_lot_core v0.9.10 -> v0.9.11
Updating portable-atomic v1.11.0 -> v1.11.1
Updating railroad v0.3.2 -> v0.3.3
Updating rustversion v1.0.20 -> v1.0.21
Updating serde_spanned v0.6.8 -> v0.6.9
Updating smallvec v1.15.0 -> v1.15.1
Updating tempfile v3.19.1 -> v3.20.0
Updating toml v0.8.22 -> v0.8.23
Updating toml_datetime v0.6.9 -> v0.6.11
Updating toml_edit v0.22.26 -> v0.22.27
Updating toml_write v0.1.1 -> v0.1.2
Adding unicode-width v0.2.0
Updating web_atoms v0.1.2 -> v0.1.3
Updating windows-core v0.61.0 -> v0.61.2
Updating windows-result v0.3.2 -> v0.3.4
Updating windows-strings v0.4.0 -> v0.4.2
2025-06-11 21:11:54 -04:00
bors
14346303d7
Auto merge of #136594 - pascaldekloe:fmt-int128, r=tgross35
...
Faster fmt::Display of 128-bit integers, without unsafe pointer
In followup of #135265 , hereby the 128-bit part.
* Batches per 16 instead of 19 digits
* Buffer access as array insteaf of unsafe pointer
* Added test coverage for i128 and u128
r? tgross35 ChrisDenton
2025-06-12 01:02:55 +00:00
Celina G. Val
f52c6eee02
Another round of tidy / warning fixes
2025-06-11 16:56:01 -07:00
beetrees
2457bb2cfb
Apply ABI attributes on return types in rustc_codegen_cranelift
2025-06-12 00:47:01 +01:00
beetrees
eb472e77cd
Apply ABI attributes on return types in rustc_codegen_cranelift
2025-06-12 00:47:01 +01:00
Camille GILLOT
a5ff3cc3f5
Do not clone Arc when hashing span.
2025-06-11 23:44:22 +00:00
antoyo
acfb0460b8
Merge pull request #706 from emmanuel-ferdman/master
...
Use `tempfile::TempDir::keep()` instead of deprecated `into_path()`
2025-06-11 18:39:37 -04:00
Alejandra González
6d7c16a3d6
Remove ClippyCtfe pass ( #14712 )
...
It doesn't seem to be load bearing for any clippy lints and the rustc
ones that no longer appear behave the same as they would for a `cargo
check`
r? @blyxyas
changelog: none
2025-06-11 22:14:03 +00:00
bors
31d0d2123d
Auto merge of #142381 - matthiaskrgr:rollup-si4xbko, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#142305 (Remove unneeded `check_id` calls as they are already called in `visit_id` in `EarlyContextAndPass` type)
- rust-lang/rust#142314 (remove ice group pings from `triagebot.toml`)
- rust-lang/rust#142343 (remove myself from the project)
- rust-lang/rust#142346 (Add tracing import to execution context)
- rust-lang/rust#142356 (Fix enter_trace_span!() using wrong $crate paths)
- rust-lang/rust#142362 (Add expectation for `{` when parsing lone coroutine qualifiers)
- rust-lang/rust#142364 (Do not warn on `rust.incremental` when using download CI rustc)
- rust-lang/rust#142369 (Improve some attribute docs and rename groups)
- rust-lang/rust#142374 (Fix missing newline trim in bootstrap)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-11 22:01:33 +00:00
Emmanuel Ferdman
45e23b21ad
Use tempfile::TempDir::keep() instead of deprecated into_path()
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-06-11 14:11:19 -07:00
dependabot[bot]
af079f827e
chore(deps-dev): bump brace-expansion in /editors/code
...
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion ) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases )
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12 )
---
updated-dependencies:
- dependency-name: brace-expansion
dependency-version: 1.1.12
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-11 21:01:40 +00:00
Matthias Krüger
c97dca6989
Rollup merge of #142374 - Kobzol:fix-newline, r=tmiasko
...
Fix missing newline trim in bootstrap
Fixes [this comment](https://github.com/rust-lang/rust/pull/141909/files#r2140632918 ).
Fixes: https://github.com/rust-lang/rust/issues/142350
2025-06-11 22:58:30 +02:00
Matthias Krüger
f417620160
Rollup merge of #142369 - jdonszelmann:attr-docs, r=fmease
...
Improve some attribute docs and rename groups
r? `@nnethercote`
Some naming here got changed at some point, and this feels more consistent. The docs changes were a direct response to `@mejrs` trying to implement a new parsers and running into this.
2025-06-11 22:58:29 +02:00
Matthias Krüger
e80be0bcba
Rollup merge of #142364 - Kobzol:download-ci-incremental-warning-remove, r=RalfJung
...
Do not warn on `rust.incremental` when using download CI rustc
Discussed on Zulip.
r? `@RalfJung`
2025-06-11 22:58:29 +02:00
Matthias Krüger
e78b619cad
Rollup merge of #142362 - Veykril:push-rzmrsswqourz, r=oli-obk
...
Add expectation for `{` when parsing lone coroutine qualifiers
Fixes https://github.com/rust-lang/rust/issues/80931
2025-06-11 22:58:28 +02:00
Matthias Krüger
e2846d6b75
Rollup merge of #142356 - Stypox:fix-enter_trace_span, r=RalfJung
...
Fix enter_trace_span!() using wrong $crate paths
This is a followup to rust-lang/rust#140972 , where I made a silly mistake and forgot to update `$crate::interpret::tracing_utils::...` to `$crate::interpret::util::...` inside the macro after moving the referenced code from `tracing_utils.rs` to `util.rs`. Sorry about this.
r? `@RalfJung`
2025-06-11 22:58:28 +02:00
Matthias Krüger
507c57554d
Rollup merge of #142346 - Shourya742:2025-06-11-add-tracing-import-to-execution-context, r=Kobzol
...
Add tracing import to execution context
In https://github.com/rust-lang/rust/pull/141909 , we missed adding the trace_cmd import in the execution context module. This PR fixes that. Additionally, we are updating the mingw-check-2 check command to include BOOTSTRAP_TRACING=1 to help ensure we don't miss such cases in future PRs.
r? `@Kobzol`
2025-06-11 22:58:27 +02:00
Matthias Krüger
13f95426fd
Rollup merge of #142343 - onur-ozkan:remove-myself-from-the-project, r=Kobzol
...
remove myself from the project
See [#t-infra/bootstrap > stepping down from T-Bootstrap](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/stepping.20down.20from.20T-Bootstrap/with/523501689 )
2025-06-11 22:58:27 +02:00
Matthias Krüger
deea0677f4
Rollup merge of #142314 - cyrgani:icebreaker, r=jieyouxu
...
remove ice group pings from `triagebot.toml`
Followup to rust-lang/team#1860 .
Question: should the https://github.com/rust-lang/rust/labels/ICEBreaker-Cleanup-Crew and https://github.com/rust-lang/rust/labels/ICEBreaker-LLVM labels be deleted too or not?
2025-06-11 22:58:26 +02:00
Matthias Krüger
b29c9a3588
Rollup merge of #142305 - GuillaumeGomez:remove-visit_id-EarlyContextAndPass, r=oli-obk
...
Remove unneeded `check_id` calls as they are already called in `visit_id` in `EarlyContextAndPass` type
Follow-up from [this message](https://github.com/rust-lang/rust/pull/142240/files#r2137474724 ).
Since `check_id` is already called in `visit_id` which is supposed to be called for each item with an ID, we don't need to manually call `check_id`.
r? `@oli-obk`
2025-06-11 22:58:26 +02:00
Trevor Gross
68609e4214
Upgrade the standard library unwinding version
...
This comes with a `gimli` upgrade, so we no longer have two different
versions.
2025-06-11 20:05:06 +00:00
Stypox
8dac423f82
Add bootstrap option to compile a tool with features
2025-06-11 21:50:21 +02:00
Chayim Refael Friedman
b0055c9fff
Merge pull request #19975 from davidbarsky/davidbarsky/test-trait-solve-invalidation
...
hir-ty: test incremental trait solving
2025-06-11 19:49:05 +00:00
Celina G. Val
4aa62ea9e9
Use rustc_thread_pool instead of rustc-rayon-core
2025-06-11 12:26:42 -07:00
sayantn
fa425db34f
Simplify implementation of Rust intrinsics by using type parameters in the cache
2025-06-12 00:32:42 +05:30
sayantn
d56fcd968d
Simplify implementation of Rust intrinsics by using type parameters in the cache
2025-06-12 00:32:42 +05:30
Ralf Jung
f5e10748e5
Merge pull request #4383 from LorrensP-2158466/remove-leaky-syncobj
...
use RwLockRef instead of RwLockId
2025-06-11 18:15:46 +00:00
Celina G. Val
0b9b1df006
Fix format and tidy for code moved from rayon
2025-06-11 11:12:32 -07:00
bors
e703dff8fe
Auto merge of #142358 - matthiaskrgr:rollup-fxe6m7k, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- rust-lang/rust#141967 (Configure bootstrap backport nominations through triagebot)
- rust-lang/rust#142042 (Make E0621 missing lifetime suggestion verbose)
- rust-lang/rust#142272 (tests: Change ABIs in tests to more future-resilient ones)
- rust-lang/rust#142282 (Only run `citool` tests on the `auto` branch)
- rust-lang/rust#142297 (Implement `//@ needs-target-std` compiletest directive)
- rust-lang/rust#142298 (Make loongarch-none target maintainers more easily pingable)
- rust-lang/rust#142306 (Dont unwrap and re-wrap typing envs)
- rust-lang/rust#142324 (Remove unneeded `FunctionCx` from some codegen methods)
- rust-lang/rust#142328 (feat: Add `bit_width` for unsigned integer types)
Failed merges:
- rust-lang/rust#141639 (Expose discriminant values in stable_mir)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-11 17:51:57 +00:00
Ralf Jung
479524f44e
mutex, rwlock: move some methods around so we borrow the RefCell less often
2025-06-11 19:46:56 +02:00
Celina G. Val
35c5144394
Move rayon-core to rustc_thread_pool files as is
...
This commit literally copied the directory rayon-core from
revision `5fadf44`. Link:
https://github.com/rust-lang/rustc-rayon/tree/5fadf44/rayon-core
2025-06-11 10:43:59 -07:00
LorrensP-2158466
74bd9df30e
use RwLockRef instead of RwLockId
2025-06-11 19:11:06 +02:00
Trevor Gross
1f6abbb99f
Upgrade the standard library addr2line version
...
0.25.0 is a breaking change only because it upgrades the `gimli`
version. It also includes a change to the `compiler-builtins` dependency
that helps with [1].
Changelog: https://github.com/gimli-rs/addr2line/blob/master/CHANGELOG.md#0250-20250611
[1]: https://github.com/rust-lang/rust/issues/142265
2025-06-11 17:06:53 +00:00
Jakub Beránek
87b068ccb7
Fix missing newline trim in bootstrap
2025-06-11 19:05:10 +02:00
Trevor Gross
1ec80452b6
Upgrade the standard library object version
...
0.37.0 is a semver-breaking release but the only breakage is in
`elf::R_RISCV_GNU_*` and `pe::IMAGE_WEAK_EXTERN_*` constants, as well as
Mach-O dyld. This API is not used by `std`, so we should be fine to
upgrade.
This new version also includes functionality for parsing Wasm object
files that we may eventually like to make use of.
Also includes the minor bump from 0.37.0 to 0.37.1 to help [1].
Changelog: https://github.com/gimli-rs/object/blob/master/CHANGELOG.md#0370
[1]: https://github.com/rust-lang/rust/issues/142265
2025-06-11 17:01:08 +00:00
Jubilee Young
8f0c09aa50
tests: Bless for weaker unsupported_calling_conventions
2025-06-11 09:58:52 -07:00
Trevor Gross
457a4c4aff
Update dependencies in library/Cargo.lock
...
This removes the `compiler_builtins` dependency from a handful of
library dependencies, which is progress toward [1].
[1]: https://github.com/rust-lang/rust/issues/142265
2025-06-11 16:58:40 +00:00
Jubilee Young
86493f75a5
compiler: Avoid reporting unsupported_calling_conventions in deps
2025-06-11 09:55:41 -07:00
Jana Dönszelmann
ce0438684d
consistently rename (old) attribute groups
2025-06-11 18:46:57 +02:00
Jana Dönszelmann
34241e5397
document attribute parsers better
2025-06-11 18:46:57 +02:00
relaxcn
7cb7e28c4d
Fix FP of identity_op when encountering Default::default()
2025-06-12 00:37:05 +08:00
Mara Bos
c85760c66a
Fix Debug for Location.
2025-06-11 18:28:05 +02:00
David Barsky
fb169ff8a7
hir-ty: test (the absence of) incremental trait solving
2025-06-11 12:12:58 -04:00
Kivooeo
c6c55cc0cb
cleaned up some tests
2025-06-11 20:51:49 +05:00
Lukas Wirth
edc405d383
Add expectation for { when parsing lone coroutine qualifiers
2025-06-11 17:11:58 +02:00