]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoMove functions to eval libc constants to helpers
Christian Poveda [Fri, 11 Oct 2019 06:53:31 +0000 (01:53 -0500)]
Move functions to eval libc constants to helpers

4 years agoRename shims::io to shims::fs
Christian Poveda [Fri, 11 Oct 2019 06:49:28 +0000 (01:49 -0500)]
Rename shims::io to shims::fs

4 years agoAuto merge of #982 - RalfJung:rustup, r=RalfJung
bors [Wed, 9 Oct 2019 11:01:53 +0000 (11:01 +0000)]
Auto merge of #982 - RalfJung:rustup, r=RalfJung

bump to latest nightly

Just because it has been a while since the last bump.

4 years agobump to latest nightly
Ralf Jung [Wed, 9 Oct 2019 09:11:56 +0000 (11:11 +0200)]
bump to latest nightly

4 years agoAuto merge of #981 - RalfJung:atomic, r=RalfJung
bors [Wed, 9 Oct 2019 08:32:58 +0000 (08:32 +0000)]
Auto merge of #981 - RalfJung:atomic, r=RalfJung

also test AcqRel fence

Missing from https://github.com/rust-lang/miri/pull/979

4 years agoalso test AcqRel fence
Ralf Jung [Wed, 9 Oct 2019 08:29:08 +0000 (10:29 +0200)]
also test AcqRel fence

4 years agoAuto merge of #976 - christianpoveda:unlink-shim, r=oli-obk
bors [Tue, 8 Oct 2019 16:14:41 +0000 (16:14 +0000)]
Auto merge of #976 - christianpoveda:unlink-shim, r=oli-obk

Add unlink shim to delete files

r? @oli-obk
This closes the whole create, write, read, delete circle for file handling.

4 years agoAdd errno_location shim for MacOS
Christian Poveda [Tue, 8 Oct 2019 14:25:26 +0000 (09:25 -0500)]
Add errno_location shim for MacOS

4 years agoAdd tests for non-existing files
Christian Poveda [Tue, 8 Oct 2019 13:56:36 +0000 (08:56 -0500)]
Add tests for non-existing files

4 years agoAdd unlink shim to delete files
Christian Poveda [Thu, 3 Oct 2019 14:33:36 +0000 (09:33 -0500)]
Add unlink shim to delete files

4 years agoAuto merge of #977 - christianpoveda:last-error-ptr, r=oli-obk
bors [Tue, 8 Oct 2019 13:21:05 +0000 (13:21 +0000)]
Auto merge of #977 - christianpoveda:last-error-ptr, r=oli-obk

Move last error into memory

These changes move the `Evaluator::last_error` into miri's memory and implement the `__errno_location()` shim (which is used by the file handling functions when they fail).

4 years agoAdd method to consume io::Error
Christian Poveda [Mon, 7 Oct 2019 13:38:54 +0000 (08:38 -0500)]
Add method to consume io::Error

4 years agoAdd __errno_location shim
Christian Poveda [Thu, 3 Oct 2019 15:28:38 +0000 (10:28 -0500)]
Add __errno_location shim

4 years agoMove last_error into memory
Christian Poveda [Thu, 3 Oct 2019 15:21:55 +0000 (10:21 -0500)]
Move last_error into memory

4 years agoRustfmt
Christian Poveda [Mon, 7 Oct 2019 13:39:59 +0000 (08:39 -0500)]
Rustfmt

4 years agoAuto merge of #979 - nico-abram:patch-1, r=oli-obk
bors [Sat, 5 Oct 2019 15:23:35 +0000 (15:23 +0000)]
Auto merge of #979 - nico-abram:patch-1, r=oli-obk

Add missing atomic_fence intrinsics as nops

Fixes #972

4 years agoAdd test for atomic fences
Nicolas [Sat, 5 Oct 2019 11:09:23 +0000 (08:09 -0300)]
Add test for atomic fences

4 years agoAdd missing atomic_fence intrinsics as nops
Nicolas [Sat, 5 Oct 2019 09:12:37 +0000 (06:12 -0300)]
Add missing atomic_fence intrinsics as nops

Fixes #972

4 years agoAuto merge of #973 - christianpoveda:write-shim, r=oli-obk
bors [Wed, 2 Oct 2019 14:16:43 +0000 (14:16 +0000)]
Auto merge of #973 - christianpoveda:write-shim, r=oli-obk

Enable file writing

r? @oli-obk

4 years agoReturn earlier when reading/writing 0 bytes
Christian Poveda [Wed, 2 Oct 2019 13:50:32 +0000 (08:50 -0500)]
Return earlier when reading/writing 0 bytes

4 years agoFix dangling pointer bug for zero-sized reads
Christian Poveda [Wed, 2 Oct 2019 13:43:23 +0000 (08:43 -0500)]
Fix dangling pointer bug for zero-sized reads

4 years agoAvoid early return after handles are removed
Christian Poveda [Tue, 1 Oct 2019 18:48:59 +0000 (13:48 -0500)]
Avoid early return after handles are removed

4 years agoCorrect name of each shim when erroring
Christian Poveda [Tue, 1 Oct 2019 15:57:12 +0000 (10:57 -0500)]
Correct name of each shim when erroring

4 years agoAdd file writing capabilities
Christian Poveda [Mon, 30 Sep 2019 16:46:07 +0000 (11:46 -0500)]
Add file writing capabilities

4 years agoAuto merge of #962 - christianpoveda:file-shim, r=oli-obk
bors [Tue, 1 Oct 2019 15:33:09 +0000 (15:33 +0000)]
Auto merge of #962 - christianpoveda:file-shim, r=oli-obk

Add shims for file handling

This adds the bare minimum to be able to do `File::open` and `File::read`. I also need some feedback about how to handle certain things

4 years agoAdd docs for helper functions
Christian Poveda [Tue, 1 Oct 2019 15:31:04 +0000 (10:31 -0500)]
Add docs for helper functions

4 years agoRemove return argument when fd is not found
Christian Poveda [Tue, 1 Oct 2019 14:18:55 +0000 (09:18 -0500)]
Remove return argument when fd is not found

4 years agoAdd methods to handle invalid fides
Christian Poveda [Mon, 30 Sep 2019 20:18:23 +0000 (15:18 -0500)]
Add methods to handle invalid fides

4 years agoAvoid buffer allocation to read files
Christian Poveda [Mon, 30 Sep 2019 19:21:45 +0000 (14:21 -0500)]
Avoid buffer allocation to read files

4 years agoAdd method to consume std::io::Result
Christian Poveda [Mon, 30 Sep 2019 19:07:08 +0000 (14:07 -0500)]
Add method to consume std::io::Result

4 years agoAdd FileHandle struct
Christian Poveda [Mon, 30 Sep 2019 16:51:09 +0000 (11:51 -0500)]
Add FileHandle struct

4 years agoReserve fides for stdio and fix merge issues
Christian Poveda [Sat, 28 Sep 2019 19:22:57 +0000 (14:22 -0500)]
Reserve fides for stdio and fix merge issues

4 years agoAuto merge of #971 - RalfJung:rustup, r=RalfJung
bors [Sun, 29 Sep 2019 17:15:19 +0000 (17:15 +0000)]
Auto merge of #971 - RalfJung:rustup, r=RalfJung

bump rust even more

Internet in this train isn't good enough to test this... so let's see. ;)

4 years agobump rust even more
Ralf Jung [Sun, 29 Sep 2019 16:31:04 +0000 (12:31 -0400)]
bump rust even more

4 years agoAuto merge of #970 - RalfJung:align_offset, r=RalfJung
bors [Sun, 29 Sep 2019 16:26:36 +0000 (16:26 +0000)]
Auto merge of #970 - RalfJung:align_offset, r=RalfJung

more align_offset tests

Cc @christianpoveda

4 years agofix tests on 32bit
Ralf Jung [Sun, 29 Sep 2019 16:26:13 +0000 (12:26 -0400)]
fix tests on 32bit

4 years agocomments and another test
Ralf Jung [Sun, 29 Sep 2019 15:49:04 +0000 (11:49 -0400)]
comments and another test

4 years agomore align_offset tests
Ralf Jung [Sun, 29 Sep 2019 15:43:50 +0000 (11:43 -0400)]
more align_offset tests

4 years agoAuto merge of #969 - RalfJung:rustup, r=RalfJung
bors [Sun, 29 Sep 2019 15:31:59 +0000 (15:31 +0000)]
Auto merge of #969 - RalfJung:rustup, r=RalfJung

fix test failure from diagnostics change

@oli-obk looks like with some recent change, the error about the shift now needs `const_err` instead of `exceeding_bitshifts` to be silenced?

4 years agofix test failure from diagnostics change
Ralf Jung [Sun, 29 Sep 2019 15:30:28 +0000 (11:30 -0400)]
fix test failure from diagnostics change

4 years agoAuto merge of #957 - christianpoveda:ptr-align-offset, r=RalfJung
bors [Sat, 28 Sep 2019 18:38:00 +0000 (18:38 +0000)]
Auto merge of #957 - christianpoveda:ptr-align-offset, r=RalfJung

Fixes for align_offset

This addresses @RalfJung's comments in https://github.com/rust-lang/miri/pull/945

4 years agoAuto merge of #967 - RalfJung:rustup, r=RalfJung
bors [Sat, 28 Sep 2019 16:11:13 +0000 (16:11 +0000)]
Auto merge of #967 - RalfJung:rustup, r=RalfJung

cargo update for test-cargo-miri

4 years agocargo update for test-cargo-miri
Ralf Jung [Sat, 28 Sep 2019 16:10:18 +0000 (12:10 -0400)]
cargo update for test-cargo-miri

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

sync AppVeyor CI script with Travis

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 agoEnable close call for macos
Christian Poveda [Wed, 25 Sep 2019 16:16:11 +0000 (11:16 -0500)]
Enable close call for macos

4 years agoAdd FIXME to file reading test
Christian Poveda [Wed, 25 Sep 2019 16:12:46 +0000 (11:12 -0500)]
Add FIXME to file reading test

4 years agoCheck that the only flag change is done to enable `FD_CLOEXEC`
Christian Poveda [Wed, 25 Sep 2019 16:11:20 +0000 (11:11 -0500)]
Check that the only flag change is done to enable `FD_CLOEXEC`

4 years agoAdd helper function to fetch `libc` constants
Christian Poveda [Wed, 25 Sep 2019 15:49:12 +0000 (10:49 -0500)]
Add helper function to fetch `libc` constants

4 years agoFirst version of file handling
Christian Poveda [Tue, 24 Sep 2019 22:28:00 +0000 (17:28 -0500)]
First version of file handling

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 agoIgnore integers
Christian Poveda [Mon, 23 Sep 2019 02:39:17 +0000 (21:39 -0500)]
Ignore integers

4 years agoThrow unsupported error when alignment is not a power of two
Christian Poveda [Tue, 17 Sep 2019 18:42:04 +0000 (13:42 -0500)]
Throw unsupported error when alignment is not a power of two

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 agoMove truncation from the main branch
Christian Poveda [Tue, 17 Sep 2019 18:26:12 +0000 (13:26 -0500)]
Move truncation from the main branch

4 years agoUpdate align_offset tests
Christian Poveda [Tue, 17 Sep 2019 16:47:36 +0000 (11:47 -0500)]
Update align_offset tests

4 years agoAdd align_offset for integers
Christian Poveda [Mon, 16 Sep 2019 18:46:37 +0000 (13:46 -0500)]
Add align_offset for integers

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