Commit Graph

303456 Commits

Author SHA1 Message Date
bit-aloo
3248ff1f06 move llvm parsing to parse_inner 2025-08-01 20:27:07 +05:30
bit-aloo
89219ffc0e move install to parse_inner 2025-08-01 20:27:07 +05:30
bit-aloo
924912c532 move target parsing to parse_inner 2025-08-01 20:27:05 +05:30
bit-aloo
3f9bf57cf2 move dist to parse_inner 2025-08-01 20:26:15 +05:30
bit-aloo
f95edbee8b move gcc config parsing to parse_inner 2025-08-01 20:26:15 +05:30
Antoni Boucher
8a2a9db29e Fix LTO errors by not adding AlwaysInline to __rust_alloc_error_handler_should_panic_v2 2025-08-01 10:40:19 -04:00
Vadim Petrochenkov
d5ffb061e1 compiletest: Improve diagnostics for line annotation mismatches 2 2025-08-01 17:34:53 +03:00
lcnr
219e4c141d Merge pull request #2530 from lcnr/type-system-invariants
fix link
2025-08-01 15:50:18 +02:00
lcnr
ba57bbadc9 rarw 2025-08-01 15:49:36 +02:00
Jakub Beránek
c46f42d239 Clarify comments on Cargo (self-)test steps 2025-08-01 15:46:25 +02:00
Jakub Beránek
47da014771 Make x test cargo stage N test rustc stage N 2025-08-01 15:46:25 +02:00
Jakub Beránek
1d1efed4d4 Fix x test cargo 2025-08-01 15:46:25 +02:00
Jakub Beránek
528e7dc9ae Make build compiler explicit in dist::Cargo 2025-08-01 15:46:25 +02:00
Jakub Beránek
3e6aa81691 Add snapshot tests for test cargo and update Cargo snapshot tests 2025-08-01 15:46:25 +02:00
Jakub Beránek
021f2ff54d Update CargoTest 2025-08-01 15:46:25 +02:00
Jakub Beránek
21d7a54013 Make Cargo a ToolTarget tool 2025-08-01 15:46:25 +02:00
Jakub Beránek
316b5d3902 Add basic Cargo snapshot test 2025-08-01 15:46:25 +02:00
Jakub Beránek
0ff8ff38ee Appease Clippy 2025-08-01 15:46:25 +02:00
Jakub Beránek
c3da07beb4 Rename link_compiler to target_compiler 2025-08-01 15:46:24 +02:00
Jakub Beránek
06855be09d Port codegen backends to RustcPrivateCompilers 2025-08-01 15:46:23 +02:00
Jakub Beránek
7a2c4d3122 Add step metadata and a simple test for codegen backends 2025-08-01 15:44:53 +02:00
Jakub Beránek
91d40d270d Fix ToolRustc build with download-rustc 2025-08-01 15:44:53 +02:00
Jakub Beránek
2c7581fd25 Refactor Rustdoc 2025-08-01 15:44:53 +02:00
Jakub Beránek
b944144087 Add step metadata and a few tests for Doc steps 2025-08-01 15:44:53 +02:00
Jakub Beránek
6d562b2c74 Implement RustcPrivateCompilers to unify building of rustc_private tools 2025-08-01 15:44:53 +02:00
Jakub Beránek
2f3bfff051 Rename Builder::rustdoc to Builder::rustdoc_for_compiler
To clarify what it does.
2025-08-01 15:44:53 +02:00
Jakub Beránek
8fed3fbd4f Add step metadata to RustAnalyzerProcMacroSrv 2025-08-01 15:44:53 +02:00
Jakub Beránek
57a6c930e8 Cleanup ensure_if_default to not require Option output 2025-08-01 15:44:53 +02:00
Jakub Beránek
65c3597323 Add metadata to Cargo and RustAnalyzer tools 2025-08-01 15:44:53 +02:00
Jakub Beránek
b6f12d7b49 Rename extended rustc tool macros 2025-08-01 15:44:53 +02:00
bors
4b55fe199c Auto merge of #144735 - weihanglo:update-cargo, r=weihanglo
Update cargo

3 commits in a7fcef21feb4d835d1fee83b3f93b4aef86d5545..840b83a10fb0e039a83f4d70ad032892c287570a
2025-07-13 02:25:52 +0000 to 2025-07-30 13:59:19 +0000
- chore: fix some minor issues in comments (rust-lang/cargo#15787)
- feat(schema): Expose `IndexPackage`, the description of a package within a Registry Index (rust-lang/cargo#15770)
- chore: update toml/toml_edit to latest (rust-lang/cargo#15779)

r? ghost
2025-08-01 13:43:55 +00:00
Jieyou Xu
bd7b8b3612 Properly pass path to staged rustc to compiletest self-tests
Otherwise, this can do weird things like use a global rustc, or try to
use stage 0 rustc. This must be properly configured, because
`compiletest` is intended to only support one compiler target spec JSON
format (of the in-tree compiler).
2025-08-01 21:29:05 +08:00
lcnr
c277f4e64d Merge pull request #2529 from lcnr/type-system-invariants
add a chapter documenting candidate preference
2025-08-01 15:27:32 +02:00
lcnr
4f60c9097a rarw 2025-08-01 15:25:50 +02:00
bors
924a5a4b7f Auto merge of #144773 - RalfJung:rollup-uif2yyj, r=RalfJung
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#144397 (`tests/ui/issues/`: The Issues Strike Back [2/N])
 - rust-lang/rust#144410 (Make tier 3 musl targets link dynamically by default)
 - rust-lang/rust#144708 (Add tracing to step.rs and friends)
 - rust-lang/rust#144730 (Create a typed wrapper for codegen backends in bootstrap)
 - rust-lang/rust#144771 (Remove some noisy triagebot pings for myself)
 - rust-lang/rust#144772 (add unsupported_calling_conventions to lint list)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-01 10:20:07 +00:00
Ada Alakbarova
eea4d6dc3c {flat_,}map_identity: recognize (tuple) struct de- and restructuring
base check

same fields different struct

reordered fields

different paths to the same struct

same for tuple structs

style: use `zip`-the-function all over the place

makes the code a bit more concise by removing the need for explicit
`.iter()`

style: move precondition checking to the match guard

the match arms above put the "sanity" checks in the guard, and call only
`check_pat` in the body. With this commit, the (tuple) struct cases
follow that convention as well. Well, almost -- I think the ident check
belongs to the second category of checks, so I put it in the body as
well

misc: use `None` in the pattern directly

this'll probably be marginally faster thanks to the equality check being
now structural

move the tests to the right file
2025-08-01 11:24:44 +02:00
lcnr
fc463540de more strongly dissuade use of skip_binder 2025-08-01 10:46:01 +02:00
Nikita Popov
e2981f099c Update host toolchain
Necessary to avoid a bolt-related crash.
2025-08-01 10:18:28 +02:00
Nikita Popov
942f33be46 Update to LLVM 21 2025-08-01 10:17:04 +02:00
Boxy
54ade652c1 bump version 2025-08-01 09:04:01 +01:00
Ralf Jung
21140a5111 Rollup merge of #144772 - RalfJung:unsupported_calling_conventions, r=lqd
add unsupported_calling_conventions to lint list

Seems like you can emit lints without them being on the list, but users cannot control them then... *oops*.
2025-08-01 09:59:06 +02:00
Ralf Jung
feac604509 Rollup merge of #144771 - jieyouxu:noisy-ping, r=jieyouxu
Remove some noisy triagebot pings for myself

r? ghost
2025-08-01 09:59:05 +02:00
Ralf Jung
0ad0be9b20 Rollup merge of #144730 - Kobzol:bootstrap-cg-typed, r=jieyouxu
Create a typed wrapper for codegen backends in bootstrap

To avoid representing them just with strings.
2025-08-01 09:59:04 +02:00
Ralf Jung
d9f794a158 Rollup merge of #144708 - Stypox:add-tracing-to-step, r=RalfJung
Add tracing to step.rs and friends

Adds tracing calls to functions in `step.rs` (01717ffecfd47eb51f4877da6ad867b329a1ddd5), to friend functions related to evaluation and stepping (cbfa7c4b96b2ea26c1db185da9b59506bf8c8e55), and adds a new trait method `EnteredTraceSpan::or_if_tracing_disabled` (f0d0d1f5ecdf174696c8a74a5bc98967a2751c93).

Adding `EnteredTraceSpan::or_if_tracing_disabled` is optional and is only useful to avoid having both `tracing::info!()` calls (that existed before) and `enter_trace_span!()` calls (that this PR adds) that would be redundant and would slow down the collection of traces. I say it is optional because it adds some cognitive complexity around `EnteredTraceSpan`, which is possibly not worth the reduced redundancy. Let me know if I should revert that commit.

The tracing calls added in this PR are meant to make it easier to understand what was being executing at a particular point when looking at a trace. But they are likely not useful for the purpose of understanding which components are fast/slow, hence why I used `tracing_separate_thread` for them. After opening a trace generated using the code in this PR in https://ui.perfetto.dev, and after executing the following query and then pressing on "Show debug track", you will see something like the following image in the timeline:

```sql
select slices.id, ts, dur, track_id, category, args.string_value as name, depth, stack_id, parent_stack_id, parent_id, slices.arg_set_id, thread_ts, thread_instruction_count, thread_instruction_delta, cat, slice_id from slices inner join args USING (arg_set_id) where args.key = "args." || slices.name and name = "step"
```

<img width="739" height="87" alt="image" src="https://github.com/user-attachments/assets/74ad9619-9a1f-40e5-9ef4-3db31e33d6e1" />
2025-08-01 09:59:04 +02:00
Ralf Jung
fce6771410 Rollup merge of #144410 - Gelbpunkt:musl-tier3-dynamic, r=jieyouxu
Make tier 3 musl targets link dynamically by default

Since we don't build std for these and don't provide any support for them, these can trivially be changed to link dynamically by default.
2025-08-01 09:59:03 +02:00
Ralf Jung
37ad0776ac Rollup merge of #144397 - Kivooeo:issue2, r=jieyouxu
`tests/ui/issues/`: The Issues Strike Back [2/N]

Some `tests/ui/issues/` housekeeping, to trim down number of tests directly under `tests/ui/issues/`. Part of https://github.com/rust-lang/rust/issues/133895.

r? ``@jieyouxu``
2025-08-01 09:59:03 +02:00
Ralf Jung
0cc4be268e add unsupported_calling_conventions to lint list 2025-08-01 09:47:47 +02:00
bors
e3ee7f7aea Auto merge of #144768 - jhpratt:rollup-otf1yfj, r=jhpratt
Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#143849 (rustdoc: never link to unnamable items)
 - rust-lang/rust#144683 (Simplify library dependencies on `compiler-builtins`)
 - rust-lang/rust#144691 (Extend `is_case_difference` to handle digit-letter confusables)
 - rust-lang/rust#144700 (rustdoc-json: Move `#[macro_export]` from `Other` to it's own  variant)
 - rust-lang/rust#144751 (Add correct dynamic_lib_extension for aix)
 - rust-lang/rust#144757 (Ping Muscraft when emitter change)
 - rust-lang/rust#144759 (triagebot: Label `compiler-builtins` T-libs)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-01 07:09:43 +00:00
Jieyou Xu
89b4bb66d8 Remove some noisy triagebot pings 2025-08-01 14:52:00 +08:00
许杰友 Jieyou Xu (Joe)
f7267cc34b Merge pull request #2527 from lolbinarycat/patch-5 2025-08-01 13:59:42 +08:00