]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAuto merge of #921 - RalfJung:cargo-update, r=RalfJung
bors [Mon, 26 Aug 2019 17:39:34 +0000 (17:39 +0000)]
Auto merge of #921 - RalfJung:cargo-update, r=RalfJung

cargo update

4 years agocargo update
Ralf Jung [Mon, 26 Aug 2019 17:38:47 +0000 (19:38 +0200)]
cargo update

4 years agoAuto merge of #914 - christianpoveda:use-host-rng, r=RalfJung
bors [Fri, 23 Aug 2019 09:52:54 +0000 (09:52 +0000)]
Auto merge of #914 - christianpoveda:use-host-rng, r=RalfJung

Use host's rng when communication is enabled

This uses the host's randomness when the communication enabled flag is used. I am not sure about the error handling. I was thinking about fallbacking to `rand` if `getrandom` fails and also print something so the user knows miri is not using the host's rng because it failed. Let me know what you think.

Related issue: https://github.com/rust-lang/miri/issues/800.

r? @RalfJung @oli-obk

4 years agoAuto merge of #915 - RalfJung:rustup, r=RalfJung
bors [Wed, 21 Aug 2019 07:09:35 +0000 (07:09 +0000)]
Auto merge of #915 - RalfJung:rustup, r=RalfJung

bump Rust

4 years agobump Rust
Ralf Jung [Wed, 21 Aug 2019 07:07:27 +0000 (09:07 +0200)]
bump Rust

4 years agoUpdate -Zmiri-enable-communication docs
Christian Poveda [Tue, 20 Aug 2019 15:47:57 +0000 (10:47 -0500)]
Update -Zmiri-enable-communication docs

4 years agoUse err_unsup_format instead
Christian Poveda [Tue, 20 Aug 2019 15:47:38 +0000 (10:47 -0500)]
Use err_unsup_format instead

4 years agoAuto merge of #837 - RalfJung:arrays, r=RalfJung
bors [Tue, 20 Aug 2019 14:16:00 +0000 (14:16 +0000)]
Auto merge of #837 - RalfJung:arrays, r=RalfJung

test arrray try_from (interesting const generic usage)

Currently fails, see https://github.com/rust-lang/rust/pull/62435#issuecomment-511100890.

Blocked on https://github.com/rust-lang/rust/issues/62790.

4 years agobump Rust
Ralf Jung [Tue, 20 Aug 2019 14:11:11 +0000 (16:11 +0200)]
bump Rust

4 years agotest arrray try_from (interesting const generic usage)
Ralf Jung [Sat, 13 Jul 2019 08:27:50 +0000 (10:27 +0200)]
test arrray try_from (interesting const generic usage)

4 years agoUse host's rng when communication is enabled
Christian Poveda [Mon, 19 Aug 2019 15:43:09 +0000 (10:43 -0500)]
Use host's rng when communication is enabled

4 years agoAuto merge of #913 - RalfJung:uninit, r=RalfJung
bors [Sun, 18 Aug 2019 11:39:31 +0000 (11:39 +0000)]
Auto merge of #913 - RalfJung:uninit, r=RalfJung

test some new uninit APIs

4 years agotest some new uninit APIs
Ralf Jung [Sun, 18 Aug 2019 09:31:18 +0000 (11:31 +0200)]
test some new uninit APIs

4 years agoAuto merge of #912 - RalfJung:rustup, r=RalfJung
bors [Sun, 18 Aug 2019 09:16:40 +0000 (09:16 +0000)]
Auto merge of #912 - RalfJung:rustup, r=RalfJung

fix test failure due to my own lint

4 years agofix test failure due to my own lint
Ralf Jung [Sun, 18 Aug 2019 09:16:02 +0000 (11:16 +0200)]
fix test failure due to my own lint

4 years agoAuto merge of #911 - RalfJung:typed-op, r=RalfJung
bors [Sun, 18 Aug 2019 05:48:20 +0000 (05:48 +0000)]
Auto merge of #911 - RalfJung:typed-op, r=RalfJung

Adjust for typed binops

4 years agoupdate Rust
Ralf Jung [Sun, 18 Aug 2019 05:43:18 +0000 (07:43 +0200)]
update Rust

4 years agoadjust for typed binary/unary_op
Ralf Jung [Sat, 10 Aug 2019 19:19:25 +0000 (21:19 +0200)]
adjust for typed binary/unary_op

4 years agoAuto merge of #859 - RalfJung:cargo, r=RalfJung
bors [Thu, 15 Aug 2019 20:51:52 +0000 (20:51 +0000)]
Auto merge of #859 - RalfJung:cargo, r=RalfJung

travis: do not install cargo from master

This tests the rpath hackery in `./miri`.

4 years agorustup update
Ralf Jung [Thu, 15 Aug 2019 20:30:38 +0000 (22:30 +0200)]
rustup update

4 years agotravis: do not install cargo from master
Ralf Jung [Fri, 26 Jul 2019 08:21:31 +0000 (10:21 +0200)]
travis: do not install cargo from master

4 years agoAuto merge of #909 - RalfJung:deny-warn, r=oli-obk
bors [Thu, 15 Aug 2019 09:37:38 +0000 (09:37 +0000)]
Auto merge of #909 - RalfJung:deny-warn, r=oli-obk

deny warnings on CI

4 years agofix warning
Ralf Jung [Thu, 15 Aug 2019 09:24:04 +0000 (11:24 +0200)]
fix warning

4 years agodeny warnings on CI
Ralf Jung [Thu, 15 Aug 2019 09:14:45 +0000 (11:14 +0200)]
deny warnings on CI

4 years agoAuto merge of #863 - RalfJung:deref-checks, r=RalfJung
bors [Thu, 15 Aug 2019 09:11:08 +0000 (09:11 +0000)]
Auto merge of #863 - RalfJung:deref-checks, r=RalfJung

adjust tests for eager pointer checks on deref

The Miri side of https://github.com/rust-lang/rust/pull/63075.

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

4 years agobump Rust
Ralf Jung [Thu, 15 Aug 2019 09:06:27 +0000 (11:06 +0200)]
bump Rust

4 years agoremove dead code
Ralf Jung [Sun, 28 Jul 2019 16:08:39 +0000 (18:08 +0200)]
remove dead code

4 years agoadjust for fn rename
Ralf Jung [Sun, 28 Jul 2019 12:55:55 +0000 (14:55 +0200)]
adjust for fn rename

4 years agoadjust tests for eager pointer checks on deref
Ralf Jung [Sat, 27 Jul 2019 09:03:12 +0000 (11:03 +0200)]
adjust tests for eager pointer checks on deref

4 years agoAuto merge of #907 - christianpoveda:env-vars-shim, r=RalfJung
bors [Thu, 15 Aug 2019 08:47:20 +0000 (08:47 +0000)]
Auto merge of #907 - christianpoveda:env-vars-shim, r=RalfJung

Move env shims to its own module

r? @RalfJung

4 years agoDelegate writing to emulate_foreign_item
Christian Poveda [Wed, 14 Aug 2019 21:48:36 +0000 (16:48 -0500)]
Delegate writing to emulate_foreign_item

4 years agoMove env shims to its own module
Christian Poveda [Wed, 14 Aug 2019 20:44:37 +0000 (15:44 -0500)]
Move env shims to its own module

4 years agoAuto merge of #894 - christianpoveda:env-vars-communication, r=RalfJung
bors [Wed, 14 Aug 2019 18:58:06 +0000 (18:58 +0000)]
Auto merge of #894 - christianpoveda:env-vars-communication, r=RalfJung

Enable env communication

related issue: https://github.com/rust-lang/miri/issues/800. r? @RalfJung

4 years agoRemove tcx parameter for EnvVars::alloc_env_value
Christian Poveda [Wed, 14 Aug 2019 16:22:47 +0000 (11:22 -0500)]
Remove tcx parameter for EnvVars::alloc_env_value

4 years agoRename export for shims::env::EnvVars
Christian Poveda [Wed, 14 Aug 2019 15:24:35 +0000 (10:24 -0500)]
Rename export for shims::env::EnvVars

4 years agoTest env isolation
Christian Poveda [Tue, 13 Aug 2019 21:17:53 +0000 (16:17 -0500)]
Test env isolation

4 years agoReorganize shims::env::EnvVars
Christian Poveda [Tue, 13 Aug 2019 21:17:41 +0000 (16:17 -0500)]
Reorganize shims::env::EnvVars

4 years agoMove test env var to test_runner
Christian Poveda [Tue, 13 Aug 2019 17:10:24 +0000 (12:10 -0500)]
Move test env var to test_runner

4 years agoWrap hashmap for env vars in its own type
Christian Poveda [Tue, 13 Aug 2019 16:34:43 +0000 (11:34 -0500)]
Wrap hashmap for env vars in its own type

4 years agoAuto merge of #906 - RalfJung:tls, r=RalfJung
bors [Tue, 13 Aug 2019 11:32:25 +0000 (11:32 +0000)]
Auto merge of #906 - RalfJung:tls, r=RalfJung

make TLS state private to TLS module

4 years agomake TLS state private to TLS module
Ralf Jung [Tue, 13 Aug 2019 07:29:01 +0000 (09:29 +0200)]
make TLS state private to TLS module

4 years agoAuto merge of #904 - RalfJung:rustup, r=RalfJung
bors [Mon, 12 Aug 2019 06:26:46 +0000 (06:26 +0000)]
Auto merge of #904 - RalfJung:rustup, r=RalfJung

it's called RUSTC_CTFE_BACKTRACE now

4 years agoit's called RUSTC_CTFE_BACKTRACE now
Ralf Jung [Mon, 12 Aug 2019 06:25:31 +0000 (08:25 +0200)]
it's called RUSTC_CTFE_BACKTRACE now

4 years agoAuto merge of #902 - RalfJung:ldexp, r=RalfJung
bors [Sat, 10 Aug 2019 09:34:31 +0000 (09:34 +0000)]
Auto merge of #902 - RalfJung:ldexp, r=RalfJung

use apfloat for ldexp

4 years agotypo
Ralf Jung [Sat, 10 Aug 2019 09:33:33 +0000 (11:33 +0200)]
typo

4 years agoldexp: test overflow behavior
Ralf Jung [Sat, 10 Aug 2019 09:31:20 +0000 (11:31 +0200)]
ldexp: test overflow behavior

4 years agoclamp ldexp exponent to i16
Ralf Jung [Sat, 10 Aug 2019 09:27:27 +0000 (11:27 +0200)]
clamp ldexp exponent to i16

4 years agoalso support scalbn itself
Ralf Jung [Sat, 10 Aug 2019 09:22:32 +0000 (11:22 +0200)]
also support scalbn itself

4 years agoAuto merge of #899 - RalfJung:generators, r=RalfJung
bors [Fri, 9 Aug 2019 20:04:20 +0000 (20:04 +0000)]
Auto merge of #899 - RalfJung:generators, r=RalfJung

More generator tests

Cc @tmandry -- do these look reasonable for checking the new "partial init" case that was discovered?

4 years agouse apfloat for ldexp
Ralf Jung [Fri, 9 Aug 2019 17:53:42 +0000 (19:53 +0200)]
use apfloat for ldexp

4 years agoAuto merge of #901 - RalfJung:protected, r=RalfJung
bors [Fri, 9 Aug 2019 17:23:17 +0000 (17:23 +0000)]
Auto merge of #901 - RalfJung:protected, r=RalfJung

test that even &Cell must be dereferencable

Behavior here changed (deliberately) with Stacked Borrows 2; just making sure we notice when/if it ever changes again.

4 years agotest that even &Cell must be dereferencable
Ralf Jung [Fri, 9 Aug 2019 17:21:41 +0000 (19:21 +0200)]
test that even &Cell must be dereferencable

4 years agoAuto merge of #900 - RalfJung:miri, r=RalfJung
bors [Fri, 9 Aug 2019 11:44:28 +0000 (11:44 +0000)]
Auto merge of #900 - RalfJung:miri, r=RalfJung

local rustc builds now also need a sysroot built

With the test-miri flag gone, the libstd of local builds isn't good enough for Miri any more.

4 years agolocal rustc builds now also need a sysroot built
Ralf Jung [Fri, 9 Aug 2019 09:29:10 +0000 (11:29 +0200)]
local rustc builds now also need a sysroot built

With the test-miri flag gone, the libstd of local builds isn't good enough for Miri any more.

4 years agobump Rust version
Ralf Jung [Fri, 9 Aug 2019 09:03:45 +0000 (11:03 +0200)]
bump Rust version

4 years agoadd async fn with partial initialization
Ralf Jung [Fri, 9 Aug 2019 09:01:11 +0000 (11:01 +0200)]
add async fn with partial initialization

4 years agosimplify async-fn tests
Ralf Jung [Fri, 9 Aug 2019 08:26:48 +0000 (10:26 +0200)]
simplify async-fn tests

4 years agotest generator that yields during initialization of struct with uninhabited field
Ralf Jung [Fri, 9 Aug 2019 08:32:53 +0000 (10:32 +0200)]
test generator that yields during initialization of struct with uninhabited field

4 years agoAuto merge of #896 - tmandry:add-generator-uninhabited-test, r=RalfJung
bors [Fri, 9 Aug 2019 08:20:00 +0000 (08:20 +0000)]
Auto merge of #896 - tmandry:add-generator-uninhabited-test, r=RalfJung

Add generator, async tests with uninhabited saved local

See discussion in https://github.com/rust-lang/rust/pull/63035.

4 years agoAuto merge of #898 - christianpoveda:master, r=RalfJung
bors [Thu, 8 Aug 2019 21:10:09 +0000 (21:10 +0000)]
Auto merge of #898 - christianpoveda:master, r=RalfJung

Use ldexp from cmath instead

Closes https://github.com/rust-lang/miri/issues/821
r? @RalfJung

4 years agoUse ldexp from cmath instead
Christian Poveda [Thu, 8 Aug 2019 20:22:34 +0000 (15:22 -0500)]
Use ldexp from cmath instead

4 years agoAuto merge of #871 - RalfJung:miri-rustc-cleanup, r=RalfJung
bors [Thu, 8 Aug 2019 20:43:47 +0000 (20:43 +0000)]
Auto merge of #871 - RalfJung:miri-rustc-cleanup, r=RalfJung

Cleanup after rustc bootstrap tests Miri with a separate libstd

Should only be merged after https://github.com/rust-lang/rust/pull/63162 got the green light.

4 years agoAuto merge of #897 - RalfJung:xargo, r=RalfJung
bors [Thu, 8 Aug 2019 17:35:17 +0000 (17:35 +0000)]
Auto merge of #897 - RalfJung:xargo, r=RalfJung

bump xargo version

Rust bootstrap needs it for the CARGO env var handling.

4 years agobump xargo version
Ralf Jung [Thu, 8 Aug 2019 17:34:23 +0000 (19:34 +0200)]
bump xargo version

4 years agoAdd generator, async tests with uninhabited saved local
Tyler Mandry [Wed, 7 Aug 2019 23:39:54 +0000 (16:39 -0700)]
Add generator, async tests with uninhabited saved local

4 years agoFix formatting
Christian Poveda [Wed, 7 Aug 2019 14:10:39 +0000 (09:10 -0500)]
Fix formatting

4 years agoAdd env var test variable in compiletest
Christian Poveda [Wed, 7 Aug 2019 14:09:13 +0000 (09:09 -0500)]
Add env var test variable in compiletest

4 years agoAuto merge of #895 - RalfJung:uninit, r=oli-obk
bors [Wed, 7 Aug 2019 12:42:19 +0000 (12:42 +0000)]
Auto merge of #895 - RalfJung:uninit, r=oli-obk

Revert "uninit intrinsic is gone"

This reverts commit fa290f1a481b0f98ed1de06206e643af8e04acd5.
Uninit is [being reinstated](https://github.com/rust-lang/rust/pull/63343) because it breaks some broken code.

4 years agoRevert "uninit intrinsic is gone"
Ralf Jung [Wed, 7 Aug 2019 08:24:27 +0000 (10:24 +0200)]
Revert "uninit intrinsic is gone"

This reverts commit fa290f1a481b0f98ed1de06206e643af8e04acd5.
Uninit is being reinstated because it breaks some broken code.

4 years agoAdd support for env communication
Christian Poveda [Tue, 6 Aug 2019 22:40:07 +0000 (17:40 -0500)]
Add support for env communication

4 years agoUpdate readme
Christian Poveda [Tue, 6 Aug 2019 20:47:57 +0000 (15:47 -0500)]
Update readme

4 years agoAuto merge of #893 - RalfJung:rustup, r=RalfJung
bors [Tue, 6 Aug 2019 20:46:22 +0000 (20:46 +0000)]
Auto merge of #893 - RalfJung:rustup, r=RalfJung

mention that we get the toolchain right

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

Cc @shepmaster

4 years agoAdd communicate field to evaluator and fix formatting
Christian Poveda [Tue, 6 Aug 2019 20:32:57 +0000 (15:32 -0500)]
Add communicate field to evaluator and fix formatting

4 years agoAdd flag to enable communication
Christian Poveda [Tue, 6 Aug 2019 15:28:50 +0000 (10:28 -0500)]
Add flag to enable communication

4 years agomention that we get the toolchain right
Ralf Jung [Tue, 6 Aug 2019 18:52:09 +0000 (20:52 +0200)]
mention that we get the toolchain right

4 years agoAuto merge of #891 - RalfJung:rustup, r=RalfJung
bors [Tue, 6 Aug 2019 10:51:59 +0000 (10:51 +0000)]
Auto merge of #891 - RalfJung:rustup, r=RalfJung

test-cargo-miri: cargo update

With both https://github.com/rust-random/getrandom/pull/74 and https://github.com/rust-lang/miri/pull/884 having landed, this should work now.

4 years agotest-cargo-miri: cargo update
Ralf Jung [Tue, 6 Aug 2019 10:50:22 +0000 (12:50 +0200)]
test-cargo-miri: cargo update

4 years agoAuto merge of #890 - RalfJung:xargo, r=RalfJung
bors [Tue, 6 Aug 2019 06:28:52 +0000 (06:28 +0000)]
Auto merge of #890 - RalfJung:xargo, r=RalfJung

go back to released xargo (the experiment is done)

The experiment in https://github.com/rust-lang/rust/pull/63162 was successful, now we have to wait for a new xargo release.

4 years agogo back to released xargo (the experiment is done)
Ralf Jung [Tue, 6 Aug 2019 06:05:32 +0000 (08:05 +0200)]
go back to released xargo (the experiment is done)

4 years agoAuto merge of #889 - RalfJung:rustup, r=RalfJung
bors [Mon, 5 Aug 2019 13:50:50 +0000 (13:50 +0000)]
Auto merge of #889 - RalfJung:rustup, r=RalfJung

rustup

4 years agorustup
Ralf Jung [Mon, 5 Aug 2019 13:49:19 +0000 (15:49 +0200)]
rustup

4 years agoAuto merge of #888 - RalfJung:rustup, r=RalfJung
bors [Mon, 5 Aug 2019 08:54:42 +0000 (08:54 +0000)]
Auto merge of #888 - RalfJung:rustup, r=RalfJung

fix for latest rustc

4 years agofix for latest rustc
Ralf Jung [Mon, 5 Aug 2019 08:45:48 +0000 (10:45 +0200)]
fix for latest rustc

4 years agoAuto merge of #886 - Aaron1011:shim/getrandom, r=RalfJung
bors [Sun, 4 Aug 2019 21:02:08 +0000 (21:02 +0000)]
Auto merge of #886 - Aaron1011:shim/getrandom, r=RalfJung

Shim 'libc::getrandom' in addition to 'libc::syscall(libc::SYS_getrandom)'

4 years agoApply more formatting fixes
Aaron Hill [Sun, 4 Aug 2019 20:57:17 +0000 (16:57 -0400)]
Apply more formatting fixes

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoImprove formatting
Aaron Hill [Sun, 4 Aug 2019 20:44:32 +0000 (16:44 -0400)]
Improve formatting

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoIgnore other platforms instead of using only-linux
Aaron Hill [Sun, 4 Aug 2019 20:40:30 +0000 (16:40 -0400)]
Ignore other platforms instead of using only-linux

4 years agoFix identation
Aaron Hill [Sun, 4 Aug 2019 20:30:33 +0000 (16:30 -0400)]
Fix identation

4 years agoTest 'libc::getrandom' as well
Aaron Hill [Sun, 4 Aug 2019 20:11:52 +0000 (16:11 -0400)]
Test 'libc::getrandom' as well

4 years agoAdd trailing comma
Aaron Hill [Sun, 4 Aug 2019 19:59:20 +0000 (15:59 -0400)]
Add trailing comma

4 years agoAdd test
Aaron Hill [Sun, 4 Aug 2019 19:53:49 +0000 (15:53 -0400)]
Add test

4 years agoCleanup formatting
Aaron Hill [Sun, 4 Aug 2019 19:53:38 +0000 (15:53 -0400)]
Cleanup formatting

4 years agoShim 'libc::getrandom' in addition to 'libc::syscall(libc::SYS_getrandom)'
Aaron Hill [Sun, 4 Aug 2019 14:50:38 +0000 (10:50 -0400)]
Shim 'libc::getrandom' in addition to 'libc::syscall(libc::SYS_getrandom)'

4 years agoAuto merge of #885 - Aaron1011:fix/f-round, r=RalfJung
bors [Sun, 4 Aug 2019 20:12:02 +0000 (20:12 +0000)]
Auto merge of #885 - Aaron1011:fix/f-round, r=RalfJung

Add misssing 'roundf32' and 'roundf64' intrinsics

4 years agoAdd test for f32::round and f64::round
Aaron Hill [Sun, 4 Aug 2019 19:57:00 +0000 (15:57 -0400)]
Add test for f32::round and f64::round

4 years agoAuto merge of #884 - Aaron1011:fix/linux-getrandom, r=RalfJung
bors [Sun, 4 Aug 2019 19:50:41 +0000 (19:50 +0000)]
Auto merge of #884 - Aaron1011:fix/linux-getrandom, r=RalfJung

Allowing passing a null pointer to getrandom() when length is 0

The Linux kernel will handle a null pointer passed to 'getrandom'
without error, as long as the length is also 0. The `getrandom` crate
relies on this behavior: https://github.com/rust-random/getrandom/blob/ab44edf3c7af721a00e22648b6c811ccb559ba81/src/linux_android.rs#L26

Since it works fine on the actual kernel (and should continue to, due to
the kernel's backwards-compatibility guarantees), Miri should support it
as well.

4 years agoReplace match with expect()
Aaron Hill [Sun, 4 Aug 2019 14:17:39 +0000 (10:17 -0400)]
Replace match with expect()

4 years agoAuto merge of #887 - RalfJung:readme, r=RalfJung
bors [Sun, 4 Aug 2019 17:37:00 +0000 (17:37 +0000)]
Auto merge of #887 - RalfJung:readme, r=RalfJung

README: add getrandom bug

4 years agoAdd misssing 'roundf32' and 'roundf64' intrinsics
Aaron Hill [Sun, 4 Aug 2019 14:25:10 +0000 (10:25 -0400)]
Add misssing 'roundf32' and 'roundf64' intrinsics

4 years agoAdd semicolon
Aaron Hill [Sun, 4 Aug 2019 14:13:29 +0000 (10:13 -0400)]
Add semicolon

Co-Authored-By: Ralf Jung <post@ralfj.de>