]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAuto merge of #1277 - RalfJung:rustup, r=RalfJung
bors [Sun, 29 Mar 2020 08:02:10 +0000 (08:02 +0000)]
Auto merge of #1277 - RalfJung:rustup, r=RalfJung

rustup

Fix for some renames

4 years agorustup
Ralf Jung [Sun, 29 Mar 2020 08:01:31 +0000 (10:01 +0200)]
rustup

4 years agoAuto merge of #1276 - RalfJung:scalar-precise-sizes, r=RalfJung
bors [Sat, 28 Mar 2020 18:16:13 +0000 (18:16 +0000)]
Auto merge of #1276 - RalfJung:scalar-precise-sizes, r=RalfJung

Construct Scalar with precise sizes

4 years agoprecise getrandom return type and align_offset arithmetic
Ralf Jung [Sat, 28 Mar 2020 16:47:00 +0000 (17:47 +0100)]
precise getrandom return type and align_offset arithmetic

4 years agouse ptr_null where appropriate
Ralf Jung [Sat, 28 Mar 2020 16:38:38 +0000 (17:38 +0100)]
use ptr_null where appropriate

4 years agoavoid Scalar::from_(u)int in favor of giving the size explicitly
Ralf Jung [Sat, 28 Mar 2020 16:35:40 +0000 (17:35 +0100)]
avoid Scalar::from_(u)int in favor of giving the size explicitly

4 years agoAuto merge of #1275 - JOE1994:move_string_helpers, r=RalfJung
bors [Sat, 28 Mar 2020 15:32:16 +0000 (15:32 +0000)]
Auto merge of #1275 - JOE1994:move_string_helpers, r=RalfJung

move OsStr helpers to a separate file

Moved OsStr read/write functions from `src/helpers.rs` to `src/shims/os_str.rs`, in order to keep `src/helpers.rs` from bloating too much.

4 years agovisually separate conditional imports in 'os_str.rs'
JOE1994 [Sat, 28 Mar 2020 15:20:16 +0000 (11:20 -0400)]
visually separate conditional imports in 'os_str.rs'

4 years agoAuto merge of #1274 - RalfJung:float-cast, r=RalfJung
bors [Sat, 28 Mar 2020 14:47:42 +0000 (14:47 +0000)]
Auto merge of #1274 - RalfJung:float-cast, r=RalfJung

fix float test comments and test a few more int->float casts

4 years agofix float test comments and test a few more int->float casts
Ralf Jung [Sat, 28 Mar 2020 14:45:45 +0000 (15:45 +0100)]
fix float test comments and test a few more int->float casts

4 years agomove OsStr helpers to a separate file
JOE1994 [Sat, 28 Mar 2020 14:43:47 +0000 (10:43 -0400)]
move OsStr helpers to a separate file

4 years agoAuto merge of #1265 - RalfJung:float-cast, r=RalfJung
bors [Sat, 28 Mar 2020 14:19:29 +0000 (14:19 +0000)]
Auto merge of #1265 - RalfJung:float-cast, r=RalfJung

test floating point casting better

4 years agoAuto merge of #1273 - RalfJung:environ-cleanup, r=RalfJung
bors [Sat, 28 Mar 2020 13:33:57 +0000 (13:33 +0000)]
Auto merge of #1273 - RalfJung:environ-cleanup, r=RalfJung

we don't deallocate the environ global, so leave it in the machine

Follow-up to https://github.com/rust-lang/miri/pull/1271. I forgot to adjust this when my plans changed a bit.

4 years agowe don't deallocate the environ global, so leave it in the machine
Ralf Jung [Sat, 28 Mar 2020 13:32:50 +0000 (14:32 +0100)]
we don't deallocate the environ global, so leave it in the machine

4 years agoAuto merge of #1263 - RalfJung:shims-limit, r=RalfJung
bors [Sat, 28 Mar 2020 10:35:11 +0000 (10:35 +0000)]
Auto merge of #1263 - RalfJung:shims-limit, r=RalfJung

Limit shims to libstd where possible

Also organize them better by category.
Fixes https://github.com/rust-lang/miri/issues/1181 (by making mmap not callable from user code)

4 years agoposix_fadvise is Linux-only; also validate arguments a bit
Ralf Jung [Sat, 28 Mar 2020 10:33:56 +0000 (11:33 +0100)]
posix_fadvise is Linux-only; also validate arguments a bit

4 years agoorganize shims and make some only available to libstd as they are incomplete
Ralf Jung [Thu, 26 Mar 2020 10:41:31 +0000 (11:41 +0100)]
organize shims and make some only available to libstd as they are incomplete

4 years agoAuto merge of #1271 - RalfJung:env-clean, r=RalfJung
bors [Sat, 28 Mar 2020 10:09:11 +0000 (10:09 +0000)]
Auto merge of #1271 - RalfJung:env-clean, r=RalfJung

env shim: make sure we clean up all the memory we allocate

`Machine` memory is not leak-checked, so if we forgot to deallocate part of the env shim memory, we wouldn't even notice. Thus add a dedicated memory kind that is leak-checked.

4 years agoenv shim: make sure we clean up all the memory we allocate
Ralf Jung [Sat, 28 Mar 2020 10:06:56 +0000 (11:06 +0100)]
env shim: make sure we clean up all the memory we allocate

4 years agoAuto merge of #1269 - RalfJung:windows-dtor, r=RalfJung
bors [Sat, 28 Mar 2020 09:41:25 +0000 (09:41 +0000)]
Auto merge of #1269 - RalfJung:windows-dtor, r=RalfJung

run Windows TLS dtor function

Mostly fixes https://github.com/rust-lang/miri/issues/442

4 years agorun Windows TLS dtor function
Ralf Jung [Sat, 28 Mar 2020 09:07:23 +0000 (10:07 +0100)]
run Windows TLS dtor function

4 years agocleanup tcx usage and a few comments
Ralf Jung [Sat, 28 Mar 2020 08:50:24 +0000 (09:50 +0100)]
cleanup tcx usage and a few comments

4 years agoavoid promotion so this can be compared with rustc
Ralf Jung [Sat, 28 Mar 2020 08:20:07 +0000 (09:20 +0100)]
avoid promotion so this can be compared with rustc

4 years agoalso do some float-to-float cast testing
Ralf Jung [Sat, 28 Mar 2020 08:10:34 +0000 (09:10 +0100)]
also do some float-to-float cast testing

4 years agoAuto merge of #1267 - RalfJung:macos-dtors, r=RalfJung
bors [Sat, 28 Mar 2020 07:55:42 +0000 (07:55 +0000)]
Auto merge of #1267 - RalfJung:macos-dtors, r=RalfJung

implement TLS cleanup for macOS

Now that I can run macOS interpretation locally, this was not that hard to fix. ;)
Fixes https://github.com/rust-lang/miri/issues/443

4 years agoAuto merge of #1225 - JOE1994:rw_widestr, r=RalfJung
bors [Fri, 27 Mar 2020 19:38:41 +0000 (19:38 +0000)]
Auto merge of #1225 - JOE1994:rw_widestr, r=RalfJung

Add shims for env var emulation in Windows

This PR attempts to implement the final step of the instructions laid out in https://github.com/rust-lang/miri/issues/707#issuecomment-561564057 , and is yet a work in progress.

### STATUS
- [x] Add general **_target_** methods for **read_str/alloc_str** that dispatch to either **c_str** or **wide_str** variants
(**helpers.rs**)
- [x] Implement shims `fn getenvironmentvariablew`/`fn setenvironmentvariablew`
(`std::env::var()`, `std::env::set_var()`)
- [x] Implement shim `GetEnvironmentStringsW` (`std::env::vars()`)
- [x] Implement shim `FreeEnvironmentStringsW`

### ISSUES (updated on 03/21/2020)
- MIRI errors while running `std::env::remove_var()` in Windows.
    MIRI complaining about raw pointer usage in
Rust standard library [*src/libstd/sys/windows/os.rs*](https://github.com/rust-lang/miri/pull/1225#issuecomment-602100146).

### TODO (probably on a separate PR)
  - Move string helpers into a new file to avoid bloating **src/helpers.rs** too much. (**shims/os_str.rs**)

4 years agoadjust MemoryKind comment
Ralf Jung [Fri, 27 Mar 2020 19:36:18 +0000 (20:36 +0100)]
adjust MemoryKind comment

4 years agoenable leak tests on macOS
Ralf Jung [Fri, 27 Mar 2020 18:39:35 +0000 (19:39 +0100)]
enable leak tests on macOS

4 years agoimplement TLS cleanup for macOS
Ralf Jung [Fri, 27 Mar 2020 18:39:00 +0000 (19:39 +0100)]
implement TLS cleanup for macOS

4 years agoremove or update 'ignore-windows' annotations in some tests
JOE1994 [Fri, 27 Mar 2020 18:18:19 +0000 (14:18 -0400)]
remove or update 'ignore-windows' annotations in some tests

4 years agoModify reference to issue 1013
Youngsuk Kim [Fri, 27 Mar 2020 14:15:35 +0000 (10:15 -0400)]
Modify reference to issue 1013

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoadd reference to issue#1013
JOE1994 [Fri, 27 Mar 2020 13:59:42 +0000 (09:59 -0400)]
add reference to issue#1013

4 years agoadjust to change of 'fn write_os_str_to_wide_str'
JOE1994 [Fri, 27 Mar 2020 13:18:13 +0000 (09:18 -0400)]
adjust to change of 'fn write_os_str_to_wide_str'

4 years agofollow-up2 to review (few issues not resolved yet)
JOE1994 [Wed, 25 Mar 2020 14:38:27 +0000 (10:38 -0400)]
follow-up2 to review (few issues not resolved yet)

4 years agofollow-up to reviews
JOE1994 [Wed, 25 Mar 2020 04:52:53 +0000 (00:52 -0400)]
follow-up to reviews

4 years agoexclude 'TERM' env_var to avoid terminfo trying to open the termcap file
JOE1994 [Tue, 24 Mar 2020 20:00:11 +0000 (16:00 -0400)]
exclude 'TERM' env_var to avoid terminfo trying to open the termcap file

4 years agoWindows shims for env var emulation
JOE1994 [Fri, 13 Mar 2020 16:45:02 +0000 (12:45 -0400)]
Windows shims for env var emulation

Shims for GetEnvironmentVariableW / SetEnvironmentVariableW /
GetEnvironmentStringsW.
Passes test 'tests/run-pass/env.rs'

4 years agoAuto merge of #1266 - JOE1994:write_os_str_to_wide_str, r=RalfJung
bors [Fri, 27 Mar 2020 11:35:25 +0000 (11:35 +0000)]
Auto merge of #1266 - JOE1994:write_os_str_to_wide_str, r=RalfJung

Change helper fn 'write_os_str_to_wide_str'

Helper fn `write_os_str_to_wide_str` now works on `Scalar<Tag>`, just like other **read/write os_str** helper functions.

The 2nd commit contains some changes made to `src/shims/env.rs` in PR #1225, in order to keep it from bloating too much.

4 years agoenv: more precise error
Ralf Jung [Fri, 27 Mar 2020 11:35:08 +0000 (12:35 +0100)]
env: more precise error

4 years agofollow-up to reviews
JOE1994 [Fri, 27 Mar 2020 11:07:21 +0000 (07:07 -0400)]
follow-up to reviews

4 years agoadd OS-specific handling to src/shims/env.rs
JOE1994 [Fri, 27 Mar 2020 04:10:45 +0000 (00:10 -0400)]
add OS-specific handling to src/shims/env.rs

4 years agochange helper fn 'write_os_str_to_wide_str'
JOE1994 [Fri, 27 Mar 2020 04:08:27 +0000 (00:08 -0400)]
change helper fn 'write_os_str_to_wide_str'

4 years agotest floating point casting better
Ralf Jung [Thu, 26 Mar 2020 18:25:51 +0000 (19:25 +0100)]
test floating point casting better

4 years agoAuto merge of #1262 - RalfJung:rustup, r=RalfJung
bors [Wed, 25 Mar 2020 23:12:38 +0000 (23:12 +0000)]
Auto merge of #1262 - RalfJung:rustup, r=RalfJung

rustup; get rid of some try_from that are no longer needed

4 years agorustup; get rid of some try_from that are no longer needed
Ralf Jung [Wed, 25 Mar 2020 23:11:50 +0000 (00:11 +0100)]
rustup; get rid of some try_from that are no longer needed

4 years agoAuto merge of #1261 - RalfJung:cross-gnu, r=RalfJung
bors [Wed, 25 Mar 2020 11:11:41 +0000 (11:11 +0000)]
Auto merge of #1261 - RalfJung:cross-gnu, r=RalfJung

cross-running windows-gnu should now also work

Fixes https://github.com/rust-lang/miri/issues/1198

4 years agobump xargo version
Ralf Jung [Wed, 25 Mar 2020 11:11:05 +0000 (12:11 +0100)]
bump xargo version

4 years agocross-running windows-gnu should now also work
Ralf Jung [Wed, 25 Mar 2020 10:44:11 +0000 (11:44 +0100)]
cross-running windows-gnu should now also work

4 years agoAuto merge of #1260 - RalfJung:unreachable, r=RalfJung
bors [Wed, 25 Mar 2020 08:33:44 +0000 (08:33 +0000)]
Auto merge of #1260 - RalfJung:unreachable, r=RalfJung

Implement unreachable intrinsic

Fixes https://github.com/rust-lang/miri/issues/1254

4 years agoremove an unnecessary as_str
Ralf Jung [Wed, 25 Mar 2020 08:15:52 +0000 (09:15 +0100)]
remove an unnecessary as_str

4 years agotest unreachable intrinsic
Ralf Jung [Wed, 25 Mar 2020 08:12:23 +0000 (09:12 +0100)]
test unreachable intrinsic

4 years agoAuto merge of #1259 - RalfJung:rustup, r=RalfJung
bors [Wed, 25 Mar 2020 08:10:28 +0000 (08:10 +0000)]
Auto merge of #1259 - RalfJung:rustup, r=RalfJung

rustup, adjust for renames

4 years agorustup, adjust for renames
Ralf Jung [Wed, 25 Mar 2020 08:05:24 +0000 (09:05 +0100)]
rustup, adjust for renames

4 years agoAuto merge of #1251 - RalfJung:win-cross, r=RalfJung
bors [Tue, 24 Mar 2020 13:18:44 +0000 (13:18 +0000)]
Auto merge of #1251 - RalfJung:win-cross, r=RalfJung

cross-test on a Windows host

4 years agomove path methods together, to the bottom of the string helpers
Ralf Jung [Tue, 24 Mar 2020 07:38:05 +0000 (08:38 +0100)]
move path methods together, to the bottom of the string helpers

4 years agotest harness informs tests about suitable temp dir
Ralf Jung [Mon, 23 Mar 2020 22:42:03 +0000 (23:42 +0100)]
test harness informs tests about suitable temp dir

4 years agomake fs.rs at least build under Windows
Ralf Jung [Mon, 23 Mar 2020 22:48:12 +0000 (23:48 +0100)]
make fs.rs at least build under Windows

4 years agoconvert dir separators on path load/store
Ralf Jung [Mon, 23 Mar 2020 18:57:40 +0000 (19:57 +0100)]
convert dir separators on path load/store

4 years agoroute all path reading/writing through central read/write methods
Ralf Jung [Mon, 23 Mar 2020 18:24:16 +0000 (19:24 +0100)]
route all path reading/writing through central read/write methods

4 years agoneed to unset MIRI_SYSROOT before calling 'cargo miri setup'
Ralf Jung [Sun, 22 Mar 2020 19:32:42 +0000 (20:32 +0100)]
need to unset MIRI_SYSROOT before calling 'cargo miri setup'

4 years agocross-test on a Windows host
Ralf Jung [Sun, 22 Mar 2020 19:08:00 +0000 (20:08 +0100)]
cross-test on a Windows host

4 years agoAuto merge of #1258 - RalfJung:rustup, r=RalfJung
bors [Tue, 24 Mar 2020 07:29:25 +0000 (07:29 +0000)]
Auto merge of #1258 - RalfJung:rustup, r=RalfJung

Rustup

4 years ago32bit macOS is no more
Ralf Jung [Tue, 24 Mar 2020 07:25:37 +0000 (08:25 +0100)]
32bit macOS is no more

4 years agorustup for trait MachineStopType
Ralf Jung [Tue, 24 Mar 2020 07:24:36 +0000 (08:24 +0100)]
rustup for trait MachineStopType

4 years agoAuto merge of #1256 - JOE1994:rw_widestr_helpers, r=RalfJung
bors [Tue, 24 Mar 2020 07:09:40 +0000 (07:09 +0000)]
Auto merge of #1256 - JOE1994:rw_widestr_helpers, r=RalfJung

helper functions for env_var emulation in Windows

Moving some of the changes submitted in PR #1225, in order to prevent the original PR from bloating too much.

4 years agohelper functions for env_var emulation in Windows
JOE1994 [Mon, 23 Mar 2020 19:08:57 +0000 (15:08 -0400)]
helper functions for env_var emulation in Windows

4 years agoAuto merge of #1257 - RalfJung:rustup, r=RalfJung
bors [Mon, 23 Mar 2020 22:55:08 +0000 (22:55 +0000)]
Auto merge of #1257 - RalfJung:rustup, r=RalfJung

Rustup

4 years agouse Wake trait for async-fn driver
Ralf Jung [Mon, 23 Mar 2020 22:53:54 +0000 (23:53 +0100)]
use Wake trait for async-fn driver

4 years agorustup
Ralf Jung [Mon, 23 Mar 2020 22:48:24 +0000 (23:48 +0100)]
rustup

4 years agoAuto merge of #1255 - RalfJung:os_str_bytes, r=RalfJung
bors [Mon, 23 Mar 2020 18:45:34 +0000 (18:45 +0000)]
Auto merge of #1255 - RalfJung:os_str_bytes, r=RalfJung

fix conditional compilation condition for os_str <-> bytes conversion

Turns out that condition was wrong and these functions never got compiled... Cc @christianpoveda

4 years agofix conditional compilation condition for os_str <-> bytes conversion
Ralf Jung [Mon, 23 Mar 2020 18:43:03 +0000 (19:43 +0100)]
fix conditional compilation condition for os_str <-> bytes conversion

4 years agoAuto merge of #1252 - RalfJung:rustup, r=RalfJung
bors [Mon, 23 Mar 2020 09:36:23 +0000 (09:36 +0000)]
Auto merge of #1252 - RalfJung:rustup, r=RalfJung

bump Rust; HashMap should now work on macOS even with isolation

4 years agobump Rust; HashMap should now work on macOS even with isolation
Ralf Jung [Mon, 23 Mar 2020 09:34:15 +0000 (10:34 +0100)]
bump Rust; HashMap should now work on macOS even with isolation

4 years agoAuto merge of #1250 - RalfJung:error-context, r=oli-obk
bors [Sun, 22 Mar 2020 22:34:23 +0000 (22:34 +0000)]
Auto merge of #1250 - RalfJung:error-context, r=oli-obk

give some context in error messages

### Some examples for how different errors look now

Unsupported operation:
```
error: unsupported operation: Miri does not support threading
  --> /home/r/.rustup/toolchains/miri/lib/rustlib/src/rust/src/libstd/sys/unix/thread.rs:68:19
   |
68 |         let ret = libc::pthread_create(&mut native, &attr, thread_start, &*p as *const _ as *mut _);
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Miri does not support threading
   |
   = help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
```
Unsupported operation that works without isolation:
```
error: unsupported operation: `clock_gettime` not available when isolation is enabled
   --> /home/r/.rustup/toolchains/miri/lib/rustlib/src/rust/src/libstd/sys/unix/time.rs:349:22
    |
349 |         cvt(unsafe { libc::clock_gettime(clock, &mut t.t) }).unwrap();
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `clock_gettime` not available when isolation is enabled
    |
    = help: pass the flag `-Zmiri-disable-isolation` to disable isolation
```
Program abort:
```
error: program stopped: the evaluated program aborted execution
   --> /home/r/.rustup/toolchains/miri/lib/rustlib/src/rust/src/libstd/panicking.rs:530:18
    |
530 |         unsafe { intrinsics::abort() }
    |                  ^^^^^^^^^^^^^^^^^^^ the evaluated program aborted execution
    |
```
UB:
```
error: Undefined Behavior: type validation failed: encountered 2, but expected a boolean
 --> tests/compile-fail/validity/invalid_bool.rs:2:23
  |
2 |     let _b = unsafe { std::mem::transmute::<u8, bool>(2) }; //~ ERROR encountered 2, but expected a boolean
  |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 2, but expected a boolean
  |
  = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
```
Experimental UB:
```
error: Undefined Behavior: not granting access to tag <1562> because incompatible item is protected: [Unique for <1567> (call 1189)]
  --> tests/compile-fail/stacked_borrows/aliasing_mut1.rs:3:1
   |
3  | pub fn safe(_x: &mut i32, _y: &mut i32) {} //~ ERROR protect
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not granting access to tag <1562> because incompatible item is protected: [Unique for <1567> (call 1189)]
   |
   = help: this indicates a potential bug in the program: it performed an invalid operation, but the rules it violated are still experimental
```

Fixes https://github.com/rust-lang/miri/issues/417

4 years agolink to some websites for UB explanations
Ralf Jung [Sun, 22 Mar 2020 22:32:19 +0000 (23:32 +0100)]
link to some websites for UB explanations

4 years agofix outdated sysroot help message
Ralf Jung [Sun, 22 Mar 2020 19:09:14 +0000 (20:09 +0100)]
fix outdated sysroot help message

4 years agomove -Zmiri-disable-isolation hint to help
Ralf Jung [Sun, 22 Mar 2020 18:48:59 +0000 (19:48 +0100)]
move -Zmiri-disable-isolation hint to help

4 years agogive some context in error messages
Ralf Jung [Sun, 22 Mar 2020 17:50:12 +0000 (18:50 +0100)]
give some context in error messages

4 years agoAuto merge of #1249 - RalfJung:rustup, r=RalfJung
bors [Sun, 22 Mar 2020 08:05:35 +0000 (08:05 +0000)]
Auto merge of #1249 - RalfJung:rustup, r=RalfJung

Cross-test targets

We should now be able to run Linux targets on macOS hosts and vice versa.
Cc https://github.com/rust-lang/miri/issues/1198

4 years agorun-test.py: also print what we are testing for
Ralf Jung [Sun, 22 Mar 2020 08:04:10 +0000 (09:04 +0100)]
run-test.py: also print what we are testing for

4 years agomention cross-running in docs
Ralf Jung [Sun, 22 Mar 2020 07:55:53 +0000 (08:55 +0100)]
mention cross-running in docs

4 years agoplatform -> target
Ralf Jung [Sun, 22 Mar 2020 07:51:15 +0000 (08:51 +0100)]
platform -> target

4 years agofix bad use of FOREIGN_TARGET
Ralf Jung [Sat, 21 Mar 2020 22:28:10 +0000 (23:28 +0100)]
fix bad use of FOREIGN_TARGET

4 years agoalso cross-test Windows from Linux, macOS
Ralf Jung [Sat, 21 Mar 2020 22:26:44 +0000 (23:26 +0100)]
also cross-test Windows from Linux, macOS

4 years agodo more cross-testing
Ralf Jung [Sat, 21 Mar 2020 22:17:18 +0000 (23:17 +0100)]
do more cross-testing

4 years agobump Rust
Ralf Jung [Sat, 21 Mar 2020 22:17:07 +0000 (23:17 +0100)]
bump Rust

4 years agoAuto merge of #1248 - RalfJung:overflow, r=RalfJung
bors [Sat, 21 Mar 2020 17:09:57 +0000 (17:09 +0000)]
Auto merge of #1248 - RalfJung:overflow, r=RalfJung

detect UB: overflow in copy/write_bytes

Fixes https://github.com/rust-lang/miri/issues/1234

4 years agodetect UB: overflow in copy/write_bytes
Ralf Jung [Sat, 21 Mar 2020 16:54:33 +0000 (17:54 +0100)]
detect UB: overflow in copy/write_bytes

4 years agotest for zero-sized write_bytes to NULL
Ralf Jung [Sat, 21 Mar 2020 16:54:18 +0000 (17:54 +0100)]
test for zero-sized write_bytes to NULL

4 years ago./miri check
Ralf Jung [Sat, 21 Mar 2020 16:43:28 +0000 (17:43 +0100)]
./miri check

4 years agoAuto merge of #1247 - RalfJung:rustup, r=RalfJung
bors [Sat, 21 Mar 2020 12:13:39 +0000 (12:13 +0000)]
Auto merge of #1247 - RalfJung:rustup, r=RalfJung

call error location was fixed by rustup

4 years agoremove no longer needed (and sometimes broken) 'extern crate'
Ralf Jung [Sat, 21 Mar 2020 12:13:08 +0000 (13:13 +0100)]
remove no longer needed (and sometimes broken) 'extern crate'

4 years agocall error location was fixed by rustup
Ralf Jung [Sat, 21 Mar 2020 11:52:23 +0000 (12:52 +0100)]
call error location was fixed by rustup

4 years agoAuto merge of #1241 - RalfJung:dont-panic, r=RalfJung
bors [Sat, 21 Mar 2020 09:55:23 +0000 (09:55 +0000)]
Auto merge of #1241 - RalfJung:dont-panic, r=RalfJung

whitelist platforms where panicking should work

@CAD97 [proposed](https://github.com/rust-lang/miri/issues/1059#issuecomment-601217992) trying to get a better error for failed panics on Windows.

Could you test if this works for you?

4 years agofix tests
Ralf Jung [Sat, 21 Mar 2020 09:43:59 +0000 (10:43 +0100)]
fix tests

4 years agotest windows panic message
Ralf Jung [Sat, 21 Mar 2020 09:16:47 +0000 (10:16 +0100)]
test windows panic message

4 years agoAuto merge of #1243 - RalfJung:instant, r=RalfJung
bors [Fri, 20 Mar 2020 15:18:06 +0000 (15:18 +0000)]
Auto merge of #1243 - RalfJung:instant, r=RalfJung

implement Instant::now

For now, this is Linux-only.

Unlike `SystemTime`, we cannot convert `Instant` to something absolute via an epoch. But that's okay, that clock is relative anyway, so we just make up our own time anchor when interpretation starts.

Fixes https://github.com/rust-lang/miri/issues/1242

4 years agoimplement mach_absolute_time for macOS
Ralf Jung [Fri, 20 Mar 2020 14:54:41 +0000 (15:54 +0100)]
implement mach_absolute_time for macOS

4 years agoAuto merge of #1244 - RalfJung:readme, r=RalfJung
bors [Fri, 20 Mar 2020 14:57:58 +0000 (14:57 +0000)]
Auto merge of #1244 - RalfJung:readme, r=RalfJung

README updates

4 years agoadd some more miri-detected issues
Ralf Jung [Fri, 20 Mar 2020 14:57:11 +0000 (15:57 +0100)]
add some more miri-detected issues