Commit Graph

303456 Commits

Author SHA1 Message Date
binarycat
2d1fccd7a1 pass build.npm from bootstrap to tidy and use it for npm install 2025-07-22 12:46:19 -05:00
Folkert de Vries
b658b3d251 work around not being able to project out of SIMD values any more 2025-07-22 19:32:09 +02:00
Jens Reidel
a9fd8d041b bootstrap: Move musl-root fallback out of sanity check
Previously, the musl root would only be set to the fallback /usr by
the sanity check, which isn't ran for the bootstrap tests.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-22 19:18:40 +02:00
Laurențiu Nicola
0a9b71da67 Merge pull request #20280 from Kobzol/josh-sync
Switch to using josh-sync
2025-07-22 17:08:34 +00:00
Laurențiu Nicola
45c1136fcc Merge pull request #20282 from Kobzol/josh-sync-ci
Add CI workflow for periodically performing josh pulls
2025-07-22 17:08:00 +00:00
Antoni Boucher
d05542af7a Add missing cast in gcc_checked_binop 2025-07-22 13:07:12 -04:00
Antoni Boucher
d3a61f88e8 Remove failing UI test 2025-07-22 13:06:52 -04:00
binarycat
25bbaf0d5c bootstrap: add package.json and package-lock.json to dist tarball
this ensures that js-related tests can still be run from within
such a dist tarball.
2025-07-22 11:58:34 -05:00
Jakub Beránek
b14869d11f Add CI workflow for periodically performing josh pulls 2025-07-22 18:15:54 +02:00
Jakub Beránek
0c22e6123b Apply suggestions from code review
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2025-07-22 18:14:20 +02:00
Antoni Boucher
3c35d9b3eb Add missing cast in gcc_checked_binop 2025-07-22 11:44:52 -04:00
Antoni Boucher
041be62e5f Add failing UI tests 2025-07-22 11:44:42 -04:00
Jens Reidel
f5a33e8897 Add powerpc64le-unknown-linux-musl to CI rustc targets
I missed this in the promotion to tier 2 with host tools.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-22 17:31:55 +02:00
Antoni Boucher
ba18e20501 Remove failing run-make test 2025-07-22 11:28:44 -04:00
Antoni Boucher
de5cf68546 Remove failing UI test 2025-07-22 11:27:07 -04:00
Antoni Boucher
9ea18272ec Fix sysroot compilation in release mode 2025-07-22 11:26:31 -04:00
yanglsh
6a8780473e fix: unused_async FP on function with todo! 2025-07-22 23:25:31 +08:00
bors
2e53675668 Auto merge of #144222 - Kobzol:stdarch-push, r=folkertdev
stdarch subtree update

Subtree update of `stdarch` to 5531955678.

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

I saw that there were non-trivial changes made to `std_detect` in `stdarch` recently. So I want to get them merged here before we move forward with https://github.com/rust-lang/rust/pull/143412.

r? `@folkertdev`
2025-07-22 15:25:31 +00:00
Antoni Boucher
a5bd9d6635 Fix spelling mistake 2025-07-22 11:17:43 -04:00
Antoni Boucher
27f3a97747 Use a bitcast in Builder::ret to support non-native integers 2025-07-22 11:16:06 -04:00
Antoni Boucher
a4fb5794e6 Fix compilation of overflow addition 2025-07-22 11:14:31 -04:00
Antoni Boucher
d466953088 Fix failing UI tests 2025-07-22 11:03:49 -04:00
Marijn Schouten
39ef6a96ad miropt: move to edition 2024 2025-07-22 15:02:34 +00:00
Marijn Schouten
0494311b9c miropt: clippy fixes 2025-07-22 15:02:34 +00:00
Guillaume Gomez
6bfa00816d Only run tests/assembly-* and tests/codegen-* tests if they match the current codegen backend 2025-07-22 16:43:03 +02:00
yuk1ty
0aa617001a Add a test case for ui test false-sealed-traits-note.rs 2025-07-22 23:31:10 +09:00
Jakub Beránek
75a1a04a35 Document synces using josh-sync 2025-07-22 15:25:18 +02:00
Jakub Beránek
64daba7f18 Remove pull/push functionality from xtask 2025-07-22 15:25:16 +02:00
Chayim Refael Friedman
2bd169fcc7 Parse for<'a> [const]
And also refactor parsing of HRTB.
2025-07-22 16:24:42 +03:00
Laurențiu Nicola
8bab91ce35 Merge pull request #20279 from lnicola/add-josh-sync
internal: Add `josh-sync.toml`
2025-07-22 13:08:09 +00:00
Laurențiu Nicola
eabf33a005 Add josh-sync.toml 2025-07-22 15:56:41 +03:00
Guillaume Gomez
a27f3e3fd1 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
Guillaume Gomez
af8cb1da14 Rename tests/assembly into tests/assembly-llvm 2025-07-22 14:27:48 +02:00
Guillaume Gomez
ed93c1783b Rename tests/assembly into tests/assembly-llvm 2025-07-22 14:27:48 +02:00
bors
35487a2e7c Auto merge of #144294 - matthiaskrgr:rollup-ybvall3, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#142454 (Add modern AVR mcus like avr128db28 and attiny3224)
 - rust-lang/rust#142924 (tidy: move rustdoc js stuff into a tidy extra check)
 - rust-lang/rust#143373 (Unquerify maybe_unused_trait_imports.)
 - rust-lang/rust#144082 (tests: cover more `exported_private_dependencies` cases)
 - rust-lang/rust#144126 (Fix empty target_config in apply_rust_config bootstrap)
 - rust-lang/rust#144164 ( opt-dist: add an option for setting path to stage0 root)
 - rust-lang/rust#144265 (Dont ICE on copy error being suppressed due to overflow)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-22 11:32:36 +00:00
Shoyu Vanilla (Flint)
244bea2ceb Merge pull request #20277 from rust-lang/dependabot/npm_and_yarn/editors/code/form-data-4.0.4
Bump form-data from 4.0.2 to 4.0.4 in /editors/code
2025-07-22 11:11:53 +00:00
xizheyin
2832517ba1 Clean code for rustc_parse/src/lexer
1. Rename `make_unclosed_delims_error` and return `Vec<Diag>`
2. change magic number `unclosed_delimiter_show_limit` to const
3. move `eof_err` below parsing logic
4. Add `calculate_spacing` for `bump` and `bump_minimal`

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-22 18:38:33 +08:00
Zalathar
f877aa7d14 coverage: Enlarge empty spans during MIR instrumentation, not codegen
This allows us to assume that coverage spans will only be discarded during
codegen in very unusual situations.
2025-07-22 19:49:54 +10:00
Florian Diebold
2b141acfb4 Merge pull request #20278 from lnicola/analysis-stats-mir-lowering-only
internal: Support filtering in analysis-stats MIR lowering
2025-07-22 08:35:41 +00:00
bors
c0b282f0cc Auto merge of #144205 - hkBst:flt2dec, r=workingjubilee
flt2dec: replace for loop by iter_mut

Perf is explored in https://github.com/rust-lang/rust/issues/144118, which initially showed small losses, but then also showed significant gains. Both are real, but given the smallness of the losses, this seems a good change.
2025-07-22 08:28:29 +00:00
Matthias Krüger
749f895d95 Rollup merge of #144265 - compiler-errors:copy-ice, r=oli-obk
Dont ICE on copy error being suppressed due to overflow

See comment in test file.

Fixes https://github.com/rust-lang/rust/issues/144165
2025-07-22 10:26:16 +02:00
Matthias Krüger
5c9a37faf7 Rollup merge of #144164 - ognevny:opt-dist-stage0-root, r=Kobzol
opt-dist: add an option for setting path to stage0 root

in MSYS2 we have problems with stage0 for *-gnullvm hosts because prebuilt dist tarballs will be
available starting from 1.90.0-beta. also this change helps to match bootstrap.toml config

r? Kobzol

try-job: dist-x86_64-msvc
try-job: dist-x86_64-linux
2025-07-22 10:26:16 +02:00
Matthias Krüger
cb3395b24f Rollup merge of #144126 - Shourya742:2025-06-18-fix-target-config-issue, r=Kobzol
Fix empty target_config in apply_rust_config bootstrap

This PR fixes the issue of an empty target_config in apply_rust_config, which was caused by the ordering of TOML config parsing. This was inadvertently introduced during the last config refactor. The test and the corresponding configuration order have been corrected in this PR.

r? ```@Kobzol```
2025-07-22 10:26:15 +02:00
Matthias Krüger
3ed170f02c Rollup merge of #143373 - cjgillot:bare-unused-trait-imports, r=petrochenkov
Unquerify maybe_unused_trait_imports.

Based on https://github.com/rust-lang/rust/pull/143247
r? ```@ghost``` for perf
2025-07-22 10:26:14 +02:00
Matthias Krüger
cdc79bdbd9 Rollup merge of #144082 - mladedav:dm/pub-priv-tests, r=petrochenkov
tests: cover more `exported_private_dependencies` cases

This PR adds tests for all missing cases from rust-lang/rust#71043 and some on top of that. I believe with this, that issue can be closed.

Some of the lints can be improved, e.g. `provided_impl_trait` and `impl From<PublicWithStdImpl> for OtherType` lint twice.

cc ```@epage``` in case you want to double check I didn't miss anything.
2025-07-22 10:26:14 +02:00
Matthias Krüger
b934f1adca Rollup merge of #143373 - cjgillot:bare-unused-trait-imports, r=petrochenkov
Unquerify maybe_unused_trait_imports.

Based on https://github.com/rust-lang/rust/pull/143247
r? ```@ghost``` for perf
2025-07-22 10:26:14 +02:00
Matthias Krüger
73305e2240 Rollup merge of #142924 - lolbinarycat:tidy-js-extra-checks, r=Kobzol
tidy: move rustdoc js stuff into a tidy extra check

Most of these were factored out of CI scripts, but `eslint` in particular was previously implemented with its own special cased logic.

A new option has been added to bootstrap, `build.tidy-extra-checks`, which serves as a default value for the `--extra-checks` flag.  This is mostly for the benefit of rustdoc js maintainers, but should also help bootstrap py maintainers.

Additionally, `--extra-checks=cpp` has been documented.

I'm not super happy with how long the extra check names are in comparison to the others (in particular `typecheck`), but I couldn't think of anything better (I didn't want to name it `tsc` on the off chance we want to switch to a different typechecking engine in the future).

It would be nice to convert the extra checks arg into a proper enum, both for warning on unknown values and to provide better shell completion.

r? ```@GuillaumeGomez```

Fixes: https://github.com/rust-lang/rust/issues/144093
2025-07-22 10:26:13 +02:00
Matthias Krüger
ed92e53803 Rollup merge of #142454 - tomtor:avr-update, r=tgross35
Add modern AVR mcus like avr128db28 and attiny3224

Related to https://github.com/llvm/llvm-project/pull/143914

r? ```@Patryk27```
2025-07-22 10:26:12 +02:00
Laurențiu Nicola
fa95cba0f0 Support filtering in analysis-stats MIR lowering 2025-07-22 11:22:16 +03:00
Josh Triplett
551cb9f1f4 mbe: Use concrete type for get_unused_rule
Rather than adding `get_unused_rule` to the `TTMacroExpander` trait, put
it on the concrete `MacroRulesMacroExpander`, and downcast to that type
via `Any` in order to call it.

Suggested-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2025-07-22 00:36:10 -07:00