Commit graph

11802 commits

Author SHA1 Message Date
Guillaume Gomez
770919211f
Rollup merge of #151043 - patch-1, r=ehuss
armv7-unknown-linux-uclibceabihf.md: Fix bootstrap.toml syntax

With the suggested value we were getting instead:

```
ERROR: Failed to parse '/tmp/rust/bootstrap.toml': unknown field `stage`, expected one of `build`, `description`, `host`, `target`, `build-dir`, `cargo`, `rustc`, `rustfmt`, `cargo-clippy`, `docs`, `compiler-docs`, `library-docs-private-items`, `docs-minification`, `submodules`, `gdb`, `lldb`, `nodejs`, `npm`, `yarn`, `python`, `windows-rc`, `reuse`, `locked-deps`, `vendor`, `full-bootstrap`, `bootstrap-cache-path`, `extended`, `tools`, `tool`, `verbose`, `sanitizers`, `profiler`, `cargo-native-static`, `low-priority`, `configure-args`, `local-rebuild`, `print-step-timings`, `print-step-rusage`, `check-stage`, `doc-stage`, `build-stage`, `test-stage`, `install-stage`, `dist-stage`, `bench-stage`, `patch-binaries-for-nix`, `metrics`, `android-ndk`, `optimized-compiler-builtins`, `jobs`, `compiletest-diff-tool`, `compiletest-allow-stage0`, `compiletest-use-stage0-libtest`, `tidy-extra-checks`, `ccache`, `exclude` for key `build`
```
2026-01-13 23:39:12 +01:00
Guillaume Gomez
080c7043c1
Rollup merge of #150840 - print-check-cfg-rework-output, r=nnethercote
Make `--print=check-cfg` output compatible `--check-cfg` arguments

This PR changes significantly the output of the unstable `--print=check-cfg` option.

Specifically it removes the ad-hoc resemblance with `--print=cfg` in order to output a simplified but still compatible `--check-cfg` arguments.

The goal is to future proof the output of `--print=check-cfg` like `--check-cfg` is, and the best way to do that is to use it's syntax.

This is particularly relevant for [RFC3905](https://github.com/rust-lang/rfcs/pull/3905) which wants to introduce a new predicate: `version(...)`.
2026-01-13 23:39:09 +01:00
Jonathan Brouwer
0a200ad04f
Rollup merge of #151029 - rdg-sync, r=tshepang
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to e905666c5a.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost
2026-01-13 09:01:35 +01:00
Marco Trevisan
1e69091403
armv7-unknown-linux-uclibceabihf.md: Update toolchain download link
The old toolchain is not working with recent rustc, as it does not
defining `getauxval`
2026-01-13 04:17:51 +01:00
Marco Trevisan
e5dbb3b1a2
armv7-unknown-linux-uclibceabihf.md: Fix build-toml syntax
With the suggested value we were getting instead:

```
ERROR: Failed to parse '/tmp/rust/bootstrap.toml': unknown field `stage`, expected one of `build`, `description`, `host`, `target`, `build-dir`, `cargo`, `rustc`, `rustfmt`, `cargo-clippy`, `docs`, `compiler-docs`, `library-docs-private-items`, `docs-minification`, `submodules`, `gdb`, `lldb`, `nodejs`, `npm`, `yarn`, `python`, `windows-rc`, `reuse`, `locked-deps`, `vendor`, `full-bootstrap`, `bootstrap-cache-path`, `extended`, `tools`, `tool`, `verbose`, `sanitizers`, `profiler`, `cargo-native-static`, `low-priority`, `configure-args`, `local-rebuild`, `print-step-timings`, `print-step-rusage`, `check-stage`, `doc-stage`, `build-stage`, `test-stage`, `install-stage`, `dist-stage`, `bench-stage`, `patch-binaries-for-nix`, `metrics`, `android-ndk`, `optimized-compiler-builtins`, `jobs`, `compiletest-diff-tool`, `compiletest-allow-stage0`, `compiletest-use-stage0-libtest`, `tidy-extra-checks`, `ccache`, `exclude` for key `build`
```
2026-01-13 04:01:45 +01:00
Urgau
feb44c3f48 Make --print=check-cfg output compatible --check-cfg arguments 2026-01-12 23:46:22 +01:00
Tshepang Mbambo
da5aa2825a sembr src/tests/perf.md 2026-01-12 22:26:55 +02:00
Tshepang Mbambo
579e2b3009 some improvements to tests/best-practices.md 2026-01-12 22:26:30 +02:00
Tshepang Mbambo
d89da80448 sembr src/tests/best-practices.md 2026-01-12 22:19:30 +02:00
Tshepang Mbambo
2d9616a5d7 add missing pause 2026-01-12 22:18:33 +02:00
Tshepang Mbambo
c451d97ce1 a more natural continuation 2026-01-12 22:18:18 +02:00
Tshepang Mbambo
328942672d sembr src/profiling/with_rustc_perf.md 2026-01-12 22:15:18 +02:00
Tshepang Mbambo
d442a793b2 sembr src/rustdoc-internals/rustdoc-html-test-suite.md 2026-01-12 22:13:40 +02:00
Tshepang Mbambo
31c0191395 sembr src/building/new-target.md 2026-01-12 22:10:04 +02:00
Tshepang Mbambo
e0d9c079ee add missing pause 2026-01-12 22:06:43 +02:00
Tshepang Mbambo
419655be81 sembr src/tests/directives.md 2026-01-12 20:52:54 +02:00
Tshepang Mbambo
98e65aa454 handle another numbered list notation 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
9a81699f06 use a stronger pause 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
c4b05c3883 fix sembr tool limitation 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
2204cbd987 "in tree" should be "in-tree" 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
52a5023e76 sembr src/external-repos.md 2026-01-12 20:43:48 +02:00
Tshepang Mbambo
ffe359fe2b another corner case 2026-01-12 20:43:48 +02:00
rustbot
439da07453 Update books 2026-01-12 18:01:10 +01:00
nora
d2cd1ff18d
Merge pull request #2722 from reddevilmidzy/ambig
Fix indent in rust code
2026-01-12 12:05:23 +01:00
The rustc-josh-sync Cronjob Bot
d53ec2a0c8 Merge ref '44a5b55557' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: rust-lang/rust@44a5b55557
Filtered ref: rust-lang/rustc-dev-guide@df5b7c44b8
Upstream diff: 85c8ff69cb...44a5b55557

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-12 04:29:34 +00:00
The rustc-josh-sync Cronjob Bot
e20d903c1c Prepare for merging from rust-lang/rust
This updates the rust-version file to 44a5b55557.
2026-01-12 04:29:24 +00:00
Matthias Krüger
0a7d5f9f73
Rollup merge of #150438 - m68k-elf-platform-doc-update, r=Noratrieb
Remove mentions of debootstrap and chroots from the m68k-unknown-none-elf platform support doc

I left the mentions of qemu-user-static as it's one of the only easily accessible emulators for m68k, even though you would have to write your own `_start` and such. The C toolchain that is mentioned is also the easiest way I've found so far to get a linker, which is still needed unless I'm missing something.

closes rust-lang/rust#150414

r? @Noratrieb
2026-01-12 00:02:53 +01:00
kirk
ab1caae912 move sentence about gnu ld from 'Building' to 'Requirements' section 2026-01-10 17:20:34 +00:00
kirk
767291606e Remove mentions of debootstrap and chroots from the m68k-unknown-none-elf platform support doc 2026-01-10 17:03:18 +00:00
Matthias Krüger
0161646212
Rollup merge of #150876 - gcc-dev-guide, r=Kobzol
Mention that `rustc_codegen_gcc` is a subtree in `rustc-dev-guide`

Was asked on [zulip](https://rust-lang.zulipchat.com/#narrow/channel/386786-rustc-codegen-gcc/topic/Subtree.20handling/with/564354089).

r? @RalfJung
2026-01-10 08:34:07 +01:00
Matthias Krüger
1df4902575
Rollup merge of #150269 - update-nvptx-maintainers, r=jieyouxu
Remove inactive nvptx maintainer

Since I just saw the discussion in [#t-compiler > Starting to enforce Tier 2-to-3 downgrade](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Starting.20to.20enforce.20Tier.202-to-3.20downgrade/with/564788312), and I saw him pinged on PRs or issues. His last active open-source contributions were in early 2022: https://github.com/RDambrosio016 and IIRC he also mentioned that he had moved on.

ping @RDambrosio016 so you can confirm or correct me, if you want to chime in. I also pinged him on Zulip.

cc @kjetilkjeka who is the other maintainer and active on related issues/prs for his target.

I'd leave it open for a while, but
r? @jieyouxu
2026-01-10 08:33:56 +01:00
Guillaume Gomez
01e8f14867 Mention that rustc_codegen_gcc is a subtree in rustc-dev-guide 2026-01-09 15:03:33 +01:00
Guillaume Gomez
8f89503777
Rollup merge of #150864 - fix-aarch64-platform-docs, r=jdonszelmann
The aarch64-unknown-none target requires NEON, so the docs were wrong.

As discussed [on zulip](https://rust-lang.zulipchat.com/#narrow/channel/242906-t-compiler.2Farm/topic/aarch64-unknown-none.20platform.20docs/with/567045743), we think the docs for the aarch64-unknown-none target don't match the target spec.
2026-01-09 12:00:03 +01:00
Guillaume Gomez
e99f5f63a6
Rollup merge of #150808 - derive-internals, r=jhpratt
rename the `derive_{eq, clone_copy}` features to `*_internals`

Features like `derive_from` and `derive_coerce_pointee` refer to actual unstable derive macros, but the `derive_eq` and `derive_clone_copy` features are internal hacks. Rename them accordingly by adding the suffix `_internals`.
2026-01-09 12:00:00 +01:00
Jonathan Pallant
025ac8f512
The aarch64-unknown-none target requires NEON, so the docs were wrong. 2026-01-09 08:37:01 +00:00
Jieyou Xu
48ccb1f187
Retire outdated stage0 std remarks
Co-authored-by: Deadbeef <ent3rm4n@gmail.com>
2026-01-09 13:04:37 +08:00
Matthias Krüger
0b98c6024b
Rollup merge of #150787 - s390x-musl-co-maintainer, r=Noratrieb
Add myself as co-maintainer for s390x-unknown-linux-musl

Having two dedicated target maintainers is a prerequisite for promoting this target to tier 2. I've been in contact with Ulrich and he's agreed to having me as a co-maintainer in preparation for a MCP to promote it to tier 2.

cc @uweigand
2026-01-08 16:25:32 +01:00
Matthias Krüger
3481c0d3cb
Rollup merge of #150569 - check_static_initializer_acyclic, r=workingjubilee
Ensure that static initializers are acyclic for NVPTX

NVPTX does not support cycles in static initializers (see rust-lang/rust#146787). LLVM produces an error when attempting to generate code for such constructs, like self-referential structs.

To avoid LLVM UB, we emit a post-monomorphization error on the Rust side before reaching codegen.

This is achieved by analyzing a subgraph of the "mono item graph" that only contains statics.
1. Calculate the strongly connected components (SCCs) of the graph.
2. Check for cycles (more than one node in an SCC or one node that references itself).
2026-01-08 16:25:30 +01:00
cyrgani
d41191958a rename the derive_{eq, clone_copy} features to *_internals 2026-01-08 12:35:30 +00:00
xonx
e2c73b806e docs:improve const generics 2026-01-08 02:32:51 +00:00
Aelin Reidel
600102c09b
Add myself as co-maintainer for s390x-unknown-linux-musl
Having two dedicated target maintainers is a prerequisite for promoting
this target to tier 2. I've been in contact with Ulrich and he's agreed
to having me as a co-maintainer in preparation for a MCP to promote it to
tier 2.
2026-01-08 02:21:44 +01:00
Jakub Beránek
dbf905fea9
Rollup merge of #150761 - patch-1, r=wesleywiser
rustc book: fix grammar
2026-01-07 23:15:51 +01:00
Tshepang Mbambo
7ba5fbc0d4
Merge pull request #2696 from Mattias-Petersson/fix-1692
Fix #1692: Add example for profiling diff locally
2026-01-07 22:11:01 +02:00
Guillaume Gomez
8256623ab4 Update rustc-dev-guide about tests/rustdoc renamed into tests/rustdoc-html 2026-01-07 14:23:30 +01:00
Tshepang Mbambo
5b4dbe0213
add missing commas 2026-01-07 14:53:21 +02:00
Tshepang Mbambo
43e1604def
rustc book: fix grammar 2026-01-07 14:51:18 +02:00
kulst
630c7596e9 Ensure that static initializers are acyclic for NVPTX
NVPTX does not support cycles in static initializers. LLVM produces an error when attempting to codegen such constructs (like self referential structs).

To not produce LLVM UB we instead emit a post-monomorphization error on
Rust side before reaching codegen.

This is achieved by analysing a subgraph of the "mono item graph" that
only contains statics:
1. Calculate the strongly connected components (SCCs) of the graph
2. Check for cycles (more than one node in a SCC or exactly one node
   which references itself)
2026-01-06 17:00:21 +01:00
Redddy
8233943e81
Fix indent in rust code 2026-01-06 14:11:22 +09:00
Mattias Petersson
f4112ee9b6 Fix commit according to PR review
Changed so cargo specifies the binary collector, removing the need to
link to its local binary. Clarified that the SHAs should be from the
rustc-repo, but the command should be ran in the rustc-perf repo.
2026-01-04 09:49:33 +01:00
Matthias Krüger
689e74d944
Rollup merge of #150637 - vsriramv:fix/edit-url-template, r=Kobzol
Fix broken edit links in Unstable and rustc books

Updated the edit-url-template for the unstable book and the rustc book.

Fixes rust-lang/rust#150593

The "Suggest an edit" links were pointing to HEAD, which resulted in a 404. Changed these to point to main.

r? `@Kobzol`
2026-01-03 10:09:31 +01:00