]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agounset RUSTC_WRAPPER for xargo invocation
Ralf Jung [Fri, 22 May 2020 08:12:32 +0000 (10:12 +0200)]
unset RUSTC_WRAPPER for xargo invocation

4 years agoAuto merge of #1430 - RalfJung:unsize, r=RalfJung
bors [Sun, 24 May 2020 10:15:05 +0000 (10:15 +0000)]
Auto merge of #1430 - RalfJung:unsize, r=RalfJung

add interesting unsizing test

@bors r+

4 years agoadd interesting unsizing test
Ralf Jung [Sun, 24 May 2020 09:58:19 +0000 (11:58 +0200)]
add interesting unsizing test

4 years agoAuto merge of #1429 - RalfJung:discriminant_value, r=RalfJung
bors [Sat, 23 May 2020 14:31:37 +0000 (14:31 +0000)]
Auto merge of #1429 - RalfJung:discriminant_value, r=RalfJung

test discriminant_value intrinsic

Make sure this works for all types, not just enums/generators.

4 years agotest discriminant_value intrinsic
Ralf Jung [Sat, 23 May 2020 14:30:50 +0000 (16:30 +0200)]
test discriminant_value intrinsic

4 years agoAuto merge of #1374 - divergentdave:InvalidUndefBytes, r=RalfJung
bors [Fri, 22 May 2020 15:07:39 +0000 (15:07 +0000)]
Auto merge of #1374 - divergentdave:InvalidUndefBytes, r=RalfJung

InvalidUndefBytes: Update to match rustc changes

This is a companion PR for rust-lang/rust#71610. This won't build yet, but we may need these changes in a future rustup.

4 years agorustup
Ralf Jung [Fri, 22 May 2020 15:03:37 +0000 (17:03 +0200)]
rustup

4 years agoUpdate to match rustc changes
David Cook [Thu, 14 May 2020 13:03:49 +0000 (08:03 -0500)]
Update to match rustc changes

4 years agoAuto merge of #1428 - RalfJung:shim-arg-size-verify, r=RalfJung
bors [Fri, 22 May 2020 11:20:04 +0000 (11:20 +0000)]
Auto merge of #1428 - RalfJung:shim-arg-size-verify, r=RalfJung

verify the size of all shim arguments

4 years agoverify the size of all shim arguments
Ralf Jung [Fri, 22 May 2020 09:56:18 +0000 (11:56 +0200)]
verify the size of all shim arguments

4 years agoAuto merge of #1427 - RalfJung:rustup, r=RalfJung
bors [Fri, 22 May 2020 08:30:35 +0000 (08:30 +0000)]
Auto merge of #1427 - RalfJung:rustup, r=RalfJung

rustup, and now we also need to install llvm-tools

Fixes fallout from https://github.com/rust-lang/rust/pull/72000

4 years agorustup, and now we also need to install llvm-tools
Ralf Jung [Fri, 22 May 2020 08:29:47 +0000 (10:29 +0200)]
rustup, and now we also need to install llvm-tools

4 years agoAuto merge of #1425 - RalfJung:rustup, r=RalfJung
bors [Fri, 22 May 2020 07:01:21 +0000 (07:01 +0000)]
Auto merge of #1425 - RalfJung:rustup, r=RalfJung

rustup

Make sure that https://github.com/rust-lang/rust/pull/72425 helped

4 years agorustup
Ralf Jung [Fri, 22 May 2020 07:00:32 +0000 (09:00 +0200)]
rustup

4 years agoAuto merge of #1424 - RalfJung:dlsym, r=RalfJung
bors [Thu, 21 May 2020 21:25:46 +0000 (21:25 +0000)]
Auto merge of #1424 - RalfJung:dlsym, r=RalfJung

prepare Dlsym system for dynamic symbols on Windows

This makes progress towards https://github.com/rust-lang/miri/issues/1059.

4 years agoalso pretend GetSystemTimePreciseAsFileTime does not exist
Ralf Jung [Thu, 21 May 2020 21:24:37 +0000 (23:24 +0200)]
also pretend GetSystemTimePreciseAsFileTime does not exist

4 years agoGetProcAddress: basic validation for hModule argument
Ralf Jung [Thu, 21 May 2020 21:06:31 +0000 (23:06 +0200)]
GetProcAddress: basic validation for hModule argument

4 years agodisentangle macos and linux dlsyms
Ralf Jung [Thu, 21 May 2020 21:00:59 +0000 (23:00 +0200)]
disentangle macos and linux dlsyms

4 years agoprepare Dlsym system for dynamic symbols on Windows
Ralf Jung [Thu, 21 May 2020 20:38:06 +0000 (22:38 +0200)]
prepare Dlsym system for dynamic symbols on Windows

4 years agoAuto merge of #1423 - RalfJung:rustup, r=RalfJung
bors [Thu, 21 May 2020 14:34:05 +0000 (14:34 +0000)]
Auto merge of #1423 - RalfJung:rustup, r=RalfJung

rustup

No changes needed -- but the next bump is blocked on https://github.com/rust-lang/rust/pull/72425.

4 years agorustup
Ralf Jung [Thu, 21 May 2020 13:43:26 +0000 (15:43 +0200)]
rustup

4 years agoAuto merge of #1420 - RalfJung:rustup, r=RalfJung
bors [Tue, 19 May 2020 22:02:05 +0000 (22:02 +0000)]
Auto merge of #1420 - RalfJung:rustup, r=RalfJung

rustup

adjust test for changed allocation strategy

4 years agoadjust for changed allocation strategy
Ralf Jung [Tue, 19 May 2020 22:00:35 +0000 (00:00 +0200)]
adjust for changed allocation strategy

4 years agoAuto merge of #1417 - RalfJung:libstd-rebuilds, r=RalfJung
bors [Sun, 17 May 2020 09:32:47 +0000 (09:32 +0000)]
Auto merge of #1417 - RalfJung:libstd-rebuilds, r=RalfJung

fix libstd rebuilds due to RUSTFLAGS changes

Until recently we were always overwriting `RUSTFLAGS`, but we stopped doing that when moving to `MIRI_BE_RUSTC`. That introduced the regression in https://github.com/rust-lang/miri/issues/1410. This fixes it.

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

4 years agofix libstd rebuilds due to RUSTFLAGS changes
Ralf Jung [Sun, 17 May 2020 09:20:05 +0000 (11:20 +0200)]
fix libstd rebuilds due to RUSTFLAGS changes

4 years agoAuto merge of #1415 - RalfJung:test-suite-filter, r=RalfJung
bors [Sun, 17 May 2020 08:13:13 +0000 (08:13 +0000)]
Auto merge of #1415 - RalfJung:test-suite-filter, r=RalfJung

add test suite filter example to README and 'cargo miri --help'

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

4 years agoadd test suite filter example to README and 'cargo miri --help'
Ralf Jung [Sun, 17 May 2020 08:08:45 +0000 (10:08 +0200)]
add test suite filter example to README and 'cargo miri --help'

4 years agoAuto merge of #1413 - RalfJung:catch_with_exit_code, r=RalfJung
bors [Sat, 16 May 2020 09:30:49 +0000 (09:30 +0000)]
Auto merge of #1413 - RalfJung:catch_with_exit_code, r=RalfJung

use new rustc_driver::catch_with_exit_code

4 years agouse new rustc_driver::catch_with_exit_code
Ralf Jung [Sat, 16 May 2020 09:30:11 +0000 (11:30 +0200)]
use new rustc_driver::catch_with_exit_code

4 years agoAuto merge of #1411 - RalfJung:ci, r=RalfJung
bors [Thu, 14 May 2020 17:22:04 +0000 (17:22 +0000)]
Auto merge of #1411 - RalfJung:ci, r=RalfJung

test Linux on macOS host

This accidentally got lost in https://github.com/rust-lang/miri/pull/1407

4 years agotest Linux on macOS host
Ralf Jung [Thu, 14 May 2020 17:21:04 +0000 (19:21 +0200)]
test Linux on macOS host

4 years agoAuto merge of #1407 - RalfJung:appveyor, r=RalfJung
bors [Mon, 11 May 2020 10:10:29 +0000 (10:10 +0000)]
Auto merge of #1407 - RalfJung:appveyor, r=RalfJung

Share CI code between Travis and AppVeyor

4 years agoalways lock on CI
Ralf Jung [Mon, 11 May 2020 09:19:26 +0000 (11:19 +0200)]
always lock on CI

4 years agoWindows CI: rely on stable cargo
Ralf Jung [Mon, 11 May 2020 08:59:01 +0000 (10:59 +0200)]
Windows CI: rely on stable cargo

4 years agofix python interpreter on Windows
Ralf Jung [Mon, 11 May 2020 08:40:25 +0000 (10:40 +0200)]
fix python interpreter on Windows

4 years agofix warnings for non-Unix builds
Ralf Jung [Mon, 11 May 2020 08:13:17 +0000 (10:13 +0200)]
fix warnings for non-Unix builds

4 years agoplay with bash on AppVeyor
Ralf Jung [Sun, 10 May 2020 21:49:10 +0000 (23:49 +0200)]
play with bash on AppVeyor

Also consistently order and format our two CI files

4 years agoAuto merge of #1409 - RalfJung:compiletest-no-rustc, r=RalfJung
bors [Mon, 11 May 2020 08:56:53 +0000 (08:56 +0000)]
Auto merge of #1409 - RalfJung:compiletest-no-rustc, r=RalfJung

compiletest: no need to call rustc here

This also means we do not need the `RUSTC_TEST_SUITE` env var any more.

4 years agofmt
Ralf Jung [Mon, 11 May 2020 08:54:21 +0000 (10:54 +0200)]
fmt

4 years agocompiletest: no need to call rustc here
Ralf Jung [Mon, 11 May 2020 08:37:35 +0000 (10:37 +0200)]
compiletest: no need to call rustc here

4 years agoAuto merge of #1408 - RalfJung:comments, r=RalfJung
bors [Sun, 10 May 2020 22:12:00 +0000 (22:12 +0000)]
Auto merge of #1408 - RalfJung:comments, r=RalfJung

fix some comments, and run_compiler return type

4 years agofix some comments, and run_compiler return type
Ralf Jung [Sun, 10 May 2020 22:07:59 +0000 (00:07 +0200)]
fix some comments, and run_compiler return type

4 years agoAuto merge of #1406 - RalfJung:miri-as-rustc, r=RalfJung
bors [Sun, 10 May 2020 17:00:14 +0000 (17:00 +0000)]
Auto merge of #1406 - RalfJung:miri-as-rustc, r=RalfJung

cargo-miri: never invoke rustc

Always go through 'MIRI_BE_RUSTC=1 miri' instead. This is based on @oli-obk's great idea to add a way to make Miri behave like rustc, which already helped us in https://github.com/rust-lang/miri/pull/1405. Now it means in `cargo-miri` we run *all* crates through the same binary, and use the env var to determine if we compile or interpret them. This makes sure the compiler is consistent.

The `rustc` binary of the current toolchain is now not used at all, only the `miri` binary is. In particular this means we can kill the sysroot consistency check. :)

4 years agowe do not need to set RUSTFLAGS for xargo any more as miri-as-rustc already uses...
Ralf Jung [Sun, 10 May 2020 16:56:38 +0000 (18:56 +0200)]
we do not need to set RUSTFLAGS for xargo any more as miri-as-rustc already uses these flags

4 years agofix dead link in README
Ralf Jung [Sun, 10 May 2020 16:52:21 +0000 (18:52 +0200)]
fix dead link in README

4 years agocargo-miri: never invoke rustc, always go through 'MIRI_BE_RUSTC=1 miri' instead
Ralf Jung [Sun, 10 May 2020 16:41:03 +0000 (18:41 +0200)]
cargo-miri: never invoke rustc, always go through 'MIRI_BE_RUSTC=1 miri' instead

4 years agoAuto merge of #1402 - rust-lang:alloc_map_unlock, r=RalfJung
bors [Sun, 10 May 2020 08:32:58 +0000 (08:32 +0000)]
Auto merge of #1402 - rust-lang:alloc_map_unlock, r=RalfJung

Update to rustc changes

changes needed once https://github.com/rust-lang/rust/pull/71508 gets merged

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

4 years agoUpdate to rustc changes
Oliver Scherer [Fri, 8 May 2020 11:56:10 +0000 (13:56 +0200)]
Update to rustc changes

4 years agoAuto merge of #1405 - RalfJung:stage-0, r=RalfJung
bors [Sat, 9 May 2020 12:09:15 +0000 (12:09 +0000)]
Auto merge of #1405 - RalfJung:stage-0, r=RalfJung

make Miri work in rustc bootstrap stage 0

Fixes https://github.com/rust-lang/rust/issues/52856

4 years agoTypo
Ralf Jung [Sat, 9 May 2020 12:08:58 +0000 (14:08 +0200)]
Typo

4 years agoadjust default sysroot when being rustc
Ralf Jung [Sat, 9 May 2020 11:20:34 +0000 (13:20 +0200)]
adjust default sysroot when being rustc

Also while at it, refactor how we pass the default Miri flags

4 years agomake Miri work in rustc bootstrap stage 0
Ralf Jung [Sat, 9 May 2020 10:24:30 +0000 (12:24 +0200)]
make Miri work in rustc bootstrap stage 0

4 years agoAuto merge of #1404 - RalfJung:cargo-miri-host-detect, r=RalfJung
bors [Sat, 9 May 2020 10:06:04 +0000 (10:06 +0000)]
Auto merge of #1404 - RalfJung:cargo-miri-host-detect, r=RalfJung

re-do cargo-miri host/target detection logic to match rustbuild

@oli-obk I think that's better than looking at `--emit` like we did before... what do you think?

4 years agoavoid env::var which requires valid UTF-8
Ralf Jung [Sat, 9 May 2020 09:58:18 +0000 (11:58 +0200)]
avoid env::var which requires valid UTF-8

4 years agomore comment
Ralf Jung [Sat, 9 May 2020 09:54:35 +0000 (11:54 +0200)]
more comment

4 years agoWording
Ralf Jung [Sat, 9 May 2020 09:53:24 +0000 (11:53 +0200)]
Wording

Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
4 years agocargo-miri: honor RUSTC env var
Ralf Jung [Sat, 9 May 2020 09:52:26 +0000 (11:52 +0200)]
cargo-miri: honor RUSTC env var

4 years agore-do cargo-miri host/target detection logic to match rustbuild
Ralf Jung [Sat, 9 May 2020 09:45:43 +0000 (11:45 +0200)]
re-do cargo-miri host/target detection logic to match rustbuild

4 years agoAuto merge of #1403 - RalfJung:rustup, r=RalfJung
bors [Sat, 9 May 2020 08:15:45 +0000 (08:15 +0000)]
Auto merge of #1403 - RalfJung:rustup, r=RalfJung

bump Rust, fix for renames

4 years agobump Rust, fix for renames
Ralf Jung [Sat, 9 May 2020 08:15:09 +0000 (10:15 +0200)]
bump Rust, fix for renames

4 years agoAuto merge of #1401 - RalfJung:cargo-miri-help, r=RalfJung
bors [Fri, 8 May 2020 07:56:38 +0000 (07:56 +0000)]
Auto merge of #1401 - RalfJung:cargo-miri-help, r=RalfJung

fix cargo-miri intercepting --help/--version arguments

With this, `cargo miri test -- -- --help` should behave as expected and pass `--help` to the test runner.

Thanks to @brson for the report.

4 years agofix cargo-miri intercepting --help/--version arguments
Ralf Jung [Fri, 8 May 2020 07:55:28 +0000 (09:55 +0200)]
fix cargo-miri intercepting --help/--version arguments

4 years agoAuto merge of #1400 - RalfJung:rustup, r=RalfJung
bors [Thu, 7 May 2020 21:59:57 +0000 (21:59 +0000)]
Auto merge of #1400 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Thu, 7 May 2020 21:59:26 +0000 (23:59 +0200)]
rustup

4 years agoAuto merge of #1397 - brson:tikv-2, r=RalfJung
bors [Thu, 7 May 2020 09:22:17 +0000 (09:22 +0000)]
Auto merge of #1397 - brson:tikv-2, r=RalfJung

Add two more TiKV bugs to trophy case

4 years agoadjust wording
Ralf Jung [Thu, 7 May 2020 09:21:31 +0000 (11:21 +0200)]
adjust wording

4 years agoAuto merge of #1398 - RalfJung:rustup, r=RalfJung
bors [Thu, 7 May 2020 06:42:59 +0000 (06:42 +0000)]
Auto merge of #1398 - RalfJung:rustup, r=RalfJung

rustup; fix error messages

4 years agorustup; fix error messages
Ralf Jung [Thu, 7 May 2020 06:38:52 +0000 (08:38 +0200)]
rustup; fix error messages

4 years agoAdd two more TiKV bugs to trophy case
Brian Anderson [Thu, 7 May 2020 02:42:12 +0000 (02:42 +0000)]
Add two more TiKV bugs to trophy case

4 years agoAuto merge of #1396 - RalfJung:float-cast-tests, r=RalfJung
bors [Wed, 6 May 2020 20:47:34 +0000 (20:47 +0000)]
Auto merge of #1396 - RalfJung:float-cast-tests, r=RalfJung

copy some float cast tests from rustc

The more the merrirer!

4 years agocopy some float cast tests from rustc
Ralf Jung [Wed, 6 May 2020 20:46:42 +0000 (22:46 +0200)]
copy some float cast tests from rustc

4 years agoAuto merge of #1394 - RalfJung:fs-mode, r=RalfJung
bors [Tue, 5 May 2020 14:49:48 +0000 (14:49 +0000)]
Auto merge of #1394 - RalfJung:fs-mode, r=RalfJung

fs shim: check that mode is default

4 years agofs shim: check that mode is default
Ralf Jung [Tue, 5 May 2020 14:49:01 +0000 (16:49 +0200)]
fs shim: check that mode is default

4 years agoAuto merge of #1393 - RalfJung:arg-count-cleanup, r=RalfJung
bors [Tue, 5 May 2020 10:21:46 +0000 (10:21 +0000)]
Auto merge of #1393 - RalfJung:arg-count-cleanup, r=RalfJung

Make sure we check argument count everywhere and argument size for non-stub shims

4 years agomake sure we check the size of all arguments
Ralf Jung [Tue, 5 May 2020 10:19:54 +0000 (12:19 +0200)]
make sure we check the size of all arguments

4 years agofix a comment now that we have concurrency
Ralf Jung [Tue, 5 May 2020 09:57:39 +0000 (11:57 +0200)]
fix a comment now that we have concurrency

4 years agomake sure we check argument count everywhere
Ralf Jung [Tue, 5 May 2020 09:57:08 +0000 (11:57 +0200)]
make sure we check argument count everywhere

4 years agodeduplicate FD extraction
Ralf Jung [Tue, 5 May 2020 09:44:33 +0000 (11:44 +0200)]
deduplicate FD extraction

4 years agoAuto merge of #1298 - toc-the-younger:check-arg-count, r=RalfJung
bors [Tue, 5 May 2020 09:08:10 +0000 (09:08 +0000)]
Auto merge of #1298 - toc-the-younger:check-arg-count, r=RalfJung

Check that shims are called with the correct number of arguments

Fixes #1272

Some shims don't use all their arguments, I've assumed they are being called in tests with the correct number of arguments here.

4 years agoCorrect the test.
Chase Albert [Tue, 5 May 2020 03:22:00 +0000 (23:22 -0400)]
Correct the test.

4 years agoAddress comments.
Chase Albert [Mon, 4 May 2020 18:24:22 +0000 (14:24 -0400)]
Address comments.

4 years agoTest for too many args.
Chase Albert [Thu, 30 Apr 2020 22:16:56 +0000 (18:16 -0400)]
Test for too many args.

4 years agoAddress consistency of naming for unused/merely validated arguments.
Chase Albert [Thu, 30 Apr 2020 21:30:27 +0000 (17:30 -0400)]
Address consistency of naming for unused/merely validated arguments.

4 years agoAdd a test for check_arg_count.
Chase Albert [Thu, 30 Apr 2020 21:30:21 +0000 (17:30 -0400)]
Add a test for check_arg_count.

4 years agoCheck that shims are called with the correct number of arguments
Chase Albert [Thu, 2 Apr 2020 21:09:20 +0000 (17:09 -0400)]
Check that shims are called with the correct number of arguments

4 years agoAuto merge of #1392 - RalfJung:win-lock-check, r=RalfJung
bors [Mon, 4 May 2020 07:45:35 +0000 (07:45 +0000)]
Auto merge of #1392 - RalfJung:win-lock-check, r=RalfJung

Windows lock primitives: check that we are truly single-threaded

Also rustup because why not.

4 years agorename single-threaded sync test
Ralf Jung [Mon, 4 May 2020 07:45:15 +0000 (09:45 +0200)]
rename single-threaded sync test

4 years agorustup
Ralf Jung [Mon, 4 May 2020 07:43:09 +0000 (09:43 +0200)]
rustup

4 years agoWindows lock primitives: check that we are truly sinle-threaded
Ralf Jung [Mon, 4 May 2020 07:37:40 +0000 (09:37 +0200)]
Windows lock primitives: check that we are truly sinle-threaded

4 years agoAuto merge of #1390 - RalfJung:conc, r=RalfJung
bors [Sun, 3 May 2020 11:23:47 +0000 (11:23 +0000)]
Auto merge of #1390 - RalfJung:conc, r=RalfJung

Make spin_loop yield, and a panicking thread test

@vakaras agreed it would make sense to make `spin_loop` yield, so this implements that.

Also add a test for a panic being raised in one thread, caught by the panic machinery, and then expose through the join handle. Miraculously, that just works. :)

4 years agofix setting thread name on macOS
Ralf Jung [Sun, 3 May 2020 11:22:56 +0000 (13:22 +0200)]
fix setting thread name on macOS

4 years agode-duplicate <unnamed> default thread name
Ralf Jung [Sun, 3 May 2020 10:56:38 +0000 (12:56 +0200)]
de-duplicate <unnamed> default thread name

4 years agoalso test panic from thread with name
Ralf Jung [Sun, 3 May 2020 10:51:48 +0000 (12:51 +0200)]
also test panic from thread with name

4 years agoalso test std::hint::spin_loop
Ralf Jung [Sun, 3 May 2020 10:40:15 +0000 (12:40 +0200)]
also test std::hint::spin_loop

4 years agotest panics in threads
Ralf Jung [Sun, 3 May 2020 10:25:07 +0000 (12:25 +0200)]
test panics in threads

4 years agoyield on x86 'pause' hint
Ralf Jung [Sun, 3 May 2020 10:24:57 +0000 (12:24 +0200)]
yield on x86 'pause' hint

4 years agoexplain what happens in a test
Ralf Jung [Sun, 3 May 2020 10:24:40 +0000 (12:24 +0200)]
explain what happens in a test

4 years agoAuto merge of #1387 - RalfJung:rustup, r=RalfJung
bors [Sun, 3 May 2020 10:10:57 +0000 (10:10 +0000)]
Auto merge of #1387 - RalfJung:rustup, r=RalfJung

bump Rust, fix warnings

4 years agobump Rust, fix warnings
Ralf Jung [Sun, 3 May 2020 10:10:24 +0000 (12:10 +0200)]
bump Rust, fix warnings