Commit graph

312008 commits

Author SHA1 Message Date
Ralf Jung
a121102003
Merge pull request #4733 from michaliskok/genmc-bug-fixes
genmc: Bug fixes
2025-11-29 12:45:50 +00:00
Michalis Kokologiannakis
68a81c42fa genmc/build,tests: Update GenMC version to 0.16.1
This version fixes some issues with atomic_{umix,umax} operation
and memory allocation.
2025-11-29 13:21:55 +01:00
Michalis Kokologiannakis
c9f27c42bf diagnostics: Explain why programs might run OOM in GenMC mode
GenMC's allocator can currently only allocate up to 4GB per thread.

Authored-by: Ralf Jung
2025-11-29 13:21:55 +01:00
Michalis Kokologiannakis
1302f6c501 genmc,tests: Throw when GenMC runs out of memory
GenMC can currently allocate up to 4GB per thread. If it cannot
allocated any more memory, it will return nullptr.

This commit adds a test in Miri that ensures we gracefully throw
if this ever happens.
2025-11-29 13:21:55 +01:00
Michalis Kokologiannakis
0bcadabb23 genmc/api: Use returned value for handleExecutionEnd() 2025-11-29 13:21:55 +01:00
Michalis Kokologiannakis
5e6d9fa6a5 genmc/api: Use returned value from handleFree()
GenMC's handleFree() does return an optional<Error>, so we
may as well use that value.
2025-11-29 13:21:55 +01:00
Michalis Kokologiannakis
fafd6de3ce genmc/api: Remove unnecessary comments
These comments explain the default values used internally
in (some) calls of the GenMC library, which is unnecessary.
2025-11-29 10:54:15 +01:00
Michalis Kokologiannakis
d2176c36a1 genmc/api: Don't use macros for mutex state
Use scoped constexprs instead.
2025-11-29 10:54:15 +01:00
Michalis Kokologiannakis
286fac035a genmc/api: Prefer early exits to joining if/else clauses 2025-11-29 10:54:15 +01:00
Michalis Kokologiannakis
e2c62e49c1 genmc/api: Use ERROR_ON instead of if (cond) ERROR()
This commit makes the code a bit more compact by using ERROR_ON()
whenever possible. It also renames a particularly verbose variable
used in ERROR's condition.
2025-11-29 10:54:15 +01:00
Michalis Kokologiannakis
c357b65324 genmc/build,api: Move wrappers around GenMC API to single file
GenMC has a single API that was handled in a collection of different
files. This commit collects all API wrappers to Exploration.cpp.

(The Setup.cpp file remains intact as it contains setting translation
and setup functions.)
2025-11-29 10:54:15 +01:00
Ralf Jung
b9bad1ef73
Merge pull request #4734 from rust-lang/rustup-2025-11-29
Automatic Rustup
2025-11-29 07:20:02 +00:00
The Miri Cronjob Bot
0670c5126d Merge ref '1eb0657f78' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 1eb0657f78
Filtered ref: 45e0f3526807c3086ddd9dcbd868d0b3f331d8f5
Upstream diff: 88bd39beb3...1eb0657f78

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-29 05:02:07 +00:00
The Miri Cronjob Bot
a4b65b8c01 Prepare for merging from rust-lang/rust
This updates the rust-version file to 1eb0657f78.
2025-11-29 04:54:05 +00:00
bors
1eb0657f78 Auto merge of #147404 - JamieCunliffe:inline-always, r=jackh726
Fix issue with callsite inline attribute not being applied sometimes.

If the calling function had more target features enabled than the callee than the attribute wasn't being applied as the arguments for the check had been swapped round. Also includes target features that are part of the global set as the warning was checking those but when adding the attribute they were not checked.

Add a codegen-llvm test to check that the attribute is actually applied as previously only the warning was being checked.

Tracking issue: rust-lang/rust#145574
2025-11-28 22:58:22 +00:00
bors
cc3eee7fbe Auto merge of #149419 - matthiaskrgr:rollup-v3q93fq, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#147952 (Add a timeout to the `remote-test-client` connection)
 - rust-lang/rust#149321 (Fix ICE when include_str! reads binary files)
 - rust-lang/rust#149398 (add regression test for issue rust-lang/rust#143987)
 - rust-lang/rust#149411 (Tidying up UI tests [5/N])
 - rust-lang/rust#149413 (add test for issue 143821)
 - rust-lang/rust#149415 (Remove test-float-parse from workspace list in tidy)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-28 17:26:31 +00:00
Matthias Krüger
3730b40500
Rollup merge of #149415 - bjorn3:tidy_update, r=clubby789
Remove test-float-parse from workspace list in tidy

It is now part of the main workspace.
2025-11-28 15:19:17 +01:00
Matthias Krüger
60e46fbbe3
Rollup merge of #149413 - Aditya-PS-05:test-issue-143821-nested-closure-ice, r=JonathanBrouwer
add test for issue 143821

closes rust-lang/rust#143821
2025-11-28 15:19:17 +01:00
Matthias Krüger
8d6e68b945
Rollup merge of #149411 - reddevilmidzy:t5, r=Kivooeo
Tidying up UI tests [5/N]

> [!NOTE]
> Intermediate commits are intended to help review, but will be squashed prior to merge.

part of rust-lang/rust#133895

merge directory

* `macro_backtrace` -> `macros`
* `missing_non_modrs_mod` -> `modules`
* `modules_and_files_visibility` -> `modules`
* `qualified` -> `typeck`
* `while` -> `for-loop-whlie`

r? Kivooeo
2025-11-28 15:19:16 +01:00
Matthias Krüger
3f1e4f8fee
Rollup merge of #149398 - Aditya-PS-05:test-issue-143987-align-struct-fields, r=Kivooeo
add regression test for issue #143987

closes rust-lang/rust#143987
2025-11-28 15:19:16 +01:00
Matthias Krüger
6d4e3f8596
Rollup merge of #149321 - reddevilmidzy:ice, r=petrochenkov
Fix ICE when include_str! reads binary files

ICE occurred when an invalid UTF8 file with an absolute path were included.

resolve: rust-lang/rust#149304
2025-11-28 15:19:15 +01:00
Matthias Krüger
d7a36c133b
Rollup merge of #147952 - ferrocene:pvdrz/remote-test-client-timeout, r=Enselic
Add a timeout to the `remote-test-client` connection

Currently, the `remote-test-client` doesn't have a timeout when connecting to the `remote-test-server`. This means that running tests using it can hang indefinitely which causes issues when running tests on CI, for example.

This PR now sets a default timeout of 5 minutes, meaning that if, for example, `TEST_DEVICE_ADDR=<IP:PORT> ./x test --target riscv64gc-unknown-linux-gnu tests/ui` is run and the `remote-test-server` is not reachable by the client, the client will panic after the timeout is reached.

Additionally, the `TEST_DEVICE_CONNECT_TIMEOUT` env variable can be used to set up the timeout to any value (in seconds).

This PR also wires up a test step for `remote-test-client`, which didn't previously have tool tests run in CI.

Edit: ~~blocked by rust-lang/rust#149071~~
2025-11-28 15:19:15 +01:00
Aditya-PS-05
2b4b02e613 change test location 2025-11-28 18:52:18 +05:30
reddevilmidzy
ace4aebb6d Merge while with for-loop-while 2025-11-28 21:41:03 +09:00
reddevilmidzy
cd618a9ccb Merge missing_non_modrs with modules 2025-11-28 21:40:59 +09:00
reddevilmidzy
aa97acce62 Relocate qualified/qualified-path-params to
typeck/qualified-path-params.rs

merged test removed ui/qualified directory
2025-11-28 21:40:53 +09:00
reddevilmidzy
8e74c6b137 Relocate modules_and_files_visibility/mod_file_disambig.rs to
modules/mod_file_disambig.rs

add

fix
2025-11-28 21:40:35 +09:00
reddevilmidzy
58a802e629 Relocate modules_ans_files_visibity/mod_file_correct_spans.rs to
modules/mod_file_correct_spans.rs
2025-11-28 21:40:14 +09:00
bors
9050733395 Auto merge of #148020 - bjorn3:oom_backtrace, r=Mark-Simulacrum
Show backtrace on allocation failures when possible

And if an allocation while printing the backtrace fails, don't try to print another backtrace as that will never succeed.

Split out of https://github.com/rust-lang/rust/pull/147725 to allow landing this independently of a decision whether or not to remove `-Zoom=panic`.
2025-11-28 12:27:33 +00:00
bjorn3
6bbd737415 Remove test-float-parse from workspace list in tidy
It is now part of the main workspace.
2025-11-28 11:20:28 +00:00
Aditya-PS-05
57f92698be add test for borrow checker ICE with nested generic closures 2025-11-28 16:31:28 +05:30
Ralf Jung
d659758c07
Merge pull request #4730 from RalfJung/rustup
Rustup
2025-11-28 10:10:13 +00:00
Ralf Jung
ff0910a435 clippy 2025-11-28 10:37:52 +01:00
Ralf Jung
bfa2bfac3c test that target features given in the target spec are enabled 2025-11-28 10:35:07 +01:00
Ralf Jung
956a6c064d Merge ref '88bd39beb3' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 88bd39beb3
Filtered ref: 7c1fca92d3f0e2336a4dc7665fe2bade6c7ec2eb
Upstream diff: c871d09d1c...88bd39beb3

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-28 10:33:46 +01:00
Ralf Jung
2a02a72f17 Prepare for merging from rust-lang/rust
This updates the rust-version file to 88bd39beb3.
2025-11-28 10:33:33 +01:00
bors
d645a4c9c5 Auto merge of #148871 - WaffleLapkin:never-simplifications, r=lcnr
Remove context dependant `!` fallback

... and minor cleanup.

r? lcnr
2025-11-28 09:16:14 +00:00
bors
88bd39beb3 Auto merge of #149410 - Zalathar:rollup-wke6axp, r=Zalathar
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#149087 (Stabilize `unchecked_neg` and `unchecked_shifts`)
 - rust-lang/rust#149107 (rustc_borrowck: Don't suggest changing closure param type not under user control)
 - rust-lang/rust#149323 (Use cg_llvm's target_config in miri)
 - rust-lang/rust#149380 (Run `eval_config_entry` on all branches so we always emit lints)
 - rust-lang/rust#149394 (add regression test for guard patterns liveness ICE)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-11-28 05:03:10 +00:00
Stuart Cook
28fae11eba
Rollup merge of #149394 - Aditya-PS-05:test-issue-146445-guard-patterns-liveness, r=Kivooeo
add regression test for guard patterns liveness ICE

closes rust-lang/rust#146445
2025-11-28 15:30:45 +11:00
Stuart Cook
145c81d872
Rollup merge of #149380 - JonathanBrouwer:cfg_select_lints, r=Urgau
Run `eval_config_entry` on all branches so we always emit lints

Fixes https://github.com/rust-lang/rust/issues/149090

Ideally I'd have liked to fix this issue using https://github.com/rust-lang/rust/pull/149215, and this is still the long term plan, but this is slightly more annoying to implement than I'd have liked to, and this is also a nice and easy solution to the problem.

r? `@tgross35`
2025-11-28 15:30:45 +11:00
Stuart Cook
b8b7041e6c
Rollup merge of #149323 - bjorn3:miri_llvm_target_config, r=RalfJung
Use cg_llvm's target_config in miri

Fixes https://github.com/rust-lang/rust/issues/149314

r? `@RalfJung`
2025-11-28 15:30:44 +11:00
Stuart Cook
6197b5be4c
Rollup merge of #149107 - Enselic:option-inspect-mutation, r=jieyouxu
rustc_borrowck: Don't suggest changing closure param type not under user control

This changes output of a handful of tests more than the one added in the first commit, but as far as I can tell, all removed suggestions were invalid.

Closes rust-lang/rust#128381 which is **D-invalid-suggestion** with two 👍-votes.
2025-11-28 15:30:43 +11:00
Stuart Cook
549c577c2a
Rollup merge of #149087 - nxsaken:unchecked_neg_shifts_stabilize, r=Amanieu
Stabilize `unchecked_neg` and `unchecked_shifts`

Features: `unchecked_neg`, `unchecked_shifts`
Tracking issue: rust-lang/rust#85122

r? `@Amanieu`
2025-11-28 15:30:43 +11:00
reddevilmidzy
bfc0c02043 Relocate macro_backtrace to macro and remove macro_backtrace 2025-11-28 13:12:15 +09:00
reddevilmidzy
3f943fbf84 Fix ICE when include_str! reads absolute path binary files 2025-11-28 12:43:56 +09:00
bors
10776a4071 Auto merge of #149348 - GuillaumeGomez:subtree-update_cg_gcc_2025-11-26, r=GuillaumeGomez
cg_gcc subtree sync

cc `@antoyo`
2025-11-28 01:53:22 +00:00
bors
e6edf3ae53 Auto merge of #147498 - ferrocene:pvdrz/edition-range-gating, r=jieyouxu,fmease
Gate tests with the right edition

This PR guarantees that `./x test --test-args="--edition XXXX" ui` runs correctly with the 2015, 2018 and 2021 editions.

I don't expect this PR to hold up over time but it helps to submit further updates to the `//@ edition` directives of tests where we can use the new range syntax to have a more robust testing across different editions

r? `@fmease`

---

try-job: aarch64-gnu
try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: test-various
try-job: armhf-gnu
2025-11-27 22:37:05 +00:00
Jonathan Brouwer
41900f8bea
Add regression test 2025-11-27 23:02:01 +01:00
Waffle Lapkin
37ecc8e4a6
use a new tracking issue for never type changes 2025-11-27 22:48:00 +01:00
Waffle Lapkin
62c373626e
remove dead code 2025-11-27 22:48:00 +01:00