]>
git.lizzy.rs Git - rust.git/log
bors [Tue, 7 Apr 2020 14:42:34 +0000 (14:42 +0000)]
Auto merge of #1310 - RalfJung:float-assoc, r=RalfJung
prefer float assoc consts over std module
Ralf Jung [Tue, 7 Apr 2020 14:13:19 +0000 (16:13 +0200)]
prefer float assoc consts over std module
bors [Mon, 6 Apr 2020 13:55:53 +0000 (13:55 +0000)]
Auto merge of #1157 - divergentdave:shim-pthread-try-lock, r=RalfJung
Add shims for RwLock::try_read/RwLock::try_write
This implements proper locking so that we can check for reentrancy and implement the `try_*` methods.
Fixes https://github.com/rust-lang/miri/issues/781
David Cook [Mon, 6 Apr 2020 12:23:58 +0000 (07:23 -0500)]
Clean up conditional compilation
David Cook [Mon, 6 Apr 2020 01:55:39 +0000 (20:55 -0500)]
Fix spelling typo
David Cook [Sun, 5 Apr 2020 21:03:44 +0000 (16:03 -0500)]
Eagerly compute i32 and u32 layouts
David Cook [Sun, 5 Apr 2020 19:55:57 +0000 (14:55 -0500)]
Add tests, improve test coverage
David Cook [Sun, 5 Apr 2020 18:53:03 +0000 (13:53 -0500)]
Changes to error handling
David Cook [Sun, 5 Apr 2020 18:25:49 +0000 (13:25 -0500)]
Add tests
David Cook [Sun, 5 Apr 2020 17:44:23 +0000 (12:44 -0500)]
Use Deadlock machine stop uniformly
David Cook [Sun, 5 Apr 2020 17:32:09 +0000 (12:32 -0500)]
Remove null checks, fall through to UB upon deref
bors [Sun, 5 Apr 2020 17:14:49 +0000 (17:14 +0000)]
Auto merge of #1307 - RalfJung:vec-extend, r=RalfJung
also test push_str ptr stability (the original report)
Ralf Jung [Sun, 5 Apr 2020 17:13:36 +0000 (19:13 +0200)]
also test push_str ptr stability (the original report)
David Cook [Sun, 5 Apr 2020 17:09:31 +0000 (12:09 -0500)]
Update comments, rearrange code
bors [Sun, 5 Apr 2020 16:28:41 +0000 (16:28 +0000)]
Auto merge of #1253 - RalfJung:vec-extend, r=RalfJung
test Vec::extend
Currently fails, until https://github.com/rust-lang/rust/issues/70301 gets fixed.
Ralf Jung [Sun, 5 Apr 2020 16:28:05 +0000 (18:28 +0200)]
rustup
Ralf Jung [Mon, 30 Mar 2020 11:39:04 +0000 (13:39 +0200)]
for consistency also rename floats.rs
Ralf Jung [Mon, 30 Mar 2020 11:27:59 +0000 (13:27 +0200)]
use mutable reference
Ralf Jung [Mon, 30 Mar 2020 08:41:44 +0000 (10:41 +0200)]
test some more vec ptr invalidation
Ralf Jung [Mon, 23 Mar 2020 12:02:02 +0000 (13:02 +0100)]
test Vec::extend
bors [Sun, 5 Apr 2020 15:47:28 +0000 (15:47 +0000)]
Auto merge of #1305 - ssomers:map_first_last_vs_miri, r=RalfJung
Replace last_entry with last_key_value
Wondering why `last_entry` was introduced (in #1156) while the alternative is shorter and seems clearer to me.
Also, as the perpetrator of map_first_last, I now think that `first_entry`/`last_entry` are silly methods because they're supposed to be constant time (as opposed to `entry`), so there's no money to be made by doing multiple things with the entry.
David Cook [Sun, 29 Mar 2020 06:38:34 +0000 (01:38 -0500)]
Store layouts of i32 and u32 inside Evaluator
David Cook [Sat, 28 Mar 2020 16:14:50 +0000 (11:14 -0500)]
Set explicit return value size for windows shim
David Cook [Sat, 28 Mar 2020 15:58:36 +0000 (10:58 -0500)]
Set some explicit return value sizes
David Cook [Sat, 28 Mar 2020 15:16:08 +0000 (10:16 -0500)]
Implement TryEnterCriticalSection
David Cook [Sat, 28 Mar 2020 14:35:51 +0000 (09:35 -0500)]
Restrict mutex static initializer test to Linux
On macOS, libc does not have a static initializer for recursive mutexes
David Cook [Sat, 28 Mar 2020 14:25:02 +0000 (09:25 -0500)]
Rearrange functions
David Cook [Sat, 28 Mar 2020 01:40:54 +0000 (20:40 -0500)]
Add TerminationInfo::Deadlock, use in mutex shim
David Cook [Sat, 28 Mar 2020 01:26:21 +0000 (20:26 -0500)]
Add and rearrange mutex tests
David Cook [Sat, 28 Mar 2020 01:06:53 +0000 (20:06 -0500)]
Handle variation in layout of pthread_mutex_t
David Cook [Fri, 27 Mar 2020 02:23:10 +0000 (21:23 -0500)]
Address review comments
David Cook [Sun, 22 Mar 2020 21:16:02 +0000 (16:16 -0500)]
Use checked addition/subtraction on lock counts
David Cook [Sun, 22 Mar 2020 20:18:02 +0000 (15:18 -0500)]
Refactor sync shims with setters and getters
David Cook [Tue, 17 Mar 2020 13:19:57 +0000 (08:19 -0500)]
Add comments explaining asserts
David Cook [Sun, 15 Mar 2020 20:10:08 +0000 (15:10 -0500)]
Fix misleading function names
David Cook [Sat, 22 Feb 2020 01:10:20 +0000 (19:10 -0600)]
Add test of recursive mutex using libc FFI
David Cook [Sat, 22 Feb 2020 01:05:24 +0000 (19:05 -0600)]
Style fixes
David Cook [Fri, 21 Feb 2020 04:19:51 +0000 (22:19 -0600)]
Add test that exercises ReentrantMutex
David Cook [Tue, 18 Feb 2020 04:52:44 +0000 (22:52 -0600)]
Revise mutex/rwlock memory layout for macOS compat
David Cook [Tue, 18 Feb 2020 03:30:24 +0000 (21:30 -0600)]
Implement mutex and rwlock functions
David Cook [Wed, 29 Jan 2020 03:07:09 +0000 (21:07 -0600)]
Clean up test case
David Cook [Tue, 28 Jan 2020 03:49:06 +0000 (21:49 -0600)]
Add failing tests for mutex and rwlock
David Cook [Sun, 26 Jan 2020 20:25:09 +0000 (14:25 -0600)]
Add shims for RwLock::try_read/RwLock::try_write
Stein Somers [Sun, 5 Apr 2020 13:21:15 +0000 (15:21 +0200)]
Replace last_entry with last_key_value
bors [Sun, 5 Apr 2020 06:35:55 +0000 (06:35 +0000)]
Auto merge of #1303 - RalfJung:readme, r=RalfJung
tweak README
Cc @Firstyear
I realized the README has an example of unsupported code, so I changed the error to match that example.
Ralf Jung [Sat, 4 Apr 2020 17:35:46 +0000 (19:35 +0200)]
tweak README
bors [Sat, 4 Apr 2020 16:27:16 +0000 (16:27 +0000)]
Auto merge of #1293 - Firstyear:1289-miri-readme, r=RalfJung
Update readme to make supported code clearer
Fixes https://github.com/rust-lang/miri/issues/1289
This makes it clearer in the readme how miri will warn of supported or unsupported code in a program under test/run.
Thanks!
bors [Sat, 4 Apr 2020 14:46:40 +0000 (14:46 +0000)]
Auto merge of #1300 - RalfJung:rust-src, r=RalfJung
Rust bootstrap sysroot now has src in the same place as rust-src
So we can remove a special hack. I checked this locally to confirm it works.
Cc https://github.com/rust-lang/rust/pull/70642 @eddyb
Ralf Jung [Sat, 4 Apr 2020 10:07:22 +0000 (12:07 +0200)]
Rust bootstrap sysroot now has src in the same place as rust-src, so remove special hack
bors [Fri, 3 Apr 2020 06:36:15 +0000 (06:36 +0000)]
Auto merge of #1294 - JOE1994:windows_instant, r=RalfJung
Add support for 'std::time::Instant' in Windows
Add support for creating `std::time::Instant` in Windows
Includes shims for `QueryPerformanceCounter` & `QueryPerformanceFrequency` in Windows, which are both called in Windows when `std::time::Instant` is created.
Windows docs page ["Acquiring high-resolution time stamps"](https://docs.microsoft.com/en-us/windows/win32/sysinfo/acquiring-high-resolution-time-stamps) was helpful in learning how `QueryPerformanceCounter` & `QueryPerformanceFrequency` work.
closes #1291
William Brown [Thu, 2 Apr 2020 23:07:57 +0000 (09:07 +1000)]
Apply feedback
bors [Thu, 2 Apr 2020 22:07:15 +0000 (22:07 +0000)]
Auto merge of #1299 - RalfJung:rustup, r=RalfJung
rustup for import changes
Ralf Jung [Thu, 2 Apr 2020 22:05:35 +0000 (00:05 +0200)]
rustup for import changes
JOE1994 [Thu, 2 Apr 2020 20:15:23 +0000 (16:15 -0400)]
change cfg gate to enable testing Instant subtraction in Windows
Youngsuk Kim [Thu, 2 Apr 2020 20:04:50 +0000 (16:04 -0400)]
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
Youngsuk Kim [Thu, 2 Apr 2020 20:04:10 +0000 (16:04 -0400)]
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
Youngsuk Kim [Thu, 2 Apr 2020 20:03:56 +0000 (16:03 -0400)]
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
bors [Thu, 2 Apr 2020 14:13:08 +0000 (14:13 +0000)]
Auto merge of #1297 - RalfJung:win-ticks, r=RalfJung
correct factual mistake in Windows message
Also use `+` instead of `checked_add().unwrap()` (which is equivalent).
Cc @JOE1994
Ralf Jung [Thu, 2 Apr 2020 13:14:53 +0000 (15:14 +0200)]
correct factual mistake in Windows message, and use "+" sugar
bors [Thu, 2 Apr 2020 11:34:49 +0000 (11:34 +0000)]
Auto merge of #1296 - RalfJung:rustup, r=RalfJung
rustup for AllocRef changes
Cc https://github.com/rust-lang/rust/pull/70362
Ralf Jung [Thu, 2 Apr 2020 11:33:59 +0000 (13:33 +0200)]
port compile-fail allocator tests to stable API
Ralf Jung [Thu, 2 Apr 2020 09:45:17 +0000 (11:45 +0200)]
rustup for AllocRef changes
bors [Thu, 2 Apr 2020 07:54:50 +0000 (07:54 +0000)]
Auto merge of #1295 - RalfJung:ci-no-incremental, r=RalfJung
set CARGO_INCREMENTAL=0 on CI
it's just a waste of time there
Ralf Jung [Thu, 2 Apr 2020 07:49:48 +0000 (09:49 +0200)]
set CARGO_INCREMENTAL=0 on CI, it's just a waste of time there
bors [Thu, 2 Apr 2020 07:32:44 +0000 (07:32 +0000)]
Auto merge of #1283 - RalfJung:backtrace, r=RalfJung
Make backtrace function names and spans match up
This is the Miri side of https://github.com/rust-lang/rust/pull/70590.
Fixes https://github.com/rust-lang/miri/issues/521
Ralf Jung [Thu, 2 Apr 2020 07:19:56 +0000 (09:19 +0200)]
fix for FieldPlacement rename
Ralf Jung [Thu, 2 Apr 2020 07:14:23 +0000 (09:14 +0200)]
rustup
Ralf Jung [Mon, 30 Mar 2020 20:54:49 +0000 (22:54 +0200)]
adjust for span not being passed around any more
Ralf Jung [Mon, 30 Mar 2020 18:15:02 +0000 (20:15 +0200)]
adjust stacktrace printing to rustc changes
JOE1994 [Thu, 2 Apr 2020 01:26:47 +0000 (21:26 -0400)]
fix incorrect error message in shim 'QueryPerformanceCounter'
JOE1994 [Thu, 2 Apr 2020 00:35:56 +0000 (20:35 -0400)]
Add support for 'std::time::Instant' in Windows
William Brown [Wed, 1 Apr 2020 23:50:21 +0000 (09:50 +1000)]
Update readme to make supported codo clearer
bors [Wed, 1 Apr 2020 18:34:59 +0000 (18:34 +0000)]
Auto merge of #1292 - RalfJung:time, r=RalfJung
sanity check time values a bit more
Ralf Jung [Wed, 1 Apr 2020 18:12:51 +0000 (20:12 +0200)]
sanity check time values a bit more
bors [Wed, 1 Apr 2020 17:59:33 +0000 (17:59 +0000)]
Auto merge of #1290 - RalfJung:rustup, r=RalfJung
Rustup
Also remove ICEing `breakpoint` intrinsic shim.
Ralf Jung [Wed, 1 Apr 2020 17:40:10 +0000 (19:40 +0200)]
rustup
bors [Wed, 1 Apr 2020 17:36:04 +0000 (17:36 +0000)]
Auto merge of #1286 - JOE1994:windows_time, r=RalfJung
Implement 'GetSystemTimeAsFileTime' shim for Windows
Implement `GetSystemTimeAsFileTime` shim for Windows.
Closes #997
Ralf Jung [Wed, 1 Apr 2020 17:12:22 +0000 (19:12 +0200)]
remove ICEin intrinsic
JOE1994 [Tue, 31 Mar 2020 15:26:32 +0000 (11:26 -0400)]
Implement 'GetSystemTimeAsFileTime' shim for Windows
bors [Tue, 31 Mar 2020 15:53:44 +0000 (15:53 +0000)]
Auto merge of #1287 - RalfJung:time-sub, r=RalfJung
test subtracting SystemTime and Instant
Ralf Jung [Tue, 31 Mar 2020 15:53:27 +0000 (17:53 +0200)]
add TODO
Ralf Jung [Tue, 31 Mar 2020 15:50:10 +0000 (17:50 +0200)]
test subtracting SystemTime and Instant
bors [Mon, 30 Mar 2020 20:14:50 +0000 (20:14 +0000)]
Auto merge of #1282 - RalfJung:rustup, r=RalfJung
rustup; fix Windows env var memory type
Ralf Jung [Mon, 30 Mar 2020 20:13:53 +0000 (22:13 +0200)]
rustup; fix Windows env var memory type
bors [Mon, 30 Mar 2020 17:56:33 +0000 (17:56 +0000)]
Auto merge of #1270 - RalfJung:incremental, r=RalfJung
miri build script: use incremental builds
I somehow thought that was already the default, but seems like it is not?
bors [Mon, 30 Mar 2020 15:49:45 +0000 (15:49 +0000)]
Auto merge of #1279 - divergentdave:open_O_EXCL, r=RalfJung
Add support for OpenOptions::create_new()/O_EXCL
This PR extends the POSIX shim for `open` to support the `O_EXCL` flag, when it is used alongside `O_CREAT`, and exercises it by testing `OpenOptions::create_new`.
bors [Mon, 30 Mar 2020 09:09:20 +0000 (09:09 +0000)]
Auto merge of #1281 - RalfJung:rustup, r=RalfJung
adjust for librustc rename; reduce 'extern crate' to rustc crates
Ralf Jung [Mon, 30 Mar 2020 09:07:32 +0000 (11:07 +0200)]
adjust for librustc rename; reduce 'extern crate' to rustc crates
bors [Mon, 30 Mar 2020 08:24:40 +0000 (08:24 +0000)]
Auto merge of #1280 - RalfJung:rustup, r=RalfJung
rustup; fix for TyLayout rename
Ralf Jung [Mon, 30 Mar 2020 08:23:16 +0000 (10:23 +0200)]
test const-generic Vec::from(array)
Ralf Jung [Mon, 30 Mar 2020 08:23:04 +0000 (10:23 +0200)]
rustup; fix for TyLayout rename
bors [Sun, 29 Mar 2020 22:43:36 +0000 (22:43 +0000)]
Auto merge of #1278 - JOE1994:cow, r=RalfJung
make 'fn convert_path_separator' to take 'Cow<>' as argument
Fixed `fn convert_path_separator()` to take `Cow<>` as argument,
in order to prevent unnecessary allocation when target & host path separators are equal.
David Cook [Sun, 29 Mar 2020 21:03:05 +0000 (16:03 -0500)]
Add support for OpenOptions::create_new()/O_EXCL
JOE1994 [Sun, 29 Mar 2020 20:01:07 +0000 (16:01 -0400)]
fix fn read_path_from_wide_str
JOE1994 [Sun, 29 Mar 2020 18:19:59 +0000 (14:19 -0400)]
make 'fn convert_path_separator' to take Cow<> (to remove unnecessary allocation)
bors [Sun, 29 Mar 2020 17:19:57 +0000 (17:19 +0000)]
Auto merge of #1268 - JOE1994:dir, r=RalfJung
Windows shims for GetCurrentDirectoryW/SetCurrentDirectoryW
Implemented shims for Windows
* [GetCurrentDirectoryW](https://github.com/rust-lang/rust/blob/
75208942f6144daac669e8e382029fc33bdce841 /src/libstd/sys/windows/os.rs#L242) (`getcwd` for Windows)
* [SetCurrentDirectoryW](https://github.com/rust-lang/rust/blob/
75208942f6144daac669e8e382029fc33bdce841 /src/libstd/sys/windows/os.rs#L250) (`chdir` for Windows)
Currently passes test :
`./miri run tests/run-pass/current_dir.rs -Zmiri-disable-isolation`
JOE1994 [Sun, 29 Mar 2020 17:13:42 +0000 (13:13 -0400)]
Move definition of 'fn windows_check_buffer_size' to top of 'src/shims/env.rs'
JOE1994 [Sun, 29 Mar 2020 17:10:23 +0000 (13:10 -0400)]
small refactorings to 'src/shims/os_str.rs' & 'src/shims/env.rs'
JOE1994 [Sun, 29 Mar 2020 15:15:53 +0000 (11:15 -0400)]
fix fn GetCurrentDirectoryW + clarify return types of Windows shims
JOE1994 [Sun, 29 Mar 2020 14:21:02 +0000 (10:21 -0400)]
fix 'magic boolean' to enum