]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agosync AppVeyor CI script with Travis
Ralf Jung [Sat, 28 Sep 2019 15:36:20 +0000 (11:36 -0400)]
sync AppVeyor CI script with Travis

4 years agoAuto merge of #965 - RalfJung:rustup, r=RalfJung
bors [Sat, 28 Sep 2019 15:00:30 +0000 (15:00 +0000)]
Auto merge of #965 - RalfJung:rustup, r=RalfJung

rustup

4 years agofix miri-rustc-tests
Ralf Jung [Sat, 28 Sep 2019 15:00:05 +0000 (11:00 -0400)]
fix miri-rustc-tests

4 years agorustup
Ralf Jung [Sat, 28 Sep 2019 14:37:48 +0000 (10:37 -0400)]
rustup

4 years agoAuto merge of #963 - rust-lang:rustup, r=RalfJung
bors [Sat, 28 Sep 2019 04:57:33 +0000 (04:57 +0000)]
Auto merge of #963 - rust-lang:rustup, r=RalfJung

Update to latest nightly

4 years agomake sure we use the stable toolchain, no matter the cache
Ralf Jung [Fri, 27 Sep 2019 14:54:39 +0000 (10:54 -0400)]
make sure we use the stable toolchain, no matter the cache

4 years agoshow cargo version
Ralf Jung [Fri, 27 Sep 2019 14:23:26 +0000 (10:23 -0400)]
show cargo version

4 years agoRustup to `sty` -> `kind` changes
Oliver Scherer [Thu, 26 Sep 2019 09:40:13 +0000 (11:40 +0200)]
Rustup to `sty` -> `kind` changes

4 years agoUpdate to latest nightly
Oliver Scherer [Thu, 26 Sep 2019 07:42:03 +0000 (09:42 +0200)]
Update to latest nightly

4 years agoAuto merge of #960 - christianpoveda:chdir-shim, r=oli-obk
bors [Tue, 24 Sep 2019 22:39:55 +0000 (22:39 +0000)]
Auto merge of #960 - christianpoveda:chdir-shim, r=oli-obk

Add `chdir` shim

r? @oli-obk

4 years agoCheck that `chdir` fails for non-utf8 paths
Christian Poveda [Tue, 24 Sep 2019 20:53:14 +0000 (15:53 -0500)]
Check that `chdir` fails for non-utf8 paths

4 years agoAdd `chdir` shim
Christian Poveda [Tue, 24 Sep 2019 19:42:38 +0000 (14:42 -0500)]
Add `chdir` shim

4 years agoAuto merge of #958 - christianpoveda:getcwd-shim, r=oli-obk
bors [Tue, 24 Sep 2019 16:22:21 +0000 (16:22 +0000)]
Auto merge of #958 - christianpoveda:getcwd-shim, r=oli-obk

Add getcwd shim

4 years agoFix comments
Christian Poveda [Tue, 24 Sep 2019 14:29:16 +0000 (09:29 -0500)]
Fix comments

4 years agofetch ERANGE value from libc
Christian Poveda [Fri, 20 Sep 2019 15:25:43 +0000 (10:25 -0500)]
fetch ERANGE value from libc

4 years agoSet errno when getcwd fails
Christian Poveda [Fri, 20 Sep 2019 08:30:55 +0000 (03:30 -0500)]
Set errno when getcwd fails

4 years agoAvoid writing more bytes than necessary
Christian Poveda [Fri, 20 Sep 2019 07:13:48 +0000 (02:13 -0500)]
Avoid writing more bytes than necessary

4 years agoAuto merge of #903 - RalfJung:discriminant, r=RalfJung
bors [Fri, 20 Sep 2019 06:56:18 +0000 (06:56 +0000)]
Auto merge of #903 - RalfJung:discriminant, r=RalfJung

fix discriminant handling

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

4 years agobump Rust
Ralf Jung [Fri, 20 Sep 2019 06:55:12 +0000 (08:55 +0200)]
bump Rust

4 years agoadd another test case
Ralf Jung [Mon, 16 Sep 2019 13:04:42 +0000 (15:04 +0200)]
add another test case

4 years agoerr on all-but-B, not just on C
Ralf Jung [Sat, 10 Aug 2019 16:38:41 +0000 (18:38 +0200)]
err on all-but-B, not just on C

4 years agotest for niche enum discriminant computation that overflows
Ralf Jung [Sat, 10 Aug 2019 13:10:11 +0000 (15:10 +0200)]
test for niche enum discriminant computation that overflows

4 years agoOnly use getcwd without isolation
Christian Poveda [Thu, 19 Sep 2019 15:32:18 +0000 (10:32 -0500)]
Only use getcwd without isolation

4 years agoCheck that getcwd does not error
Christian Poveda [Wed, 18 Sep 2019 21:46:41 +0000 (16:46 -0500)]
Check that getcwd does not error

4 years agoAdd getcwd shim
Christian Poveda [Wed, 18 Sep 2019 21:10:13 +0000 (16:10 -0500)]
Add getcwd shim

4 years agoAuto merge of #956 - rust-lang:rustup-retag, r=RalfJung
bors [Wed, 18 Sep 2019 09:22:58 +0000 (09:22 +0000)]
Auto merge of #956 - rust-lang:rustup-retag, r=RalfJung

rustup for retag rename

This is the Miri side of https://github.com/rust-lang/rust/pull/64503. Do not force-push!

4 years agobump Rust version
Ralf Jung [Wed, 18 Sep 2019 09:22:28 +0000 (11:22 +0200)]
bump Rust version

4 years agoMerge remote-tracking branch 'origin/master' into rustup-retag
Ralf Jung [Wed, 18 Sep 2019 09:22:12 +0000 (11:22 +0200)]
Merge remote-tracking branch 'origin/master' into rustup-retag

4 years agorustup
Ralf Jung [Tue, 17 Sep 2019 10:30:14 +0000 (12:30 +0200)]
rustup

4 years agoAuto merge of #955 - RalfJung:rustup, r=RalfJung
bors [Mon, 16 Sep 2019 20:26:13 +0000 (20:26 +0000)]
Auto merge of #955 - RalfJung:rustup, r=RalfJung

remove libstd backtrace work-around

4 years agoremove libstd backtrace work-around
Ralf Jung [Mon, 16 Sep 2019 20:22:54 +0000 (22:22 +0200)]
remove libstd backtrace work-around

4 years agoAuto merge of #945 - christianpoveda:ptr-align-offset, r=oli-obk
bors [Mon, 16 Sep 2019 15:52:22 +0000 (15:52 +0000)]
Auto merge of #945 - christianpoveda:ptr-align-offset, r=oli-obk

Use libcore's align_offset

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

4 years agoUse force_ptr instead of assert_ptr
Christian Poveda [Mon, 16 Sep 2019 15:16:06 +0000 (10:16 -0500)]
Use force_ptr instead of assert_ptr

4 years agoAuto merge of #954 - RalfJung:rustup, r=RalfJung
bors [Mon, 16 Sep 2019 07:32:21 +0000 (07:32 +0000)]
Auto merge of #954 - RalfJung:rustup, r=RalfJung

update for rustc changes

https://github.com/rust-lang/rust/pull/60584 changed some stuff around ICEs. What I am not sure about is whether we should call `install_ice_hook` or not. @jonas-schievink @oli-obk any advice?

4 years agoinstall ICE hook
Ralf Jung [Mon, 16 Sep 2019 07:31:56 +0000 (09:31 +0200)]
install ICE hook

4 years agoupdate for rustc changes
Ralf Jung [Sun, 15 Sep 2019 21:27:58 +0000 (23:27 +0200)]
update for rustc changes

4 years agoAuto merge of #951 - spastorino:place-2-0, r=RalfJung
bors [Sun, 15 Sep 2019 11:24:06 +0000 (11:24 +0000)]
Auto merge of #951 - spastorino:place-2-0, r=RalfJung

Place projection field is now Box<[PlaceElem<'tcx>]>

Closes https://github.com/rust-lang/rust/issues/64441

4 years agoPlace projection field is now Box<[PlaceElem<'tcx>]>
Santiago Pastorino [Sat, 14 Sep 2019 04:01:37 +0000 (01:01 -0300)]
Place projection field is now Box<[PlaceElem<'tcx>]>

4 years agoAuto merge of #953 - RalfJung:contributing, r=oli-obk
bors [Sat, 14 Sep 2019 12:43:39 +0000 (12:43 +0000)]
Auto merge of #953 - RalfJung:contributing, r=oli-obk

add CONTRIBUTING guide

4 years agoAuto merge of #949 - RalfJung:ask-to-run, r=RalfJung
bors [Sat, 14 Sep 2019 11:44:01 +0000 (11:44 +0000)]
Auto merge of #949 - RalfJung:ask-to-run, r=RalfJung

factor ask-to-run-command into helper function

4 years agoadd CONTRIBUTING guide
Ralf Jung [Sat, 14 Sep 2019 11:40:37 +0000 (13:40 +0200)]
add CONTRIBUTING guide

4 years agoAuto merge of #952 - RalfJung:rustup, r=RalfJung
bors [Sat, 14 Sep 2019 11:06:44 +0000 (11:06 +0000)]
Auto merge of #952 - RalfJung:rustup, r=RalfJung

temporarily enable backtrace feature

This is a temporary hack to work around https://github.com/rust-lang/rust/issues/64410.

4 years agotemporarily enable backtrace feature
Ralf Jung [Sat, 14 Sep 2019 11:05:39 +0000 (13:05 +0200)]
temporarily enable backtrace feature

4 years agoAuto merge of #948 - mati865:patch-1, r=RalfJung
bors [Fri, 13 Sep 2019 08:42:57 +0000 (08:42 +0000)]
Auto merge of #948 - mati865:patch-1, r=RalfJung

Bump byteorder and remove no-op feature

It's automatically detected: https://github.com/BurntSushi/byteorder/commit/5b3ffeeed2d04ec5051336ea2c6e6d36abc94581

With this PR `byteorder` can be from [rustc-workspace-hack](https://github.com/rust-lang/rust/blob/f71826e8f26fd4fa331574caa462960db8ed961a/src/tools/rustc-workspace-hack/Cargo.toml#L74).

4 years agofactor ask-to-run-command into helper function
Ralf Jung [Fri, 13 Sep 2019 08:39:36 +0000 (10:39 +0200)]
factor ask-to-run-command into helper function

4 years agoUse str::from_utf8 instead
Christian Poveda [Thu, 12 Sep 2019 14:25:39 +0000 (09:25 -0500)]
Use str::from_utf8 instead

4 years agoAuto merge of #947 - RalfJung:rand, r=oli-obk
bors [Thu, 12 Sep 2019 11:48:17 +0000 (11:48 +0000)]
Auto merge of #947 - RalfJung:rand, r=oli-obk

bump rand dependency

4 years agoBump byteorder and remove no-op feature
Mateusz Mikuła [Thu, 12 Sep 2019 10:45:00 +0000 (12:45 +0200)]
Bump byteorder and remove no-op feature

4 years agoAdd test for u8 align_offset
Christian Poveda [Wed, 11 Sep 2019 17:08:42 +0000 (12:08 -0500)]
Add test for u8 align_offset

4 years agobump rand dependency
Ralf Jung [Wed, 11 Sep 2019 16:33:48 +0000 (18:33 +0200)]
bump rand dependency

4 years agoUse libcore's align_offset
Christian Poveda [Wed, 11 Sep 2019 16:09:56 +0000 (11:09 -0500)]
Use libcore's align_offset

4 years agoAuto merge of #946 - RalfJung:rustup, r=oli-obk
bors [Wed, 11 Sep 2019 15:24:49 +0000 (15:24 +0000)]
Auto merge of #946 - RalfJung:rustup, r=oli-obk

fix async test

Test got broken by https://github.com/rust-lang/rust/pull/64292.

4 years agofix async test
Ralf Jung [Wed, 11 Sep 2019 15:13:32 +0000 (17:13 +0200)]
fix async test

4 years agoAuto merge of #944 - rust-lang:rustup, r=oli-obk
bors [Mon, 9 Sep 2019 11:10:42 +0000 (11:10 +0000)]
Auto merge of #944 - rust-lang:rustup, r=oli-obk

Rustup to 1.39.0-nightly (1e869133b 2019-09-09)

4 years agoRustup to 1.39.0-nightly (1e869133b 2019-09-09)
Oliver Scherer [Mon, 9 Sep 2019 11:00:20 +0000 (13:00 +0200)]
Rustup to 1.39.0-nightly (1e869133b 2019-09-09)

4 years agoAuto merge of #943 - wesleywiser:turn_on_tests_again, r=RalfJung
bors [Mon, 9 Sep 2019 10:45:45 +0000 (10:45 +0000)]
Auto merge of #943 - wesleywiser:turn_on_tests_again, r=RalfJung

Re-enable run-pass tests with optimizations enabled

4 years agoRe-enable run-pass tests with optimizations enabled
Wesley Wiser [Mon, 9 Sep 2019 10:32:02 +0000 (06:32 -0400)]
Re-enable run-pass tests with optimizations enabled

4 years agoAuto merge of #942 - rust-lang:rustup, r=oli-obk
bors [Sun, 8 Sep 2019 13:29:49 +0000 (13:29 +0000)]
Auto merge of #942 - rust-lang:rustup, r=oli-obk

Rustup

4 years agoUpdate latest working rust version id
Oliver Scherer [Sun, 8 Sep 2019 10:28:31 +0000 (12:28 +0200)]
Update latest working rust version id

4 years agoRustup
Oliver Scherer [Thu, 5 Sep 2019 16:17:58 +0000 (18:17 +0200)]
Rustup

4 years agoAuto merge of #941 - RalfJung:rustup, r=RalfJung
bors [Mon, 2 Sep 2019 14:14:18 +0000 (14:14 +0000)]
Auto merge of #941 - RalfJung:rustup, r=RalfJung

rustup

Just to test if this still works.

4 years agorustup
Ralf Jung [Mon, 2 Sep 2019 14:13:35 +0000 (16:13 +0200)]
rustup

4 years agoAuto merge of #929 - RalfJung:slice-too-big, r=RalfJung
bors [Sat, 31 Aug 2019 06:45:28 +0000 (06:45 +0000)]
Auto merge of #929 - RalfJung:slice-too-big, r=RalfJung

test too big slice

Test for an upcoming rustc PR.

4 years agorustup
Ralf Jung [Sat, 31 Aug 2019 06:44:47 +0000 (08:44 +0200)]
rustup

4 years agotest too big slice
Ralf Jung [Tue, 27 Aug 2019 16:36:43 +0000 (18:36 +0200)]
test too big slice

4 years agoAuto merge of #938 - christianpoveda:clean-env-alloc, r=RalfJung
bors [Thu, 29 Aug 2019 22:10:11 +0000 (22:10 +0000)]
Auto merge of #938 - christianpoveda:clean-env-alloc, r=RalfJung

Rewrite alloc_env_var

Just to simplify the logic behind `shims::env`

4 years agoRewrite alloc_env_var
Christian Poveda [Thu, 29 Aug 2019 20:03:10 +0000 (15:03 -0500)]
Rewrite alloc_env_var

4 years agoAuto merge of #937 - christianpoveda:fix-isolation, r=RalfJung
bors [Thu, 29 Aug 2019 15:46:22 +0000 (15:46 +0000)]
Auto merge of #937 - christianpoveda:fix-isolation, r=RalfJung

Fix cargo-miri with disabled isolation

Related issue: https://github.com/rust-lang/miri/issues/933
I'm not sure if that's the better place to blacklist `TERM`, @RalfJung let me know if there is a less hacky place to put it.

4 years agoAuto merge of #919 - RalfJung:wide-raw, r=RalfJung
bors [Thu, 29 Aug 2019 15:20:36 +0000 (15:20 +0000)]
Auto merge of #919 - RalfJung:wide-raw, r=RalfJung

test for invalid wide raw ptr

This is the Miri side of https://github.com/rust-lang/rust/pull/63880.

4 years agobump Rust
Ralf Jung [Thu, 29 Aug 2019 15:20:14 +0000 (17:20 +0200)]
bump Rust

4 years agotest for invalid wide raw ptr
Ralf Jung [Sun, 25 Aug 2019 12:56:38 +0000 (14:56 +0200)]
test for invalid wide raw ptr

4 years agoAdd cargo-miri test for no isolation
Christian Poveda [Thu, 29 Aug 2019 09:09:34 +0000 (04:09 -0500)]
Add cargo-miri test for no isolation

4 years agoExclude TERM env var by default
Christian Poveda [Thu, 29 Aug 2019 09:07:20 +0000 (04:07 -0500)]
Exclude TERM env var by default

4 years agoAuto merge of #935 - christianpoveda:blacklist-env-vars, r=RalfJung
bors [Thu, 29 Aug 2019 08:09:57 +0000 (08:09 +0000)]
Auto merge of #935 - christianpoveda:blacklist-env-vars, r=RalfJung

Exclude environment variables from host communication

related issue: #933

r? @RalfJung

4 years agoSmall corrections
Christian Poveda [Thu, 29 Aug 2019 06:26:14 +0000 (01:26 -0500)]
Small corrections

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoAuto merge of #931 - RalfJung:retag-makes-my-head-hurt, r=RalfJung
bors [Thu, 29 Aug 2019 06:40:23 +0000 (06:40 +0000)]
Auto merge of #931 - RalfJung:retag-makes-my-head-hurt, r=RalfJung

Stacked Borrows: don't read from memory during retagging

Currently, retagging of a shared reference tries real hard to find the `UnsafeCell` and mark everything else as frozen. We even read enum discriminants to figure out the variant and determine if there is an `UnsafeCell` in there or not.

Unfortunately, that leads to some very hard to analyze behavior: during retagging, we do read accesses, which are subject to the rules of Stacked Borrows and the existing tags! My head hurts when I try to think about this. It's just too recursive.

This PR simplifies the semantics by treating enums like unions: if any variant has an `UnsafeCell`, the entire thing behaves like an `UnsafeCell`. This means retagging no longer has to read from memory, the way it affects the stack is entirely determined by the type.

4 years agoAdd env exclusion test
Christian Poveda [Wed, 28 Aug 2019 22:34:34 +0000 (17:34 -0500)]
Add env exclusion test

4 years agoExclude env vars using flag
Christian Poveda [Wed, 28 Aug 2019 22:31:57 +0000 (17:31 -0500)]
Exclude env vars using flag

4 years agoAdd -Zmiri-env-exclude flag
Christian Poveda [Wed, 28 Aug 2019 22:20:50 +0000 (17:20 -0500)]
Add -Zmiri-env-exclude flag

4 years agoAuto merge of #930 - RalfJung:build, r=RalfJung
bors [Wed, 28 Aug 2019 20:23:39 +0000 (20:23 +0000)]
Auto merge of #930 - RalfJung:build, r=RalfJung

test that build scripts do not run in Miri

@elichai reported something that sounded a lot like build script running in Miri. But as this test shows, build scripts are not run by Miri, they are run normally.

@elichai are you sure the [env var usage you were referring to](https://github.com/rust-lang/miri/issues/641#issuecomment-524989482) was only in a build script? Those shouldn't be affected by Miri flags at all. Is your code available somewhere so that I can try to reproduce?

4 years agosmall optimization
Ralf Jung [Wed, 28 Aug 2019 16:45:10 +0000 (18:45 +0200)]
small optimization

4 years agoStacked Borrows: don't read from memory during retagging
Ralf Jung [Wed, 28 Aug 2019 16:41:30 +0000 (18:41 +0200)]
Stacked Borrows: don't read from memory during retagging

4 years agomore implicit
Ralf Jung [Wed, 28 Aug 2019 07:27:19 +0000 (09:27 +0200)]
more implicit

4 years agotest that build scripts do not run in Miri
Ralf Jung [Wed, 28 Aug 2019 07:15:31 +0000 (09:15 +0200)]
test that build scripts do not run in Miri

4 years agoAuto merge of #925 - christianpoveda:environ-shim, r=RalfJung
bors [Tue, 27 Aug 2019 15:59:32 +0000 (15:59 +0000)]
Auto merge of #925 - christianpoveda:environ-shim, r=RalfJung

Write name and value for each env var

In order to res0lve https://github.com/rust-lang/miri/issues/756 is necessary to have the whole `"NAME=VALUE"` sequence of bytes written into memory instead of just the value.

This change does not affect the interface of the `shim::envs::EnvVars` type in any way.

r? @RalfJung @oli-obk

4 years agoAdd docs
Christian Poveda [Tue, 27 Aug 2019 13:45:37 +0000 (08:45 -0500)]
Add docs

4 years agoAuto merge of #927 - RalfJung:getrandom, r=RalfJung
bors [Tue, 27 Aug 2019 13:14:14 +0000 (13:14 +0000)]
Auto merge of #927 - RalfJung:getrandom, r=RalfJung

explicitly enable getrandom/std feature

This seems to be what rand_core does, and then we need to do it as well or else the rustc feature checker complains.

4 years agoexplicitly enable getrandom/std feature
Ralf Jung [Tue, 27 Aug 2019 13:12:12 +0000 (15:12 +0200)]
explicitly enable getrandom/std feature

4 years agoAuto merge of #917 - RalfJung:isolation, r=oli-obk
bors [Tue, 27 Aug 2019 10:02:07 +0000 (10:02 +0000)]
Auto merge of #917 - RalfJung:isolation, r=oli-obk

change flag name: enable-communication -> disable-isolation

r? @oli-obk  -- I think this is a better name for the flag but it is still somewhat clumsy. Suggestions?

4 years agoAuto merge of #926 - RalfJung:rustup, r=RalfJung
bors [Tue, 27 Aug 2019 06:45:59 +0000 (06:45 +0000)]
Auto merge of #926 - RalfJung:rustup, r=RalfJung

rustup

4 years agohashmap ICEs with optimizations, temporarily disable
Ralf Jung [Tue, 27 Aug 2019 06:42:36 +0000 (08:42 +0200)]
hashmap ICEs with optimizations, temporarily disable

4 years agorustup
Ralf Jung [Tue, 27 Aug 2019 06:32:31 +0000 (08:32 +0200)]
rustup

4 years agoWrite name and value for each env var
Christian Poveda [Mon, 26 Aug 2019 20:18:11 +0000 (15:18 -0500)]
Write name and value for each env var

4 years agoAuto merge of #924 - RalfJung:getrandom, r=RalfJung
bors [Mon, 26 Aug 2019 18:54:14 +0000 (18:54 +0000)]
Auto merge of #924 - RalfJung:getrandom, r=RalfJung

decrease getrandom version

so that we dont have to bump Cargo.toml in rustc

4 years agodecrease getrandom version so that we dont have to bump Cargo.toml in rustc
Ralf Jung [Mon, 26 Aug 2019 18:53:33 +0000 (20:53 +0200)]
decrease getrandom version so that we dont have to bump Cargo.toml in rustc

4 years agoAuto merge of #922 - RalfJung:rustup, r=RalfJung
bors [Mon, 26 Aug 2019 18:13:47 +0000 (18:13 +0000)]
Auto merge of #922 - RalfJung:rustup, r=RalfJung

bump Rust and xargo

4 years agobump Rust and xargo
Ralf Jung [Mon, 26 Aug 2019 17:44:27 +0000 (19:44 +0200)]
bump Rust and xargo

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 agotest host randomness access
Ralf Jung [Fri, 23 Aug 2019 21:30:23 +0000 (23:30 +0200)]
test host randomness access