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:
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
bors
f77bb1b294
Auto merge of #142344 - Kobzol:revert-142232, r=RalfJung
...
Revert "add `Cargo.lock` to CI-rustc allowed list for non-CI env"
This reverts commit c3de813944 (https://github.com/rust-lang/rust/pull/142232 ).
r? `@RalfJung`
Fixes: https://github.com/rust-lang/rust/issues/142338
Unfixes: https://github.com/rust-lang/rust/issues/141986
2025-06-11 14:49:22 +00:00
Boxy
4cb48c8d75
stabilize gai
2025-06-11 15:30:15 +01:00
Boxy
fe04ae7faf
stabilize gai
2025-06-11 15:30:15 +01:00
Amanieu d'Antras
341889647e
Fixes to compile with latest Rust nightly
2025-06-11 14:11:23 +00:00
Kivooeo
09940635d5
cleaned up some tests
2025-06-11 17:49:03 +05:00
Jakub Beránek
796ee4ff6c
Do not warn on rust.incremental when using download CI rustc
2025-06-11 14:42:06 +02:00
Pascal S. de Kloe
042a271742
faster fmt::Display of 128-bit integers, without unsafe pointer
2025-06-11 14:20:57 +02:00
Matthias Krüger
583a6e2de7
Rollup merge of #142328 - sorairolake:feature/uint-bit-width, r=tgross35
...
feat: Add `bit_width` for unsigned integer types
- Accepted ACP: rust-lang/libs-team#598
- Tracking issue: rust-lang/rust#142326
This PR adds methods to the primitive unsigned integer types that return the minimum number of bits required to represent an unsigned integer.
2025-06-11 13:48:13 +02:00
Matthias Krüger
b1c668ca03
Rollup merge of #142324 - scottmcm:less-functioncx, r=workingjubilee
...
Remove unneeded `FunctionCx` from some codegen methods
No changes; just removing the `self` that wasn't needed.
r? workingjubilee
cc https://github.com/rust-lang/rust/pull/138759#issuecomment-2920860686
2025-06-11 13:48:13 +02:00
Matthias Krüger
9ef19ddfd8
Rollup merge of #142306 - compiler-errors:nit-reveal-param-env-query, r=lcnr
...
Dont unwrap and re-wrap typing envs
Just a tiny tweak to make the query less awkward.
r? lcnr
2025-06-11 13:48:12 +02:00
Matthias Krüger
80e294e011
Rollup merge of #142298 - jieyouxu:loongarch-maintainer-list, r=fee1-dead
...
Make loongarch-none target maintainers more easily pingable
In the same style as rust-lang/rust#139028 .
r? compiler
2025-06-11 13:48:12 +02:00
Matthias Krüger
57bb38b836
Rollup merge of #142297 - jieyouxu:needs-target-std, r=Kobzol
...
Implement `//@ needs-target-std` compiletest directive
Closes rust-lang/rust#141863 .
Needed to unblock rust-lang/rust#139244 and rust-lang/rust#141856 .
### Summary
This PR implements a `//@ needs-target-std` compiletest directive that gates test execution based on whether the target supports std or not. For some cases, this should be preferred over e.g. some combination of `//@ ignore-none`, `//@ ignore-nvptx` and more[^none-limit].
### Implementation limitation
Unfortunately, since there is currently [no reliable way to determine from metadata whether a given target supports std or not](https://github.com/rust-lang/rust/issues/142296 ), we have to resort to a hack. Bootstrap currently determines whether or not a target supports std by a naive target tuple substring comparison: a target supports std if its target tuple does *not* contain one of `["-none", "nvptx", "switch"]` substrings. This PR simply pulls that hack out into `build_helpers` to avoid reimplementing the same hack in compiletest, and uses that logic to inform `//@ needs-target-std`.
### Auxiliary changes
This PR additionally changes a few run-make tests to use `//@ needs-target-std` over an inconsistent combination of target-based `ignore`s. This should help with rust-lang/rust#139244 .
---
r? bootstrap
[^none-limit]: Notably, `target_os = "none"` is **not** a sufficient condition for "target does not support std"
2025-06-11 13:48:11 +02:00
Matthias Krüger
407e568381
Rollup merge of #142282 - Kobzol:citool-skip-tests, r=marcoieni
...
Only run `citool` tests on the `auto` branch
Proposed here: [#t-infra > PR ci seems much to slow @ 💬 ](https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/PR.20ci.20seems.20much.20to.20slow/near/523159583 ). I haven't yet seen these tests failing on CI, so I think it's a good trade-off.
r? `````@marcoieni`````
2025-06-11 13:48:10 +02:00
Matthias Krüger
90e4ba46ea
Rollup merge of #142272 - workingjubilee:change-some-abi-tests, r=aDotInTheVoid
...
tests: Change ABIs in tests to more future-resilient ones
Eventually we're going to make these tests not work as they are currently written on HEAD, so change them now to get ahead of that.
r? aDotInTheVoid
2025-06-11 13:48:09 +02:00
Matthias Krüger
58d80b6d05
Rollup merge of #142042 - estebank:explicit-lifetime-verbose-suggestion, r=compiler-errors
...
Make E0621 missing lifetime suggestion verbose
```
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/42701_one_named_and_one_anonymous.rs:10:9
|
LL | &*x
| ^^^ lifetime `'a` required
|
help: add explicit lifetime `'a` to the type of `x`
|
LL | fn foo2<'a>(a: &'a Foo, x: &'a i32) -> &'a i32 {
| ++
```
Part of rust-lang/rust#141973 .
2025-06-11 13:48:09 +02:00
Matthias Krüger
471dee2ca8
Rollup merge of #141967 - jieyouxu:bootstrap-backports, r=Kobzol
...
Configure bootstrap backport nominations through triagebot
Following the discussion in [#t-infra/bootstrap > ✔ Have triagebot create backport nomination threads?](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/.E2.9C.94.20Have.20triagebot.20create.20backport.20nomination.20threads.3F/with/521876500 ) where we noticed that bootstrap backport nominations were difficult to track, since:
- We don't really have a dedicated person / group of people checking for bootstrap backport nominations.
- We don't really have an establish way of handling bootstrap backports.
This PR configures triagebot to open backport nominations threads (indicated for bootstrap team if a given PR has the suitable team label, https://github.com/rust-lang/rust/labels/T-bootstrap ) in [#t-infra/bootstrap/backports](https://rust-lang.zulipchat.com/#narrow/channel/507486-t-infra.2Fbootstrap.2Fbackports ). The current configuration is such that **the whole bootstrap team will be pinged for bootstrap backport nominations**[^diverges].
### Steps
- [x] ~~Ping members who opt-in subscribe to backport channel, or ping the whole bootstrap team?~~
- Poll: [#t-infra/bootstrap > Have triagebot create backport nomination threads? @ 💬 ](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Have.20triagebot.20create.20backport.20nomination.20threads.3F/near/522141337 )
- Votes (as of 2025-06-10): 3 votes "no preference", 1 vote "in favor".
- [x] ~~(Best for follow-up) Maybe also document bootstrap team's backport process / decision process in Forge? It's a bit different from [compiler team's backport process](https://forge.rust-lang.org/compiler/backports.html ) because we don't have weekly bootstrap triage meetings and thus don't have sync backport decisions.~~
- Tracked as follow-up in Forge: https://github.com/rust-lang/rust-forge/issues/889 .
---
r? Kobzol
[^diverges]: Note that this configuration is similar to the types team backport nominations, but diverges from the compiler team.
2025-06-11 13:48:08 +02:00