]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agomake miri_start_panic intrinsic an FFI function
Ralf Jung [Thu, 23 Jul 2020 13:20:36 +0000 (15:20 +0200)]
make miri_start_panic intrinsic an FFI function

4 years agoAuto merge of #1482 - canova:remote-unreachable, r=RalfJung
bors [Thu, 23 Jul 2020 09:14:08 +0000 (09:14 +0000)]
Auto merge of #1482 - canova:remote-unreachable, r=RalfJung

Remove unreachable intrinsic

This is now supported by the interpreter with https://github.com/rust-lang/rust/pull/74459. We can remove this intrinsic implementation here.
This is covered by this test: https://github.com/rust-lang/miri/blob/master/tests/compile-fail/unreachable.rs

I guess we need to wait until the rust-lang/rust PR merges into nightly, and then we can update `rust-version` hash in the PR, right?

r? @oli-obk

4 years agoAuto merge of #1484 - RalfJung:rustup, r=RalfJung
bors [Thu, 23 Jul 2020 08:41:34 +0000 (08:41 +0000)]
Auto merge of #1484 - RalfJung:rustup, r=RalfJung

rustup

Following https://github.com/rust-lang/rust/pull/69749 I added some `ty::ParamEnv::reveal_all()` even though @eddyb advised me in the past to avoid those.

4 years agorustup
Ralf Jung [Thu, 23 Jul 2020 08:40:13 +0000 (10:40 +0200)]
rustup

4 years agoAuto merge of #1483 - RalfJung:fs-errno, r=RalfJung
bors [Sat, 18 Jul 2020 15:59:19 +0000 (15:59 +0000)]
Auto merge of #1483 - RalfJung:fs-errno, r=RalfJung

set errno on stdout write failure

4 years agoset errno on stdout write failure
Ralf Jung [Sat, 18 Jul 2020 15:58:16 +0000 (17:58 +0200)]
set errno on stdout write failure

4 years agoAuto merge of #1436 - samrat:support-stdin-read, r=RalfJung
bors [Sat, 18 Jul 2020 14:56:38 +0000 (14:56 +0000)]
Auto merge of #1436 - samrat:support-stdin-read, r=RalfJung

Handle `read`s on STDIN

Closes #1434

4 years agoRemove unreachable intrinsic
Nazım Can Altınova [Sat, 18 Jul 2020 10:48:26 +0000 (12:48 +0200)]
Remove unreachable intrinsic

4 years agoRemove unnecessary cast
Samrat Man Singh [Sat, 18 Jul 2020 05:15:06 +0000 (10:45 +0530)]
Remove unnecessary cast

4 years agoEnsure buffer for reading from Stdin is smaller than machine usize
Samrat Man Singh [Thu, 16 Jul 2020 18:33:56 +0000 (00:03 +0530)]
Ensure buffer for reading from Stdin is smaller than machine usize

Also, set appropriate error code on failure

4 years agoAuto merge of #1480 - RalfJung:diagnostic-stacktrace-fix, r=oli-obk
bors [Fri, 17 Jul 2020 11:40:40 +0000 (11:40 +0000)]
Auto merge of #1480 - RalfJung:diagnostic-stacktrace-fix, r=oli-obk

fix non-fatal diagnostics stacktraces

Our non-fatal diagnostics are printed *after* completing the step that triggered them, which means the span and stacktrace used for them is that of the *next* MIR statement being executed. That's quite bad, obviously, as pointing to where in the source something happens is their entire point.

Here's an example:
```rust
use std::ptr;

static mut PTR: *mut u8 = ptr::null_mut();

fn get_ptr() -> *const u8 { unsafe { PTR }}

fn cause_ub() { unsafe {
    let _x = &*get_ptr();
} }

fn main() { unsafe {
   let mut l = 0;
   PTR = &mut l;
   let r = &mut *PTR;
   cause_ub();
   let _x = *r;
} }
```
This example is UB; if you track the pointer tag that is given in the final error, it points to the entire body of `cause_ub` as a span, instead of the `&*get_ptr();`.

I am not sure what the best way is to fix this. The cleanest way would be to capture a stack trace before the step and use it in case of a diagnostic, but that seems silly perf-wise. So instead I went with reconstructing the old stacktrace by going back one step in the MIR. This is however not possible if we were executing a `Terminator`... I think those cannot cause diagnostics but still, this is not great.

Any ideas?
r? @oli-obk

4 years agofix typo
Ralf Jung [Fri, 17 Jul 2020 11:39:25 +0000 (13:39 +0200)]
fix typo

Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
4 years agofix non-fatal diagnostics stacktraces
Ralf Jung [Fri, 17 Jul 2020 10:54:38 +0000 (12:54 +0200)]
fix non-fatal diagnostics stacktraces

4 years agoAuto merge of #1479 - RalfJung:fs-nocast, r=RalfJung
bors [Thu, 16 Jul 2020 10:17:23 +0000 (10:17 +0000)]
Auto merge of #1479 - RalfJung:fs-nocast, r=RalfJung

fs: remove an unnecessary intermediate cast

4 years agoremove an unnecessary intermediate cast
Ralf Jung [Thu, 16 Jul 2020 10:16:43 +0000 (12:16 +0200)]
remove an unnecessary intermediate cast

4 years agoAuto merge of #1478 - RalfJung:readme, r=RalfJung
bors [Wed, 15 Jul 2020 08:10:02 +0000 (08:10 +0000)]
Auto merge of #1478 - RalfJung:readme, r=RalfJung

make cfg(miri) greppable

4 years agomake cfg(miri) greppable
Ralf Jung [Wed, 15 Jul 2020 08:09:28 +0000 (10:09 +0200)]
make cfg(miri) greppable

4 years agoAuto merge of #1477 - RalfJung:rustup, r=RalfJung
bors [Wed, 15 Jul 2020 06:43:14 +0000 (06:43 +0000)]
Auto merge of #1477 - RalfJung:rustup, r=RalfJung

rustup; fix Windows TLS

4 years agorustup; fix Windows TLS
Ralf Jung [Wed, 15 Jul 2020 06:42:15 +0000 (08:42 +0200)]
rustup; fix Windows TLS

4 years agoRead into buffer of fixed size for `read`s to STDIN
Samrat Man Singh [Sun, 12 Jul 2020 14:57:19 +0000 (20:27 +0530)]
Read into buffer of fixed size for `read`s to STDIN

Also:
- Check isolation is disabled.
- Add FIXMEs to set error numbers in `read` and `write`.

4 years agoAuto merge of #1475 - RalfJung:dangcast, r=RalfJung
bors [Sat, 11 Jul 2020 18:57:28 +0000 (18:57 +0000)]
Auto merge of #1475 - RalfJung:dangcast, r=RalfJung

test casting a dangling ptr back from an int

4 years agotest casting a dangling ptr back from an int
Ralf Jung [Sat, 11 Jul 2020 18:56:47 +0000 (20:56 +0200)]
test casting a dangling ptr back from an int

4 years agoAuto merge of #1474 - RalfJung:canonical, r=RalfJung
bors [Sat, 11 Jul 2020 09:08:03 +0000 (09:08 +0000)]
Auto merge of #1474 - RalfJung:canonical, r=RalfJung

go back to using canonicalize()

Newer xargo should hopefully work with the paths this produces on Windows.

4 years agogo back to using canonicalize()
Ralf Jung [Sat, 11 Jul 2020 09:07:17 +0000 (11:07 +0200)]
go back to using canonicalize()

4 years agoHandle `read`s on STDIN
Samrat Man Singh [Thu, 28 May 2020 05:54:47 +0000 (11:24 +0530)]
Handle `read`s on STDIN

4 years agoAuto merge of #1473 - Stupremee:no-ice-if-no-main-fn, r=oli-obk
bors [Thu, 9 Jul 2020 15:35:28 +0000 (15:35 +0000)]
Auto merge of #1473 - Stupremee:no-ice-if-no-main-fn, r=oli-obk

Early exit if program doesn't contain a main function

Resolves #1452

4 years agoMove no_main test to compile-fail
Justus K [Thu, 9 Jul 2020 15:21:09 +0000 (17:21 +0200)]
Move no_main test to compile-fail

4 years agoAdd ui test for early exiting if no main
Justus K [Thu, 9 Jul 2020 12:08:45 +0000 (14:08 +0200)]
Add ui test for early exiting if no main

4 years agoEarly exit if program doesn't contain a main fn
Justus K [Thu, 9 Jul 2020 11:16:38 +0000 (13:16 +0200)]
Early exit if program doesn't contain a main fn

4 years agoAuto merge of #1472 - RalfJung:abs, r=RalfJung
bors [Thu, 9 Jul 2020 11:03:15 +0000 (11:03 +0000)]
Auto merge of #1472 - RalfJung:abs, r=RalfJung

better way to get an absolute path

suggested by @matklad

4 years agoCleanup code
Ralf Jung [Thu, 9 Jul 2020 11:02:42 +0000 (13:02 +0200)]
Cleanup code

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
4 years agobetter way to get an absolute path
Ralf Jung [Thu, 9 Jul 2020 10:45:35 +0000 (12:45 +0200)]
better way to get an absolute path

4 years agoAuto merge of #1471 - RalfJung:win, r=RalfJung
bors [Thu, 9 Jul 2020 07:00:39 +0000 (07:00 +0000)]
Auto merge of #1471 - RalfJung:win, r=RalfJung

on Windows, strip the '\\?\' prefix from the canonical path

This should help with https://github.com/rust-lang/rust/pull/74146#issuecomment-655723028

4 years agoon Windows, strip the '\\?\' prefix from the canonical path
Ralf Jung [Thu, 9 Jul 2020 06:59:28 +0000 (08:59 +0200)]
on Windows, strip the '\\?\' prefix from the canonical path

4 years agoAuto merge of #1470 - RalfJung:machine-tracking, r=RalfJung
bors [Wed, 8 Jul 2020 10:02:13 +0000 (10:02 +0000)]
Auto merge of #1470 - RalfJung:machine-tracking, r=RalfJung

we cannot track all machine memory any more due to int-ptr-casts

Fixes a regression introduced by https://github.com/rust-lang/rust/pull/74006

4 years agowe cannot track all machine memory any more due to int-ptr-casts
Ralf Jung [Wed, 8 Jul 2020 09:05:22 +0000 (11:05 +0200)]
we cannot track all machine memory any more due to int-ptr-casts

4 years agoAuto merge of #1468 - RalfJung:uninit-validation, r=RalfJung
bors [Tue, 7 Jul 2020 20:59:17 +0000 (20:59 +0000)]
Auto merge of #1468 - RalfJung:uninit-validation, r=RalfJung

Test uninit memory validation

This adds the tests for https://github.com/rust-lang/rust/pull/74059.

4 years agorustup
Ralf Jung [Tue, 7 Jul 2020 20:57:58 +0000 (22:57 +0200)]
rustup

4 years agoadjust error messages
Ralf Jung [Sun, 5 Jul 2020 11:43:20 +0000 (13:43 +0200)]
adjust error messages

4 years agotest validation of uninit memory (used to ICE)
Ralf Jung [Sun, 5 Jul 2020 10:53:00 +0000 (12:53 +0200)]
test validation of uninit memory (used to ICE)

4 years agoAuto merge of #1469 - RalfJung:relative, r=RalfJung
bors [Sun, 5 Jul 2020 18:01:56 +0000 (18:01 +0000)]
Auto merge of #1469 - RalfJung:relative, r=RalfJung

support relative XARGO_RUST_SRC

4 years agosupport relative XARGO_RUST_SRC
Ralf Jung [Sun, 5 Jul 2020 18:01:12 +0000 (20:01 +0200)]
support relative XARGO_RUST_SRC

4 years agoAuto merge of #1466 - RalfJung:target, r=RalfJung
bors [Fri, 3 Jul 2020 09:20:07 +0000 (09:20 +0000)]
Auto merge of #1466 - RalfJung:target, r=RalfJung

set --target when building miri

This helps cargo tell apart `./miri` builds and `cargo check` (e.g. through rust-analyzer).
See https://github.com/rust-lang/cargo/issues/8440.

4 years agoset --target when building miri
Ralf Jung [Fri, 3 Jul 2020 09:18:44 +0000 (11:18 +0200)]
set --target when building miri

This helps cargo tell apart `./miri` builds and `cargo check` (e.g. through rust-analyzer).
See https://github.com/rust-lang/cargo/issues/8440.

4 years agoAuto merge of #1465 - nbdd0121:patch-1, r=RalfJung
bors [Fri, 3 Jul 2020 06:06:37 +0000 (06:06 +0000)]
Auto merge of #1465 - nbdd0121:patch-1, r=RalfJung

Remove likely and unlikely from intrinsics shim

They are now implemented in MIR interpreter by rust-lang/rust#73778

4 years agoRemove likely and unlikely from intrinsics shim
Gary Guo [Thu, 2 Jul 2020 19:00:27 +0000 (20:00 +0100)]
Remove likely and unlikely from intrinsics shim

They are now implemented in MIR interpreter by rust-lang/rust#73778

4 years agoAuto merge of #1463 - RalfJung:track-call-id, r=oli-obk
bors [Thu, 2 Jul 2020 12:52:33 +0000 (12:52 +0000)]
Auto merge of #1463 - RalfJung:track-call-id, r=oli-obk

add option to track call IDs

4 years agoAuto merge of #1464 - RalfJung:rustup, r=RalfJung
bors [Thu, 2 Jul 2020 08:48:45 +0000 (08:48 +0000)]
Auto merge of #1464 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Thu, 2 Jul 2020 08:37:29 +0000 (10:37 +0200)]
rustup

4 years agoadd option to track call IDs
Ralf Jung [Thu, 2 Jul 2020 07:50:52 +0000 (09:50 +0200)]
add option to track call IDs

4 years agoAuto merge of #1462 - RalfJung:ignore-windows, r=RalfJung
bors [Sun, 28 Jun 2020 18:41:17 +0000 (18:41 +0000)]
Auto merge of #1462 - RalfJung:ignore-windows, r=RalfJung

fix some ignore-windows comments

and make that more consistent

4 years agofix some ignore-windows comments
Ralf Jung [Sun, 28 Jun 2020 09:31:34 +0000 (11:31 +0200)]
fix some ignore-windows comments

4 years agoAuto merge of #1461 - RalfJung:rwlock-win, r=oli-obk
bors [Sun, 28 Jun 2020 10:59:34 +0000 (10:59 +0000)]
Auto merge of #1461 - RalfJung:rwlock-win, r=oli-obk

Implement rwlocks on Windows

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

4 years agomove rwlock dequeuing to shared code, and use that code for Windows rwlocks
Ralf Jung [Sun, 28 Jun 2020 07:47:20 +0000 (09:47 +0200)]
move rwlock dequeuing to shared code, and use that code for Windows rwlocks

4 years agoMove get/set_at_offset helpers to global helpers file
Ralf Jung [Sun, 28 Jun 2020 07:23:01 +0000 (09:23 +0200)]
Move get/set_at_offset helpers to global helpers file

4 years agowith this, we support panics on Windows
Ralf Jung [Sat, 27 Jun 2020 12:43:37 +0000 (14:43 +0200)]
with this, we support panics on Windows

4 years agoimplement Windows SRWLock shims
Ralf Jung [Sat, 27 Jun 2020 12:35:58 +0000 (14:35 +0200)]
implement Windows SRWLock shims

4 years agointroduce platform-specific module hierarchy for dlsym (similar to foreign_items)
Ralf Jung [Sat, 27 Jun 2020 11:50:52 +0000 (13:50 +0200)]
introduce platform-specific module hierarchy for dlsym (similar to foreign_items)

4 years agoAuto merge of #1460 - RalfJung:modules, r=RalfJung
bors [Sat, 27 Jun 2020 11:27:36 +0000 (11:27 +0000)]
Auto merge of #1460 - RalfJung:modules, r=RalfJung

Re-organize platform-specific shims

Move platform-specific code to `shims::{posix::{linux, macos}, windows}`. Also make it private in these modules to ensure we are reasonably structured.

4 years agomodule organization: move platform-specific code to shims::{posix::{linux, macos...
Ralf Jung [Sat, 27 Jun 2020 11:19:35 +0000 (13:19 +0200)]
module organization: move platform-specific code to shims::{posix::{linux, macos}, windows}

4 years agoRename shims::{sync -> posic_sync} and move sync_singlethread test to other sync...
Ralf Jung [Sat, 27 Jun 2020 10:36:20 +0000 (12:36 +0200)]
Rename shims::{sync -> posic_sync} and move sync_singlethread test to other sync test

4 years agoAuto merge of #1459 - RalfJung:ptr_guaranteed_eq, r=RalfJung
bors [Sat, 27 Jun 2020 10:15:01 +0000 (10:15 +0000)]
Auto merge of #1459 - RalfJung:ptr_guaranteed_eq, r=RalfJung

supply our own implementation of the CTFE pointer comparison intrinsics

4 years agosupply our own implementation of the CTFE pointer comparison intrinsics
Ralf Jung [Sat, 27 Jun 2020 09:57:43 +0000 (11:57 +0200)]
supply our own implementation of the CTFE pointer comparison intrinsics

4 years agoAuto merge of #1458 - RalfJung:rustup, r=RalfJung
bors [Fri, 26 Jun 2020 18:36:58 +0000 (18:36 +0000)]
Auto merge of #1458 - RalfJung:rustup, r=RalfJung

bump Rust

4 years agobump Rust
Ralf Jung [Fri, 26 Jun 2020 18:36:08 +0000 (20:36 +0200)]
bump Rust

4 years agoAuto merge of #1457 - RalfJung:rustup, r=RalfJung
bors [Thu, 25 Jun 2020 09:43:51 +0000 (09:43 +0000)]
Auto merge of #1457 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Thu, 25 Jun 2020 09:34:52 +0000 (11:34 +0200)]
rustup

4 years agoAuto merge of #1455 - RalfJung:rustup, r=RalfJung
bors [Mon, 22 Jun 2020 11:10:06 +0000 (11:10 +0000)]
Auto merge of #1455 - RalfJung:rustup, r=RalfJung

Rustup

also stop testing with mir opts as they are currently broken

4 years agorustup; stop testing with mir opts as they are currently broken
Ralf Jung [Mon, 22 Jun 2020 09:38:34 +0000 (11:38 +0200)]
rustup; stop testing with mir opts as they are currently broken

4 years agoadd a miscompilation test
Ralf Jung [Mon, 22 Jun 2020 09:32:01 +0000 (11:32 +0200)]
add a miscompilation test

4 years agoAuto merge of #1454 - RalfJung:test-raw-ptr, r=RalfJung
bors [Sat, 20 Jun 2020 12:36:25 +0000 (12:36 +0000)]
Auto merge of #1454 - RalfJung:test-raw-ptr, r=RalfJung

Test raw_ptr macro

Make sure it can create pointers to packed fields, but *cannot* deref dangling or unaligned (raw) pointers.

4 years agounaligned-raw-deref is always UB
Ralf Jung [Sat, 20 Jun 2020 12:34:57 +0000 (14:34 +0200)]
unaligned-raw-deref is always UB

4 years agomake sure the raw_ptr macros also avoid UB
Ralf Jung [Sat, 20 Jun 2020 12:31:47 +0000 (14:31 +0200)]
make sure the raw_ptr macros also avoid UB

4 years agomake sure '&raw *' on a dangling raw ptr is UB
Ralf Jung [Sat, 20 Jun 2020 12:28:55 +0000 (14:28 +0200)]
make sure '&raw *' on a dangling raw ptr is UB

4 years agoAuto merge of #1453 - RalfJung:rustup, r=RalfJung
bors [Sat, 20 Jun 2020 09:49:25 +0000 (09:49 +0000)]
Auto merge of #1453 - RalfJung:rustup, r=RalfJung

bump Rust

4 years agobump Rust
Ralf Jung [Sat, 20 Jun 2020 09:48:42 +0000 (11:48 +0200)]
bump Rust

4 years agoAuto merge of #1451 - RalfJung:rustup, r=RalfJung
bors [Mon, 15 Jun 2020 15:39:08 +0000 (15:39 +0000)]
Auto merge of #1451 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Mon, 15 Jun 2020 15:38:27 +0000 (17:38 +0200)]
rustup

4 years agoAuto merge of #1450 - RalfJung:rustup, r=RalfJung
bors [Mon, 15 Jun 2020 08:59:06 +0000 (08:59 +0000)]
Auto merge of #1450 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Mon, 15 Jun 2020 08:58:20 +0000 (10:58 +0200)]
rustup

4 years agoAuto merge of #1448 - RalfJung:rustup, r=RalfJung
bors [Sat, 13 Jun 2020 09:31:32 +0000 (09:31 +0000)]
Auto merge of #1448 - RalfJung:rustup, r=RalfJung

rustup; and a bit of UnsafeCell detection refactoring

4 years agorustup; and a bit of UnsafeCell detection refactoring
Ralf Jung [Sat, 13 Jun 2020 09:30:31 +0000 (11:30 +0200)]
rustup; and a bit of UnsafeCell detection refactoring

4 years agoAuto merge of #1447 - RalfJung:rustup, r=RalfJung
bors [Fri, 12 Jun 2020 08:18:12 +0000 (08:18 +0000)]
Auto merge of #1447 - RalfJung:rustup, r=RalfJung

rustup

This seems to be the latest version that works before *something* broke -- so let's make this a baseline.

4 years agorustup
Ralf Jung [Fri, 12 Jun 2020 08:00:46 +0000 (10:00 +0200)]
rustup

4 years agoAuto merge of #1446 - RalfJung:rustup, r=RalfJung
bors [Wed, 10 Jun 2020 08:56:39 +0000 (08:56 +0000)]
Auto merge of #1446 - RalfJung:rustup, r=RalfJung

rustup

just making sure everything keeps working

4 years agorustup
Ralf Jung [Wed, 10 Jun 2020 08:55:48 +0000 (10:55 +0200)]
rustup

4 years agoAuto merge of #1418 - divergentdave:file-sync, r=RalfJung
bors [Tue, 9 Jun 2020 08:48:40 +0000 (08:48 +0000)]
Auto merge of #1418 - divergentdave:file-sync, r=RalfJung

Add file sync shims

This PR adds shim implementations for these related file syncing functions.
* `fsync`, for POSIX targets, backed by `File::sync_all()`
* `fdatasync`, for POSIX targets, backed by `File::sync_data()`
* `fcntl` with command `F_FULLFSYNC`, for macOS targets, backed by `File::sync_all()`
* `sync_file_range`, for Linux targets, backed by `File::sync_data()`

4 years agoExtract common logic for Windows host workaround
David Cook [Mon, 8 Jun 2020 23:34:02 +0000 (23:34 +0000)]
Extract common logic for Windows host workaround

4 years agoAuto merge of #1445 - JOE1994:patch-1, r=RalfJung
bors [Mon, 8 Jun 2020 23:26:59 +0000 (23:26 +0000)]
Auto merge of #1445 - JOE1994:patch-1, r=RalfJung

Add a case to list of 'StackedBorrows violations'

A small fix was made to libstd in rust-lang/rust#70479 (back in March).
(Miri reported UB due to Stacked Borrows violation - [link to Miri error log](https://github.com/rust-lang/miri/pull/1225#discussion_r397830221))

Thank you for reviewing :+1:

4 years agoAdd a case to list of 'StackedBorrows violations'
Youngsuk Kim [Mon, 8 Jun 2020 21:30:43 +0000 (17:30 -0400)]
Add a case to list of 'StackedBorrows violations'

A small fix was made to libstd in rust-lang/rust#70479 (back in March).
(Miri reported UB due to Stacked Borrows violation - [link to Miri error log](https://github.com/rust-lang/miri/pull/1225#discussion_r397830221))

Thank you for reviewing :+1:

4 years agoFinish fixing Windows host support
David Cook [Sat, 6 Jun 2020 16:54:13 +0000 (16:54 +0000)]
Finish fixing Windows host support

4 years agoAuto merge of #1444 - RalfJung:rustup, r=RalfJung
bors [Wed, 3 Jun 2020 07:41:37 +0000 (07:41 +0000)]
Auto merge of #1444 - RalfJung:rustup, r=RalfJung

rustup, and adjust timing tests

I saw a timing failure on macOS, so leave some more slack space.

4 years agorustup, and adjust timing tests
Ralf Jung [Wed, 3 Jun 2020 07:40:21 +0000 (09:40 +0200)]
rustup, and adjust timing tests

4 years agoAuto merge of #1443 - RalfJung:rustup, r=RalfJung
bors [Mon, 1 Jun 2020 17:25:04 +0000 (17:25 +0000)]
Auto merge of #1443 - RalfJung:rustup, r=RalfJung

rustup

Just quickly get things to work with the TLS changes.

Eventually I'll look into properly making use of the new infrastructure, but I don't have time right now.

4 years agorustup
Ralf Jung [Mon, 1 Jun 2020 17:23:54 +0000 (19:23 +0200)]
rustup

4 years agoAuto merge of #1440 - RalfJung:wtf8, r=RalfJung
bors [Sun, 31 May 2020 23:15:23 +0000 (23:15 +0000)]
Auto merge of #1440 - RalfJung:wtf8, r=RalfJung

test WTF8 encoding corner cases

This adds a Miri-side test for https://github.com/rust-lang/rust/issues/72760.

Blocked on https://github.com/rust-lang/rust/pull/72683.

4 years agorustup
Ralf Jung [Sun, 31 May 2020 23:15:00 +0000 (01:15 +0200)]
rustup

4 years agotest WTF8 encoding corner cases
Ralf Jung [Sat, 30 May 2020 16:46:26 +0000 (18:46 +0200)]
test WTF8 encoding corner cases

4 years agoAuto merge of #1441 - RalfJung:sync-cleanup, r=RalfJung
bors [Sun, 31 May 2020 09:10:19 +0000 (09:10 +0000)]
Auto merge of #1441 - RalfJung:sync-cleanup, r=RalfJung

Synchronization primitive cleanup

Make some methods infallible, move a bit more work into the platform-independent `sync.rs`, and fix a bug in rwlock unlocking.

4 years agoAuto merge of #1442 - RalfJung:rustup, r=RalfJung
bors [Sun, 31 May 2020 08:30:51 +0000 (08:30 +0000)]
Auto merge of #1442 - RalfJung:rustup, r=RalfJung

rustup, adjust error message