]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agorustup for projection interning
Ralf Jung [Sat, 26 Oct 2019 07:33:24 +0000 (09:33 +0200)]
rustup for projection interning

4 years agoAuto merge of #1023 - RalfJung:align_to, r=RalfJung
bors [Fri, 25 Oct 2019 18:26:39 +0000 (18:26 +0000)]
Auto merge of #1023 - RalfJung:align_to, r=RalfJung

test align_to example

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

4 years agotest align_to example
Ralf Jung [Fri, 25 Oct 2019 18:26:01 +0000 (20:26 +0200)]
test align_to example

4 years agoAuto merge of #1021 - RalfJung:rustc-dev, r=RalfJung
bors [Thu, 24 Oct 2019 15:16:44 +0000 (15:16 +0000)]
Auto merge of #1021 - RalfJung:rustc-dev, r=RalfJung

Adjust for rustc-dev

4 years agoadd back '-c cargo'
Ralf Jung [Thu, 24 Oct 2019 13:44:35 +0000 (15:44 +0200)]
add back '-c cargo'

4 years agorustc-dev landed; adjust rust version
Ralf Jung [Thu, 24 Oct 2019 11:12:26 +0000 (13:12 +0200)]
rustc-dev landed; adjust rust version

4 years agotemporarily ignore cached rustup-toolchain-install-master
Ralf Jung [Sat, 12 Oct 2019 15:11:29 +0000 (17:11 +0200)]
temporarily ignore cached rustup-toolchain-install-master

4 years agoadjust README for rustc-dev
Ralf Jung [Fri, 11 Oct 2019 08:13:26 +0000 (10:13 +0200)]
adjust README for rustc-dev

4 years agobump rustc and adjust for rustc-dev component
Ralf Jung [Fri, 11 Oct 2019 08:11:01 +0000 (10:11 +0200)]
bump rustc and adjust for rustc-dev component

(also sync AppVeyor with Travis: use stable cargo)

4 years agoAuto merge of #1020 - RalfJung:compiletest, r=RalfJung
bors [Thu, 24 Oct 2019 08:53:52 +0000 (08:53 +0000)]
Auto merge of #1020 - RalfJung:compiletest, r=RalfJung

compiletest-nightly should work again

4 years agocompiletest-nightly should work again
Ralf Jung [Thu, 24 Oct 2019 08:31:08 +0000 (10:31 +0200)]
compiletest-nightly should work again

4 years agoAuto merge of #1019 - RalfJung:rustup, r=RalfJung
bors [Thu, 24 Oct 2019 08:27:38 +0000 (08:27 +0000)]
Auto merge of #1019 - RalfJung:rustup, r=RalfJung

rustup: more flexible write_bytes

avoids allocations and removes itertools dependency

4 years agoupdate comments and some tweaks
Ralf Jung [Thu, 24 Oct 2019 08:23:44 +0000 (10:23 +0200)]
update comments and some tweaks

4 years agorustup: more flexible write_bytes avoids allocations and removes itertools dependency
Ralf Jung [Thu, 24 Oct 2019 08:15:30 +0000 (10:15 +0200)]
rustup: more flexible write_bytes avoids allocations and removes itertools dependency

4 years agoAuto merge of #993 - christianpoveda:os_string_helper, r=RalfJung
bors [Wed, 23 Oct 2019 16:52:52 +0000 (16:52 +0000)]
Auto merge of #993 - christianpoveda:os_string_helper, r=RalfJung

Add OsString from/to bytes helper functions

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

r? @RalfJung

4 years agoAuto merge of #1018 - RalfJung:rustup, r=RalfJung
bors [Wed, 23 Oct 2019 14:34:56 +0000 (14:34 +0000)]
Auto merge of #1018 - RalfJung:rustup, r=RalfJung

rustup; fix debugging

4 years agorustup; fix debugging
Ralf Jung [Wed, 23 Oct 2019 14:33:54 +0000 (16:33 +0200)]
rustup; fix debugging

4 years agoFix documentation
Christian Poveda [Wed, 23 Oct 2019 13:58:25 +0000 (08:58 -0500)]
Fix documentation

4 years agoAuto merge of #1017 - RalfJung:test, r=RalfJung
bors [Wed, 23 Oct 2019 08:58:22 +0000 (08:58 +0000)]
Auto merge of #1017 - RalfJung:test, r=RalfJung

cargo update cargo-miri-test

4 years agocargo update cargo-miri-test
Ralf Jung [Wed, 23 Oct 2019 08:32:08 +0000 (10:32 +0200)]
cargo update cargo-miri-test

4 years agoAuto merge of #1016 - RalfJung:rustup, r=RalfJung
bors [Wed, 23 Oct 2019 08:31:50 +0000 (08:31 +0000)]
Auto merge of #1016 - RalfJung:rustup, r=RalfJung

Rustup

4 years agouse compiletest_rs for stable compiler as nightly is broken
Ralf Jung [Wed, 23 Oct 2019 08:31:08 +0000 (10:31 +0200)]
use compiletest_rs for stable compiler as nightly is broken

4 years agorustup + cargo update
Ralf Jung [Wed, 23 Oct 2019 08:25:22 +0000 (10:25 +0200)]
rustup + cargo update

4 years agoMake size error distinguishable from other errors
Christian Poveda [Tue, 22 Oct 2019 21:57:07 +0000 (16:57 -0500)]
Make size error distinguishable from other errors

4 years agoUse new write_bytes method
Christian Poveda [Tue, 22 Oct 2019 14:56:41 +0000 (09:56 -0500)]
Use new write_bytes method

4 years agoAuto merge of #1015 - RalfJung:appv, r=RalfJung
bors [Tue, 22 Oct 2019 11:41:14 +0000 (11:41 +0000)]
Auto merge of #1015 - RalfJung:appv, r=RalfJung

AppVeyor: abort early if a job fails

4 years agoAppVeyor: abort early if a job fails
Ralf Jung [Tue, 22 Oct 2019 11:11:16 +0000 (13:11 +0200)]
AppVeyor: abort early if a job fails

4 years agoAuto merge of #1014 - RalfJung:rustup, r=RalfJung
bors [Tue, 22 Oct 2019 11:08:32 +0000 (11:08 +0000)]
Auto merge of #1014 - RalfJung:rustup, r=RalfJung

rustup: fix for write_bytes and new union rules

4 years agofix field index
Ralf Jung [Tue, 22 Oct 2019 08:43:16 +0000 (10:43 +0200)]
fix field index

4 years agorustup: fix for write_bytes and new union rules
Ralf Jung [Tue, 22 Oct 2019 08:13:11 +0000 (10:13 +0200)]
rustup: fix for write_bytes and new union rules

4 years agoFix merge conflicts
Christian Poveda [Mon, 21 Oct 2019 13:49:49 +0000 (08:49 -0500)]
Fix merge conflicts

4 years agoAuto merge of #1012 - RalfJung:rustup, r=RalfJung
bors [Mon, 21 Oct 2019 11:50:08 +0000 (11:50 +0000)]
Auto merge of #1012 - RalfJung:rustup, r=RalfJung

bump Rust (no changes needed)

Just bumping it to the latest nightly.

4 years agobump Rust (no changes needed)
Ralf Jung [Mon, 21 Oct 2019 11:31:38 +0000 (13:31 +0200)]
bump Rust (no changes needed)

4 years agoAuto merge of #1011 - RalfJung:full-stop, r=RalfJung
bors [Mon, 21 Oct 2019 11:25:34 +0000 (11:25 +0000)]
Auto merge of #1011 - RalfJung:full-stop, r=RalfJung

add some missing trailing full stops that slipped through review

4 years agoadd some missing trailing full stops that slipped through review
Ralf Jung [Mon, 21 Oct 2019 11:24:56 +0000 (13:24 +0200)]
add some missing trailing full stops that slipped through review

4 years agoAuto merge of #991 - christianpoveda:errno-place, r=RalfJung
bors [Mon, 21 Oct 2019 09:15:51 +0000 (09:15 +0000)]
Auto merge of #991 - christianpoveda:errno-place, r=RalfJung

Change the last OS error location to a place

r? @RalfJung

4 years agoAuto merge of #1010 - RalfJung:xargo, r=RalfJung
bors [Mon, 21 Oct 2019 08:45:54 +0000 (08:45 +0000)]
Auto merge of #1010 - RalfJung:xargo, r=RalfJung

when xargo is manually specified, don't try to upgrade it

4 years agowhen xargo is manually specified, don't try to upgrade it
Ralf Jung [Mon, 21 Oct 2019 08:25:47 +0000 (10:25 +0200)]
when xargo is manually specified, don't try to upgrade it

4 years agoAdd docs for the new helper functions
Christian Poveda [Sun, 20 Oct 2019 22:40:21 +0000 (17:40 -0500)]
Add docs for the new helper functions

4 years agoSmall corrections to docs
Christian Poveda [Sat, 19 Oct 2019 19:00:44 +0000 (14:00 -0500)]
Small corrections to docs

4 years agoTransform the last error place to an immediate instead
Christian Poveda [Fri, 18 Oct 2019 19:44:48 +0000 (14:44 -0500)]
Transform the last error place to an immediate instead

4 years agoRename set_last_error_from_io_result
Christian Poveda [Fri, 18 Oct 2019 19:33:25 +0000 (14:33 -0500)]
Rename set_last_error_from_io_result

4 years agoMake transformation to OS error explicit
Christian Poveda [Fri, 18 Oct 2019 01:29:30 +0000 (20:29 -0500)]
Make transformation to OS error explicit

4 years agoRename consume_result
Christian Poveda [Thu, 17 Oct 2019 02:37:35 +0000 (21:37 -0500)]
Rename consume_result

4 years agoChange last_error to a place
Christian Poveda [Sun, 13 Oct 2019 01:58:02 +0000 (20:58 -0500)]
Change last_error to a place

4 years agoMove last error functions to helpers
Christian Poveda [Sun, 13 Oct 2019 01:44:45 +0000 (20:44 -0500)]
Move last error functions to helpers

4 years agoAuto merge of #1009 - RalfJung:expect_none, r=RalfJung
bors [Sun, 20 Oct 2019 10:21:28 +0000 (10:21 +0000)]
Auto merge of #1009 - RalfJung:expect_none, r=RalfJung

use expect_none and unwrap_none where it makes sense

4 years agouse expect_none and unwrap_none where it makes sense
Ralf Jung [Sun, 20 Oct 2019 10:20:48 +0000 (12:20 +0200)]
use expect_none and unwrap_none where it makes sense

4 years agoDo additional bounds checks
Christian Poveda [Sat, 19 Oct 2019 20:49:00 +0000 (15:49 -0500)]
Do additional bounds checks

4 years agoChange comparison order for clarity
Christian Poveda [Sat, 19 Oct 2019 19:13:49 +0000 (14:13 -0500)]
Change comparison order for clarity

4 years agoAuto merge of #1008 - RalfJung:sysroot, r=RalfJung
bors [Sat, 19 Oct 2019 14:39:16 +0000 (14:39 +0000)]
Auto merge of #1008 - RalfJung:sysroot, r=RalfJung

print sysroot without any escaping

4 years agoprint sysroot without any escaping
Ralf Jung [Sat, 19 Oct 2019 14:36:45 +0000 (16:36 +0200)]
print sysroot without any escaping

4 years agoAuto merge of #1006 - RalfJung:bounds, r=RalfJung
bors [Sat, 19 Oct 2019 10:40:08 +0000 (10:40 +0000)]
Auto merge of #1006 - RalfJung:bounds, r=RalfJung

audit our bounds checks

This simplifies some bounds checks and adds comments.

4 years agoaudit our bounds checks
Ralf Jung [Sat, 19 Oct 2019 10:28:39 +0000 (12:28 +0200)]
audit our bounds checks

4 years agoFix writing errors
Christian Poveda [Fri, 18 Oct 2019 19:25:49 +0000 (14:25 -0500)]
Fix writing errors

4 years agoRename write/read os string functions
Christian Poveda [Fri, 18 Oct 2019 14:30:12 +0000 (09:30 -0500)]
Rename write/read os string functions

4 years agoUse conditional compilation properly and work with `OsStr`s instead
Christian Poveda [Fri, 18 Oct 2019 02:20:05 +0000 (21:20 -0500)]
Use conditional compilation properly and work with `OsStr`s instead

4 years agoChange helper functions to read/write
Christian Poveda [Thu, 17 Oct 2019 15:21:06 +0000 (10:21 -0500)]
Change helper functions to read/write

4 years agoAdd OsString from/to bytes helper functions
Christian Poveda [Sun, 13 Oct 2019 20:26:03 +0000 (15:26 -0500)]
Add OsString from/to bytes helper functions

4 years agoAuto merge of #1005 - RalfJung:cleanup, r=RalfJung
bors [Fri, 18 Oct 2019 14:02:29 +0000 (14:02 +0000)]
Auto merge of #1005 - RalfJung:cleanup, r=RalfJung

cleanup now that borrow checker knows memory is a field

@christianpoveda you said, I think, that `fs.rs` could also be cleaned up to longer remove-and-then-add file descriptors from the table? Could you make a PR for that?

4 years agocleanup now that borrow checker knows memory is a field
Ralf Jung [Fri, 18 Oct 2019 09:33:12 +0000 (11:33 +0200)]
cleanup now that borrow checker knows memory is a field

4 years agoAuto merge of #1004 - JohnTitor:use-memory, r=RalfJung
bors [Fri, 18 Oct 2019 08:10:29 +0000 (08:10 +0000)]
Auto merge of #1004 - JohnTitor:use-memory, r=RalfJung

Use memory field instead of memory()

Rustup for rust-lang/rust#65319

4 years agorustup
Yuki Okushi [Fri, 18 Oct 2019 02:21:20 +0000 (11:21 +0900)]
rustup

4 years agoUse memory field instead of memory()
Yuki Okushi [Fri, 18 Oct 2019 02:11:50 +0000 (11:11 +0900)]
Use memory field instead of memory()

4 years agoAuto merge of #1002 - RalfJung:workspace, r=RalfJung
bors [Wed, 16 Oct 2019 20:04:58 +0000 (20:04 +0000)]
Auto merge of #1002 - RalfJung:workspace, r=RalfJung

better error when using cargo-miri in a workspace

4 years agobetter error when using cargo-miri in a workspace
Ralf Jung [Wed, 16 Oct 2019 19:45:17 +0000 (21:45 +0200)]
better error when using cargo-miri in a workspace

4 years agoAuto merge of #1000 - RalfJung:profile, r=RalfJung
bors [Wed, 16 Oct 2019 08:46:13 +0000 (08:46 +0000)]
Auto merge of #1000 - RalfJung:profile, r=RalfJung

install minimal profile by default

Avoid downloading some stuff we really don't care about.

4 years agomake sure we don't install more than we have to
Ralf Jung [Wed, 16 Oct 2019 08:45:48 +0000 (10:45 +0200)]
make sure we don't install more than we have to

4 years agocleanup: remove leftover rust-docs components
Ralf Jung [Wed, 16 Oct 2019 08:41:50 +0000 (10:41 +0200)]
cleanup: remove leftover rust-docs components

4 years agoAuto merge of #996 - christianpoveda:unsup-wo-isolation, r=RalfJung
bors [Wed, 16 Oct 2019 08:17:57 +0000 (08:17 +0000)]
Auto merge of #996 - christianpoveda:unsup-wo-isolation, r=RalfJung

Add function to error with enabled isolation

Fixes https://github.com/rust-lang/miri/issues/986
r? @RalfJung

4 years agoinstall minimal profile by default
Ralf Jung [Wed, 16 Oct 2019 08:02:31 +0000 (10:02 +0200)]
install minimal profile by default

4 years agoAuto merge of #987 - christianpoveda:check-unsupported-fs-flags, r=RalfJung
bors [Wed, 16 Oct 2019 07:52:12 +0000 (07:52 +0000)]
Auto merge of #987 - christianpoveda:check-unsupported-fs-flags, r=RalfJung

Error when there is an unsupported flag for opening a file

@RalfJung this is my attempt to check for undesired flags. I also changed fcntl to error when doing any other action besides getting the flags for a fd

4 years agoCheck that access mode flags only use the first two bits
Christian Poveda [Mon, 14 Oct 2019 21:42:29 +0000 (16:42 -0500)]
Check that access mode flags only use the first two bits

4 years agoAdd function to error with enabled isolation
Christian Poveda [Mon, 14 Oct 2019 20:36:15 +0000 (15:36 -0500)]
Add function to error with enabled isolation

4 years agoAuto merge of #998 - RalfJung:comment, r=RalfJung
bors [Tue, 15 Oct 2019 09:25:22 +0000 (09:25 +0000)]
Auto merge of #998 - RalfJung:comment, r=RalfJung

explain our shell encoding

Follow-up to https://github.com/rust-lang/miri/pull/980

4 years agoexplain our shell encoding
Ralf Jung [Tue, 15 Oct 2019 07:50:16 +0000 (09:50 +0200)]
explain our shell encoding

4 years agoAuto merge of #980 - JOE1994:master, r=RalfJung
bors [Tue, 15 Oct 2019 08:22:26 +0000 (08:22 +0000)]
Auto merge of #980 - JOE1994:master, r=RalfJung

change cargo-miri.rs to fix issue #978

In Windows 10, there was an issue with building MIRI locally and getting it running,
due to unpredictable backslash escaping issues in paths.
I added a code snippet that would only be compiled in Windows OS, which replaces all backslashes in paths to slashes.
This fix should only affect Windows users.
Building and testing MIRI locally now works fine after the fix.
![miri_result_after_fix0](https://user-images.githubusercontent.com/10286488/66260998-344abc80-e794-11e9-9d7c-b4ef098443de.PNG)

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

4 years agoAuto merge of #975 - christianpoveda:clock-shim, r=RalfJung
bors [Tue, 15 Oct 2019 07:36:42 +0000 (07:36 +0000)]
Auto merge of #975 - christianpoveda:clock-shim, r=RalfJung

Add clock_gettime shim

r? @oli-obk

I think there is no way to do proper testing of this other than checking that miri does not crash when calling `clock_gettime`.

4 years agoremove unnecessary line break
YOUNGSUK_KIM [Tue, 15 Oct 2019 02:37:54 +0000 (22:37 -0400)]
remove unnecessary line break

4 years agoRalf Jung's great idea!
YOUNGSUK_KIM [Tue, 15 Oct 2019 00:57:57 +0000 (20:57 -0400)]
Ralf Jung's great idea!

4 years agoUse places instead of ptrs to write packed immtys
Christian Poveda [Mon, 14 Oct 2019 14:08:39 +0000 (09:08 -0500)]
Use places instead of ptrs to write packed immtys

4 years agoAuto merge of #992 - christianpoveda:check-errno-value, r=RalfJung
bors [Mon, 14 Oct 2019 12:54:36 +0000 (12:54 +0000)]
Auto merge of #992 - christianpoveda:check-errno-value, r=RalfJung

Check that fs errors have the proper kind

r? @RalfJung

4 years agoCheck that fs errors have the proper kind
Christian Poveda [Sun, 13 Oct 2019 19:48:07 +0000 (14:48 -0500)]
Check that fs errors have the proper kind

4 years agoAuto merge of #994 - RalfJung:rustup, r=RalfJung
bors [Mon, 14 Oct 2019 11:17:57 +0000 (11:17 +0000)]
Auto merge of #994 - RalfJung:rustup, r=RalfJung

Fix for rustc and compiletest changes

Let's see if just bumping the rustc version is enough...

4 years agobump compiletest
Ralf Jung [Mon, 14 Oct 2019 11:17:30 +0000 (13:17 +0200)]
bump compiletest

4 years agorustup
Ralf Jung [Mon, 14 Oct 2019 11:15:44 +0000 (13:15 +0200)]
rustup

4 years agoAuto merge of #995 - RalfJung:lock, r=RalfJung
bors [Mon, 14 Oct 2019 07:59:52 +0000 (07:59 +0000)]
Auto merge of #995 - RalfJung:lock, r=RalfJung

add lockfile

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

4 years agoCI: force using locked versions
Ralf Jung [Mon, 14 Oct 2019 07:40:11 +0000 (09:40 +0200)]
CI: force using locked versions

4 years agoadd lockfile
Ralf Jung [Mon, 14 Oct 2019 07:38:08 +0000 (09:38 +0200)]
add lockfile

4 years agoError on negative times
Christian Poveda [Sun, 13 Oct 2019 21:06:37 +0000 (16:06 -0500)]
Error on negative times

4 years agoCorrect fcntl behavior
Christian Poveda [Sun, 13 Oct 2019 01:12:26 +0000 (20:12 -0500)]
Correct fcntl behavior

4 years agoGroup libc helper functions
Christian Poveda [Sun, 13 Oct 2019 00:48:18 +0000 (19:48 -0500)]
Group libc helper functions

4 years agoAuto merge of #990 - RalfJung:rustup2, r=RalfJung
bors [Sat, 12 Oct 2019 16:13:03 +0000 (16:13 +0000)]
Auto merge of #990 - RalfJung:rustup2, r=RalfJung

hopefully harmless Rust bump

Just to make the rust version jump in https://github.com/rust-lang/miri/pull/984 smaller.

4 years agobetter debugging for sysroot check
Ralf Jung [Sat, 12 Oct 2019 16:11:44 +0000 (18:11 +0200)]
better debugging for sysroot check

4 years agohopefully harmless Rust bump
Ralf Jung [Sat, 12 Oct 2019 15:51:10 +0000 (17:51 +0200)]
hopefully harmless Rust bump

4 years agoAuto merge of #988 - RalfJung:temp, r=RalfJung
bors [Fri, 11 Oct 2019 21:02:44 +0000 (21:02 +0000)]
Auto merge of #988 - RalfJung:temp, r=RalfJung

use temp_dir for FS test

Cc @christianpoveda

4 years agouse temp_dir for FS test
Ralf Jung [Fri, 11 Oct 2019 21:02:04 +0000 (23:02 +0200)]
use temp_dir for FS test

4 years agoRemove F_SETFD command
Christian Poveda [Fri, 11 Oct 2019 17:17:54 +0000 (12:17 -0500)]
Remove F_SETFD command

4 years agoError when there is an unsupported flag
Christian Poveda [Fri, 11 Oct 2019 10:30:50 +0000 (05:30 -0500)]
Error when there is an unsupported flag

4 years agoSplit `write_c_ints` into less specific helper functions
Christian Poveda [Fri, 11 Oct 2019 05:55:32 +0000 (00:55 -0500)]
Split `write_c_ints` into less specific helper functions