The Miri Cronjob Bot
69b2bb67b1
Preparing for merge from rustc
2025-06-14 04:55:08 +00:00
Ralf Jung
f5e10748e5
Merge pull request #4383 from LorrensP-2158466/remove-leaky-syncobj
...
use RwLockRef instead of RwLockId
2025-06-11 18:15:46 +00:00
Ralf Jung
479524f44e
mutex, rwlock: move some methods around so we borrow the RefCell less often
2025-06-11 19:46:56 +02:00
LorrensP-2158466
74bd9df30e
use RwLockRef instead of RwLockId
2025-06-11 19:11:06 +02:00
Oli Scherer
e2ce96bbaa
Merge pull request #4384 from RalfJung/diag-no-repeat
...
diagnostics: do not repeat the entire message in the span label
2025-06-11 08:07:42 +00: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
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
Ralf Jung
3e980d5f64
add SmallVec test
2025-06-10 08:46:30 +02:00
Ralf Jung
fceb8d6510
sync max_fundamental_align with alloc crate
2025-06-10 08:10:16 +02: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
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
Ralf Jung
11581df1ba
native-lib: update readme (to mention folders in header)
2025-06-09 21:52:43 +02:00
Ralf Jung
a096de73ea
native_lib: skip to next .so if function was in dependency of the first
2025-06-09 21:49:50 +02:00
Trevor Gross
ab87ed150b
Rollup merge of #141993 - tgross35:use-in-tree-builtins, r=bjorn3
...
Use the in-tree `compiler-builtins` for the sysroot
Many of `std`'s dependency have a dependency on the crates.io `compiler-builtins` when used with the feature `rustc-std-workspace-core`. Use a Cargo patch to select the in-tree version instead.
`compiler-builtins` is also added as a dependency of `rustc-std-workspace-core` so these crates can remove their crates.io dependency in the future.
Zulip discussion: [#t-compiler > Using in-tree compiler-builtins](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Using.20in-tree.20compiler-builtins/with/522445336 )
Once this merges, the following PRs will need to make it to a release for the relevant crates:
- https://github.com/rust-lang/getopts/pull/119 (can merge at any time)
- https://github.com/rust-lang/hashbrown/pull/625 (can merge at any time)
- https://github.com/rust-lang/stdarch/pull/1825
- https://github.com/rust-lang/rustc-demangle/pull/80
- https://github.com/rust-lang/cfg-if/pull/84
- https://github.com/unicode-rs/unicode-width/pull/77
The above should cover all tier 1 targets with no `std` features enabled. The remaining cover the rest:
- https://github.com/alexcrichton/dlmalloc-rs/pull/50 (wasm, xous, sgx)
- https://github.com/gimli-rs/gimli/pull/769
- https://github.com/r-efi/r-efi/pull/89 (efi)
- https://github.com/r-efi/r-efi-alloc/pull/9 (efi)
- https://github.com/fortanix/rust-sgx/pull/770 (sgx)
- https://github.com/hermit-os/hermit-rs/pull/718 (hermit)
- https://github.com/bytecodealliance/wasi-rs/pull/108 (wasi)
- https://github.com/gimli-rs/addr2line/pull/345
- https://github.com/oyvindln/adler2/pull/2
- https://github.com/BurntSushi/memchr/pull/180
- https://github.com/Frommi/miniz_oxide/pull/173
- https://github.com/gimli-rs/object/pull/777
try-job: x86_64-gnu
try-job: test-various
2025-06-09 12:17:53 -05:00
Ralf Jung
ed5a655386
Merge pull request #4376 from yoctocell/tb-interior-mut-flag
...
TB: Add flag to disable the more precise interior mutability tracking
2025-06-09 15:50:19 +00:00
Xinglu Chen
4e8d5837df
Add -Zmiri-tree-borrows-no-precise-interior-mut flag
2025-06-09 17:23:49 +02:00
The Miri Cronjob Bot
4835a9da54
Merge from rustc
2025-06-09 05:04:11 +00:00
The Miri Cronjob Bot
ee00d0f051
Preparing for merge from rustc
2025-06-09 04:56:52 +00:00
bors
334ba81275
Auto merge of #142220 - workingjubilee:rollup-idgfpof, r=workingjubilee
...
Rollup of 12 pull requests
Successful merges:
- rust-lang/rust#141803 (Remove rustc's notion of "preferred" alignment AKA `__alignof`)
- rust-lang/rust#142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
- rust-lang/rust#142089 (Replace all uses of sysroot_candidates with get_or_default_sysroot)
- rust-lang/rust#142108 (compiler: Add track_caller to AbiMapping::unwrap)
- rust-lang/rust#142132 (`tests/ui`: A New Order [6/N])
- rust-lang/rust#142162 (UnsafePinned: update get() docs and signature to allow shared mutation)
- rust-lang/rust#142171 (`tests/ui`: A New Order [7/N])
- rust-lang/rust#142179 (store `target.min_global_align` as an `Align`)
- rust-lang/rust#142183 (Added test for 30904)
- rust-lang/rust#142194 (Remove all unused feature gates from the compiler)
- rust-lang/rust#142199 (Do not free disk space in the `mingw-check-tidy` job)
- rust-lang/rust#142210 (Run `mingw-check-tidy` on auto builds)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-09 02:20:44 +00:00
Jubilee
840baa46ff
Rollup merge of #142053 - heiher:loong32-none, r=wesleywiser
...
Add new Tier-3 targets: `loongarch32-unknown-none*`
MCP: https://github.com/rust-lang/compiler-team/issues/865
NOTE: LoongArch32 ELF object support is available starting with object v0.37.0.
2025-06-08 17:17:53 -07:00
bors
c31cccb7b5
Auto merge of #142008 - RalfJung:const-eval-error-here, r=oli-obk
...
const-eval error: always say in which item the error occurred
I don't see why "is this generic" should make a difference. It may be reasonable to key this on whether the error occurs in a `const fn` that was invoked by a const (making it non-obvious which constant it is) vs inside the body of the const.
r? `@oli-obk`
2025-06-08 23:18:34 +00:00
bors
6ccd447603
Auto merge of #141700 - RalfJung:atomic-intrinsics-part2, r=bjorn3
...
Atomic intrinsics : use const generic ordering, part 2
This completes what got started in https://github.com/rust-lang/rust/pull/141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.
Blocked on:
- https://github.com/rust-lang/rust/pull/141507
- https://github.com/rust-lang/rust/pull/141687
- https://github.com/rust-lang/stdarch/pull/1811
- https://github.com/rust-lang/rust/pull/141964
r? `@bjorn3`
2025-06-08 20:17:28 +00:00
The Miri Cronjob Bot
1894b49ebb
Merge from rustc
2025-06-08 05:03:35 +00:00
The Miri Cronjob Bot
f413f15767
Preparing for merge from rustc
2025-06-08 04:56:16 +00:00
Trevor Gross
cc3e57147e
Use the in-tree compiler-builtins
...
Many of `std`'s dependency have a dependency on the crates.io
`compiler-builtins` when used with the feature
`rustc-std-workspace-core`. Use a Cargo patch to select the in-tree
version instead.
`compiler-builtins` is also added as a dependency of
`rustc-std-workspace-core` so these crates can remove their crates.io
dependency in the future.
2025-06-08 02:36:58 +00:00
Guillaume Gomez
7b0eeab4c7
Rollup merge of #142065 - paolobarbolini:stabilize-const_eq_ignore_ascii_case, r=Mark-Simulacrum
...
Stabilize `const_eq_ignore_ascii_case`
Tracking issue: rust-lang/rust#131719
Closes rust-lang/rust#131719
FCP Completed: https://github.com/rust-lang/rust/issues/131719#issuecomment-2941829167
2025-06-07 22:22:57 +02:00
Ralf Jung
8808c9d34b
intrinsics: use const generic to set atomic ordering
2025-06-07 21:45:58 +02:00
bors
5e0bdaa9dd
Auto merge of #141964 - sayantn:update-stdarch, r=Amanieu
...
Update stdarch submodule
Updates the stdarch submodule.
## Merged PRs
- rust-lang/stdarch#1797
- rust-lang/stdarch#1758
- rust-lang/stdarch#1798
- rust-lang/stdarch#1811
- rust-lang/stdarch#1810
- rust-lang/stdarch#1807
- rust-lang/stdarch#1806
- rust-lang/stdarch#1812
- rust-lang/stdarch#1795
- rust-lang/stdarch#1796
- rust-lang/stdarch#1813
- rust-lang/stdarch#1816
- rust-lang/stdarch#1818
- rust-lang/stdarch#1820
- rust-lang/stdarch#1819
r? `@Amanieu`
`@rustbot` label T-libs-api
Closes rust-lang/rust#111137
2025-06-07 12:25:59 +00:00
Ralf Jung
3281f02593
bless non-Linux tests
2025-06-07 14:18:18 +02:00
Ralf Jung
9439f33aa6
make better use of label for data-race and some other errors
2025-06-07 14:18:16 +02:00
Ralf Jung
bb53df1db6
diagnostics: do not repeat the entire message in the span label
2025-06-07 14:18:12 +02:00
Ralf Jung
17946c22b1
const-eval error: always say in which item the error occurred
...
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00
Ralf Jung
b620d0791d
test_dup: ensure the FDs remain in sync even after dup'ing
2025-06-07 08:27:34 +02:00
Jacob Pratt
6b4abb9180
Rollup merge of #142110 - psumbera:solaris-ci-build4, r=marcoieni
...
Add solaris targets to build-manifest
this is follow up for: https://github.com/rust-lang/rust/pull/138699
2025-06-07 07:05:48 +02:00
The Miri Cronjob Bot
4007b1937b
fmt
2025-06-07 05:02:30 +00:00
The Miri Cronjob Bot
4c4904b54a
Merge from rustc
2025-06-07 05:01:19 +00:00
The Miri Cronjob Bot
cf5aea57cc
Preparing for merge from rustc
2025-06-07 04:53:58 +00:00
Guillaume Gomez
3a6f1b0375
Rollup merge of #142103 - scottmcm:fieldidx-in-interp, r=oli-obk
...
Update `InterpCx::project_field` to take `FieldIdx`
As suggested by Ralf in https://github.com/rust-lang/rust/pull/142005#discussion_r2125839015
2025-06-06 23:53:18 +02:00
Guillaume Gomez
93ca0af08c
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
...
Reduce `ast::ptr::P` to a typedef of `Box`
As per the MCP at https://github.com/rust-lang/compiler-team/issues/878 .
r? `@fee1-dead`
2025-06-06 23:53:16 +02:00
Petr Sumbera
523cf1291b
add solaris targets to build-manifest
2025-06-06 12:07:24 +02:00
Ralf Jung
f0d0882fe1
Merge pull request #4378 from RalfJung/flock
...
use File::lock to implement flock, and add a test for File::lock
2025-06-06 09:44:43 +00:00
Ralf Jung
b1652dc7d5
use File::lock to implement flock, and add a test for File::lock
2025-06-06 11:12:12 +02:00
The Miri Cronjob Bot
c44bc10b67
Merge from rustc
2025-06-06 05:02:49 +00:00
The Miri Cronjob Bot
8c410ca291
Preparing for merge from rustc
2025-06-06 04:55:10 +00:00
Scott McMurray
8bce2255e8
Update InterpCx::project_field to take FieldIdx
...
As suggested by Ralf in 142005.
2025-06-05 19:15:56 -07:00
WANG Rui
38d69c3f57
Add new Tier-3 targets: loongarch32-unknown-none*
...
MCP: https://github.com/rust-lang/compiler-team/issues/865
2025-06-06 08:19:38 +08:00