Commit graph

294336 commits

Author SHA1 Message Date
Boxy
d96b2d4398 Stub chapter and consolidate under /hir/ 2025-06-17 18:09:02 +01:00
Boxy
02334e1ad0
Merge pull request #2472 from cbloodsworth/fix/tytable_parens
Remove hanging parenthesis from example signature.
2025-06-16 22:59:37 +01:00
Chris Bloodsworth
1dbf86a631 Remove hanging parenthesis from example signature.
Also replaced '→' symbol with '->' for consistency across the table.
2025-06-16 16:08:21 -04:00
nora
3edb332892
Merge pull request #2471 from Darksonn/patch-1
Use stage 1 for building docs
2025-06-16 19:45:23 +02:00
Alice Ryhl
808d16c536
Use stage 1 for building docs 2025-06-16 17:03:33 +02:00
Tshepang Mbambo
d16e1a1452
Merge pull request #2468 from rust-lang/query-cleaning
Query cleaning
2025-06-14 23:52:29 +02:00
Tshepang Mbambo
21a1e51704 do not inline links 2025-06-14 22:56:10 +02:00
Tshepang Mbambo
820e88a7c6 title case 2025-06-14 22:49:46 +02:00
Tshepang Mbambo
a3f261c976
Merge pull request #2467 from rust-lang/tshepang-patch-1
use sentence case
2025-06-14 22:46:18 +02:00
Tshepang Mbambo
0834e48a11
use sentence case 2025-06-14 22:44:47 +02:00
Tshepang Mbambo
9926215ef2
Merge pull request #2466 from rust-lang/tshepang-moved
content has moved to another chapter
2025-06-14 22:17:51 +02:00
Tshepang Mbambo
a70deb6e75 content has moved to another chapter 2025-06-14 22:16:51 +02:00
Tshepang Mbambo
9265493052
Merge pull request #2465 from xizheyin/rustc-query
Adjust some doc for Query System
2025-06-14 21:39:25 +02:00
Tshepang Mbambo
94d56d18fd
Merge pull request #2441 from rust-lang/tshepang-remove-title-case
use consistent title capitalization
2025-06-14 19:52:41 +02:00
xizheyin
a4c8ef9f34 Adjust some doc for Query System
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-13 22:51:25 +08:00
Tshepang Mbambo
7db4177547
Merge pull request #2464 from rust-lang/rustc-pull
Rustc pull update
2025-06-12 13:30:15 +02:00
The rustc-dev-guide Cronjob Bot
6da0ebf087 Merge from rustc 2025-06-12 04:06:44 +00:00
The rustc-dev-guide Cronjob Bot
8a7fbded4d Preparing for merge from rustc 2025-06-12 04:06:27 +00: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
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
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
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
Jakub Beránek
87b068ccb7
Fix missing newline trim in bootstrap 2025-06-11 19:05:10 +02: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
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
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
bors
bdb04d6c4f Auto merge of #141763 - lcnr:fixme-gamer, r=BoxyUwU
`FIXME(-Znext-solver)` triage

r? `@BoxyUwU`
2025-06-11 11:47:05 +00:00
bit-aloo
d4d90ca3d2
put flag check at the end of command chain in mingw-check-2 2025-06-11 16:01:40 +05:30
Stypox
cd04717899
Fix enter_trace_span!() using wrong $crate paths 2025-06-11 12:22:20 +02:00
bit-aloo
8c236ab51e
add comment over ci change 2025-06-11 13:48:50 +05:30