Commit graph

2386 commits

Author SHA1 Message Date
Luv-Ray
459c6ce944 Make file descriptors into refcount references
take ownership of self and return `io::Result<()>` in `FileDescription::close`

Co-authored-by: Ralf Jung <post@ralfj.de>
2024-05-04 17:24:18 +08:00
bors
ca3defe245 Auto merge of #3532 - RalfJung:tb-protectors, r=RalfJung
Tree Borrows: first apply transition, then check protector with new 'initialized'
2024-05-02 09:17:18 +00:00
Ralf Jung
aa986f0800 Tree Borrows: first apply transition, then check protector with new 'initialized' 2024-05-02 11:09:01 +02:00
Paul Gey
a2b3211b19 no longer strip Preparing a sysroot message from test output 2024-05-01 21:53:09 +02:00
Paul Gey
4b4262691d fix usage example for --print-sysroot 2024-05-01 21:53:09 +02:00
Paul Gey
1cf951e5c6 Don’t print Preparing a sysroot when -q/--quiet is passed 2024-05-01 21:53:02 +02:00
bors
1c7e82762f Auto merge of #3523 - saethlin:localtime_r-env, r=RalfJung
Use the interpreted program's TZ variable in localtime_r

This requires a bit of wiring and a new dependency, but the tests should correctly pass now regardless of what the host's time zone is.

Fixes https://github.com/rust-lang/miri/issues/3522
2024-04-29 15:35:27 +00:00
Ralf Jung
7afef08b6d don't leak UnixEnvVars impl details into get_env_var 2024-04-29 17:33:35 +02:00
Ben Kimock
9bed19edc4 Refactor UnixEnvVars::get so that it can be reused by getenv 2024-04-28 17:45:14 -04:00
Ben Kimock
622f697f5d Use the interpreted program's TZ variable in localtime_r 2024-04-28 11:09:29 -04:00
bors
bc8ea9324c Auto merge of #3524 - RalfJung:fd-write, r=RalfJung
file descriptors: make write take &mut self
2024-04-28 08:00:44 +00:00
Ralf Jung
b5482aad01 file descriptors: make write take &mut self 2024-04-28 09:39:20 +02:00
Eduardo Sánchez Muñoz
b26153555f Do not implement x86 SIMD abs with host integers 2024-04-27 17:43:39 +02:00
Eduardo Sánchez Muñoz
b3b1b498b9 Clarify behavior of AVX2 gather when dest and offsets have different numbers of elements 2024-04-27 16:41:27 +02:00
Eduardo Sánchez Muñoz
ee47a8e6b6 Add doc comment to pack_generic 2024-04-27 16:23:44 +02:00
bors
45d93945ad Auto merge of #3520 - RalfJung:josh-check, r=RalfJung
josh rustc-pull: check that no new root commits get created

A second root was a bad sign in Miri (judging from the description in https://github.com/rust-lang/miri/pull/2583) and seems to be a [bad sign in RA](https://github.com/rust-lang/rust-analyzer/pull/17025#issuecomment-2080390014). So let's add this to the sanity checks.
2024-04-27 08:20:22 +00:00
Hamir Mahal
39f7a46d63
fix: usage of deprecated version of Node.js 2024-04-27 00:15:39 -07:00
Ralf Jung
2681edf934 josh rustc-pull: check that no new root commits get created 2024-04-27 08:57:55 +02:00
Ralf Jung
454f09d891 env: split up Windows and Unix environment variable handling 2024-04-26 22:16:16 +02:00
Ralf Jung
26af88aced add test for concurrent env var access 2024-04-26 19:47:35 +02:00
bors
d7c89cfbf8 Auto merge of #3516 - RalfJung:pathbuf, r=RalfJung
add smoke tests for basic PathBuf interactions

I wrote these while debugging [this](https://github.com/rust-lang/miri-test-libstd/actions/runs/8849912635/job/24302962983); it turns out the issue is [more complicated](https://github.com/rust-lang/rust/issues/124409) but these tests still seemed worth keeping.
2024-04-26 15:47:17 +00:00
Ralf Jung
2935cd93c2 add smoke tests for basic PathBuf interactions 2024-04-26 17:44:37 +02:00
The Miri Cronjob Bot
4be9c689f6 Merge from rustc 2024-04-26 05:08:12 +00:00
The Miri Cronjob Bot
4dcc2fac06 Preparing for merge from rustc 2024-04-26 04:58:30 +00:00
Vadim Petrochenkov
98804c1786 debuginfo: Stabilize -Z debug-macros, -Z collapse-macro-debuginfo and #[collapse_debuginfo]
`-Z debug-macros` is "stabilized" by enabling it by default and removing.

`-Z collapse-macro-debuginfo` is stabilized as `-C collapse-macro-debuginfo`.
It now supports all typical boolean values (`parse_opt_bool`) in addition to just yes/no.

Default value of `collapse_debuginfo` was changed from `false` to `external` (i.e. collapsed if external, not collapsed if local).
`#[collapse_debuginfo]` attribute without a value is no longer supported to avoid guessing the default.
2024-04-25 22:14:47 +03:00
bors
d93f9ae3ee Auto merge of #3514 - RalfJung:hyperfine, r=RalfJung
CI: run benches with hyperfine rather than bash

The hyperfine installation is cached so this should not cost a lot of CI time.

This is step 1/2 to getting rid of the BASH variable hack.
2024-04-25 09:16:32 +00:00
Ralf Jung
505e4dd7ba CI: run benches with hyperfine rather than bash 2024-04-25 11:14:22 +02:00
bors
97132949f7 Auto merge of #3501 - RalfJung:tls-many-seeds, r=RalfJung
add a test for the TLS memory leak

This is a regression test for https://github.com/rust-lang/rust/issues/123583.
2024-04-25 08:14:58 +00:00
Ralf Jung
247e82cb83 run many-seeds tests at least a few times on all tier 1 targets 2024-04-25 09:53:34 +02:00
Ralf Jung
ea9cff254f add a test for the TLS memory leak 2024-04-25 09:51:15 +02:00
Ralf Jung
f38dba69b1 weak memory outdated loads: show where the load was from 2024-04-25 09:51:15 +02:00
bors
e22a73c6d0 Auto merge of #3512 - RalfJung:miri-script-build, r=RalfJung
make miri-script a workspace root

This is needed to make miri-script build on stable (as is done by the `./miri` script) when the parent package uses unstable cargo features.
2024-04-25 07:20:16 +00:00
bors
9d7a47fe31 Auto merge of #3513 - rust-lang:rustup-2024-04-25, r=RalfJung
Automatic Rustup
2024-04-25 06:48:37 +00:00
bors
c69c79d42a Auto merge of #3505 - RalfJung:ci, r=RalfJung
CI: don't run cron-fail-notify when the job just got canceled

Doesn't seem right to prepare a PR in that case
2024-04-25 06:16:47 +00:00
The Miri Cronjob Bot
258e5043a1 fmt 2024-04-25 05:05:41 +00:00
The Miri Cronjob Bot
ff6fc75781 Merge from rustc 2024-04-25 05:04:32 +00:00
The Miri Cronjob Bot
bed7caf206 Preparing for merge from rustc 2024-04-25 04:57:07 +00:00
Matthias Krüger
ecf794bc69
Rollup merge of #124335 - ChrisDenton:stabilize-absolute, r=dtolnay
Stabilize `std::path::absolute`

FCP complete in https://github.com/rust-lang/rust/issues/92750#issuecomment-2075046985
2024-04-25 00:19:56 +02:00
Ralf Jung
8c24fe1085 make miri-script a workspace root 2024-04-24 18:05:03 +02:00
Predrag Gruevski
8b0ab42855
Upgrade to actions/checkout@v4 in ci.yml.
This is a newer version of the same action. None of the uses here were particularly special (no complex features of v3 were used) so this is a straightforward as-is upgrade.
2024-04-24 10:57:18 -04:00
Chris Denton
f56afa0477
Stabilize std::path::absolute 2024-04-24 14:35:02 +00:00
Ralf Jung
aa19679ff0 unix_sigpipe: don't inline DEFAULT, just use it from rustc 2024-04-24 14:58:12 +02:00
bors
c1073fb36e Auto merge of #3492 - eduardosm:intrinsics-x86-avx2, r=oli-obk
Implement LLVM x86 AVX2 intrinsics
2024-04-24 12:23:03 +00:00
Gary Guo
8169c4c121 Fix miri test 2024-04-24 13:12:33 +01:00
Oli Scherer
aef0f4024a Error on using yield without also using #[coroutine] on the closure
And suggest adding the `#[coroutine]` to the closure
2024-04-24 08:05:29 +00:00
bors
bd6766fdcc Auto merge of #3507 - RalfJung:let-underscore, r=RalfJung
avoid 'let _' in tests where we actually want the value to be computed
2024-04-24 08:04:33 +00:00
Ralf Jung
193b37dbaf avoid 'let _' in tests where we actually want the value to be computed 2024-04-24 10:03:11 +02:00
bors
6c34d4605e Auto merge of #3502 - RalfJung:GetUserProfileDirectoryW, r=RalfJung
windows: basic support for GetUserProfileDirectoryW

Fixes https://github.com/rust-lang/miri/issues/3499
2024-04-24 07:09:38 +00:00
Ralf Jung
ccb87f1baa avoid some unnecessary Scalar-i32-Scalar roundtrips 2024-04-24 08:49:42 +02:00
Ralf Jung
ccb43b6a95 make the obsucre truncating variant of this.write_os_str_to_wide_str a non-default function 2024-04-24 08:49:41 +02:00