Commit Graph

303456 Commits

Author SHA1 Message Date
Jakub Beránek
607a567916 Use a faster runner for the x64 dist-alt job 2025-06-10 12:17:05 +02:00
Rémy Rakic
8f069e948a enable rustc debug assertions on -alt builds
llvm assertions are already enabled and debug assertions are also useful
2025-06-10 12:17:05 +02:00
Ralf Jung
6d1db1144c const_eval: fix some outdated comments 2025-06-10 11:45:38 +02:00
bjorn3
30c48bcb55 Use Operand::constant() in a couple of places
Also reduce visibility of a function
2025-06-10 09:39:50 +00:00
Jakub Beránek
723dae84c1 Pass jemalloc feature to Clippy in bootstrap 2025-06-10 11:19:46 +02:00
Ralf Jung
680176ad58 Merge pull request #4389 from RalfJung/native-lib-search-order
native_lib: skip to next .so if function was in dependency of the first
2025-06-10 09:11:49 +00:00
Ralf Jung
f5457e402f Merge pull request #4382 from RalfJung/dup
test_dup: ensure the FDs remain in sync even after dup'ing
2025-06-10 09:11:22 +00:00
Jakub Beránek
dd0fa3d356 Add jemalloc feature to Clippy 2025-06-10 11:09:54 +02:00
Jakub Beránek
3d9c46e13c Add jemalloc feature to Clippy 2025-06-10 11:09:54 +02:00
Oli Scherer
7f4093e78b Loop check anon consts on their own 2025-06-10 08:41:23 +00:00
Oli Scherer
1b9d38dd08 Remove check_mod_loops query and run the checks per-body instead 2025-06-10 08:41:23 +00:00
Ralf Jung
2d72737a79 Merge pull request #4391 from RalfJung/float-nondet-tests
float tests: test non-determinism for more operations
2025-06-10 08:35:10 +00:00
Oli Scherer
b73bf3c0b5 Add regression test for break inside const items 2025-06-10 08:34:27 +00:00
MarcoIeni
f30e9c943c ci: split x86_64-gnu-tools job 2025-06-10 10:30:06 +02:00
Nicholas Nethercote
195c985398 Avoid cloning self.index in after_krate.
It can be very big.

This reduces peak memory usage for some `--output-format=json` runs by
up to 8%.
2025-06-10 18:14:23 +10:00
Folkert de Vries
b030442eb6 indent the probestack inline assembly 2025-06-10 10:09:00 +02:00
Folkert de Vries
45d649e2ea merge the sgx/fortanix __rust_probestack into the general x86_64 one 2025-06-10 10:09:00 +02:00
Folkert de Vries
b6eb4f9c3a use #[naked] for __rust_probestack 2025-06-10 10:08:57 +02:00
Folkert de Vries
f3af86010b add a fixme to use extern_custom when available 2025-06-10 10:08:08 +02:00
Ralf Jung
a7153db254 float tests: test non-determinism for more operations 2025-06-10 10:07:20 +02:00
Ralf Jung
7d5fac72da Merge pull request #4394 from RalfJung/smallvec
add SmallVec test
2025-06-10 07:15:37 +00:00
Trevor Gross
b5fafd9816 ci: Fix a typo that was causing a command failure 2025-06-10 07:02:57 +00:00
Trevor Gross
3497619ec1 compiler-builtins: Remove unused lints.rust table
The unexpected configs are now unused or known to `rustc` in our CI.
2025-06-10 06:49:28 +00:00
Jubilee
8808a9c17f hir_analysis: Elaborate on lint strategy for unsupported ABIs
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-06-09 23:48:33 -07:00
Ralf Jung
3e980d5f64 add SmallVec test 2025-06-10 08:46:30 +02:00
Ralf Jung
19f195d1fb Merge pull request #4393 from rust-lang/rustup-2025-06-10
Automatic Rustup
2025-06-10 06:36:58 +00:00
Nicholas Nethercote
cc671754a3 Simplify JsonRenderer.
- It doesn't need to be cloneable.
- Some of the `Rc`s and `RefCell`s aren't doing anything.
- `after_krate` can consume `self`.
2025-06-10 16:25:02 +10:00
Jubilee Young
6b0deb2161 tests: Revise dont-shuffle-bswaps-opt3 per tested arch
Some architectures gain target-cpu minimums in doing so.
2025-06-09 23:15:44 -07:00
Ralf Jung
fceb8d6510 sync max_fundamental_align with alloc crate 2025-06-10 08:10:16 +02:00
Jakub Beránek
cb3d074f6a Only run citool tests on the auto branch 2025-06-10 08:00:13 +02:00
bors
40daf23eeb Auto merge of #142109 - weihanglo:update-cargo, r=weihanglo
Update cargo

18 commits in 64a12460708cf146e16cc61f28aba5dc2463bbb4..fc1518ef02b77327d70d4026b95ea719dd9b8c51
2025-05-30 18:25:08 +0000 to 2025-06-06 04:49:44 +0000
- fix: Make UI tests handle hyperlinks consistently (rust-lang/cargo#15640)
- Update "time out" to "timeout" (rust-lang/cargo#15637)
- fix(workspace): reload current manifest path member only (rust-lang/cargo#15633)
- Update dependencies (rust-lang/cargo#15635)
- fix(publish): Don't tell people to ctrl-c without knowing consequences  (rust-lang/cargo#15632)
- refactor: clean up `clippy::perf` lint warnings (rust-lang/cargo#15631)
- fix(package): Skip registry check if its not needed (rust-lang/cargo#15629)
- Add --offline for comp (rust-lang/cargo#15623)
- cargo-credential-libsecret: load libsecret only once (rust-lang/cargo#15295)
- test(publish): Improvements in prep for `-Zpackage-workspace` stabilization (rust-lang/cargo#15628)
- fix(package): Allow packaging of self-cycles with -Zpackage-workspace (rust-lang/cargo#15626)
- docs: clarify `--all-features` not available for all commmands (rust-lang/cargo#15572)
- Remove double reference in Shell::print_json (rust-lang/cargo#15460)
- fix(trim-paths): remap all paths to `build.build-dir` (rust-lang/cargo#15614)
- test(trim-paths): enable more tests for windows-msvc (rust-lang/cargo#15621)
- fix(fingerprint): explicit reason rather than "stale; unknown reason" (rust-lang/cargo#15617)
- Fix cargo add overwriting symlinked Cargo.toml files (rust-lang/cargo#15281)
- chore(deps): update alpine docker tag to v3.22 (rust-lang/cargo#15616)

r? ghost
2025-06-10 05:56:54 +00:00
kiseitai3
7d7fedbab4 docs: Small clarification on the usage of read_to_string and read_to_end trait methods 2025-06-10 05:08:39 +00:00
The Miri Cronjob Bot
89db7778d6 fmt 2025-06-10 05:03:44 +00:00
The Miri Cronjob Bot
c601681d95 Merge from rustc 2025-06-10 05:02:33 +00:00
The Miri Cronjob Bot
5eb5f2a226 Preparing for merge from rustc 2025-06-10 04:55:12 +00:00
bors
8a407a8284 Auto merge of #142250 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-06-10 01:52:18 +00:00
Jubilee Young
59069986e7 tests: Copy dont-shuffle-bswaps per tested opt level 2025-06-09 17:40:05 -07:00
Alona Enraght-Moony
856c9971fd rustdoc: Refractor clean_ty_generics 2025-06-10 00:39:45 +00:00
Laine Taffin Altman
7c2d2a3050 Darwin AArch64 detection update
Synchronizes the lists of detectable features with macOS 15.5 “Sequoia” as of June 9, 2025.
2025-06-09 23:25:18 +00:00
Jubilee Young
6cea550285 tests: Minicore extern "gpu-kernel" feature test
Explicitly cross-build it for GPU targets and check it errors on hosts.
2025-06-09 16:21:08 -07:00
Trevor Gross
f0b25641fb Remove compiler-builtins from rustc-dep-of-std dependencies
Since [1], this will come automatically from `rustc-std-workspace-core`
and the crates.io dependency should no longer be specified.

[1]: https://github.com/rust-lang/rust/pull/141993
2025-06-09 23:11:45 +00:00
Jubilee Young
518eb0d5dd rustdoc-json: Rearrange deck chairs in ABI testing
We move the vectorcall ABI tests into their own file which is now
only run on x86-64, while replacing them with rust-cold ABI tests
so that aarch64 hosts continue to test an unstable ABI.

A better solution might be cross-compiling or something but
I really don't have time for that right now.
2025-06-09 16:11:06 -07:00
Jubilee Young
643a9d233b tests: Change "fastcall" to "system" in some tests
Lets the test still work on different architectures.
2025-06-09 16:10:21 -07:00
Jubilee Young
0df01a04fd tests: bless unsupported_calling_conventions linting on some fn_ptrs 2025-06-09 15:50:01 -07:00
Folkert de Vries
852d853a03 add s390x z17 target features 2025-06-09 22:45:55 +00:00
Jubilee Young
580a9555d5 compiler: Fix reusing same lint on fn ptrs with newly-deprecated ABIs 2025-06-09 15:38:38 -07:00
Mateusz Mikuła
4f0b60aa71 Don't create .msi installer for gnullvm hosts
WIX toolset works only on Windows hosts and we need to boostrap this
host.
2025-06-09 23:54:04 +02:00
bors
c6768de2d6 Auto merge of #138062 - LorrensP-2158466:miri-enable-float-nondet, r=RalfJung
Enable Non-determinism of float operations in Miri and change std tests

Links to [#4208](https://github.com/rust-lang/miri/issues/4208) and [#3555](https://github.com/rust-lang/miri/issues/3555) in Miri.

Non-determinism of floating point operations was disabled in rust-lang/rust#137594 because it breaks the tests and doc-tests in core/coretests and std. This PR enables some of them.

This pr includes the following changes:

- Enables the float non-determinism but with a lower relative error of 4ULP instead of 16ULP
- These operations now have a fixed output based on the C23 standard, except the pow operations, this is tracked in [#4286](https://github.com/rust-lang/miri/issues/4286#issue-3010677983)
- Changes tests that made incorrect assumptions about the operations, not to make that assumption anymore (from `assert_eq!` to `assert_approx_eq!`.
- Changed the doctests of the stdlib of these operations to compare against fixed constants instead of `f*::EPSILON`, which now succeed with Miri and `-Zmiri-many-seeds`
- Added a constant `APPROX_DELTA` in `std/tests/floats/f32.rs` which is used for approximation tests, but with a different value when run in Miri. This is to make these tests succeed.
- Added tests in the float tests of Miri to test the C23 behaviour.

Fixes https://github.com/rust-lang/miri/issues/4208
2025-06-09 21:21:58 +00:00
Jubilee Young
dd78c95c54 assert more often in release in ast_lowering 2025-06-09 14:02:58 -07:00
Jubilee Young
ff8b11e02a assert in release in ast_lowering::item 2025-06-09 14:02:45 -07:00