]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agofix README
Ralf Jung [Fri, 21 Feb 2020 07:34:25 +0000 (08:34 +0100)]
fix README

4 years agoAuto merge of #1182 - rust-lang:rustup, r=RalfJung
bors [Thu, 20 Feb 2020 10:10:14 +0000 (10:10 +0000)]
Auto merge of #1182 - rust-lang:rustup, r=RalfJung

rustup

We got a CI failure from our cronjob. It looks spurious, but better safe than sorry.

4 years agorustup
Ralf Jung [Thu, 20 Feb 2020 10:09:12 +0000 (11:09 +0100)]
rustup

4 years agoAuto merge of #1180 - RalfJung:fs-refact, r=RalfJung
bors [Wed, 19 Feb 2020 10:17:32 +0000 (10:17 +0000)]
Auto merge of #1180 - RalfJung:fs-refact, r=RalfJung

Slight refactoring of FS test

4 years agotest a bit more
Ralf Jung [Wed, 19 Feb 2020 10:14:30 +0000 (11:14 +0100)]
test a bit more

4 years agofactor more common code
Ralf Jung [Wed, 19 Feb 2020 10:08:24 +0000 (11:08 +0100)]
factor more common code

4 years agofs test: factor some common code
Ralf Jung [Wed, 19 Feb 2020 10:04:59 +0000 (11:04 +0100)]
fs test: factor some common code

4 years agoAuto merge of #1179 - RalfJung:rustup, r=RalfJung
bors [Wed, 19 Feb 2020 09:08:57 +0000 (09:08 +0000)]
Auto merge of #1179 - RalfJung:rustup, r=RalfJung

bump Rust (no changes needed)

4 years agoAuto merge of #1156 - divergentdave:fcntl-F_DUPFD_CLOEXEC, r=RalfJung
bors [Wed, 19 Feb 2020 08:45:04 +0000 (08:45 +0000)]
Auto merge of #1156 - divergentdave:fcntl-F_DUPFD_CLOEXEC, r=RalfJung

Add F_DUPFD/F_DUPFD_CLOEXEC to fcntl shim

This adds support for `F_DUPFD` and `F_DUPFD_CLOEXEC` to the shim for `fcntl`. (The `FileHandler` does not track the `FD_CLOEXEC` flag for open files, so these commands are effectively the same.) These changes enable using `File::try_clone`.

I also changed the initial value of the `low` field in `FileHandler`, so that it matches the intent of the preceding comment. The `open` shim was pre-incrementing it when choosing new file descriptor numbers, so FD 3 was being skipped.

4 years agobump Rust (no changes needed)
Ralf Jung [Wed, 19 Feb 2020 08:15:12 +0000 (09:15 +0100)]
bump Rust (no changes needed)

4 years agoExtract constant for minimum fd
David Cook [Wed, 19 Feb 2020 00:06:33 +0000 (18:06 -0600)]
Extract constant for minimum fd

4 years agoRewrite file system tests
David Cook [Tue, 18 Feb 2020 04:36:33 +0000 (22:36 -0600)]
Rewrite file system tests

4 years agoBack out placeholder variants from FileHandle
David Cook [Sun, 16 Feb 2020 22:59:54 +0000 (16:59 -0600)]
Back out placeholder variants from FileHandle

4 years agoAddress review comments
David Cook [Sun, 16 Feb 2020 22:51:02 +0000 (16:51 -0600)]
Address review comments

4 years agoRewrite file descriptor handling
David Cook [Sun, 9 Feb 2020 20:43:45 +0000 (14:43 -0600)]
Rewrite file descriptor handling

4 years agoFunctional test of cloned file handle
David Cook [Fri, 31 Jan 2020 00:43:34 +0000 (18:43 -0600)]
Functional test of cloned file handle

4 years agoAdd methods to FileHandler
David Cook [Fri, 31 Jan 2020 00:38:30 +0000 (18:38 -0600)]
Add methods to FileHandler

4 years agoStyle fixes
David Cook [Fri, 31 Jan 2020 00:31:34 +0000 (18:31 -0600)]
Style fixes

4 years agoAdd comment
David Cook [Wed, 29 Jan 2020 05:18:09 +0000 (23:18 -0600)]
Add comment

4 years agoAdd F_DUPFD/F_DUPFD_CLOEXEC to fcntl shim
David Cook [Sun, 26 Jan 2020 17:19:06 +0000 (11:19 -0600)]
Add F_DUPFD/F_DUPFD_CLOEXEC to fcntl shim

4 years agoAuto merge of #1176 - RalfJung:readme, r=oli-obk
bors [Sun, 16 Feb 2020 21:48:38 +0000 (21:48 +0000)]
Auto merge of #1176 - RalfJung:readme, r=oli-obk

update Readme

4 years agoclarify caveats
Ralf Jung [Sun, 16 Feb 2020 11:38:00 +0000 (12:38 +0100)]
clarify caveats

4 years agoupdate README
Ralf Jung [Sun, 16 Feb 2020 11:37:15 +0000 (12:37 +0100)]
update README

4 years agoAuto merge of #1177 - RalfJung:debug-assert, r=RalfJung
bors [Sun, 16 Feb 2020 13:04:06 +0000 (13:04 +0000)]
Auto merge of #1177 - RalfJung:debug-assert, r=RalfJung

Make sure we evaluate debug assertions in local crate and libstd

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

4 years agofix compile-fail tests to avoid libstd debug assertions
Ralf Jung [Sun, 16 Feb 2020 13:01:00 +0000 (14:01 +0100)]
fix compile-fail tests to avoid libstd debug assertions

4 years agomake sure we also trigger debug assertions in libstd
Ralf Jung [Sun, 16 Feb 2020 12:55:51 +0000 (13:55 +0100)]
make sure we also trigger debug assertions in libstd

4 years agomake sure assertions and debug-assertions also panic (and can be caught)
Ralf Jung [Sun, 16 Feb 2020 12:47:31 +0000 (13:47 +0100)]
make sure assertions and debug-assertions also panic (and can be caught)

4 years agoAuto merge of #1158 - divergentdave:shim-rename, r=RalfJung
bors [Fri, 14 Feb 2020 20:26:23 +0000 (20:26 +0000)]
Auto merge of #1158 - divergentdave:shim-rename, r=RalfJung

Add shim for rename

This adds a straightforward shim for rename, which is used by `std::fs::rename`. Testing is included.

As a heads up, I expect one or two merge conflicts between my PRs, since some of them touch the same `use` statements, or add items near the same places. I'll rebase and fix them as they come up.

4 years agoRemoving file after rename must succeed
David Cook [Fri, 14 Feb 2020 14:19:16 +0000 (08:19 -0600)]
Removing file after rename must succeed

Co-Authored-By: Ralf Jung <post@ralfj.de>
4 years agoAuto merge of #1174 - RalfJung:rusutp, r=RalfJung
bors [Fri, 14 Feb 2020 08:00:51 +0000 (08:00 +0000)]
Auto merge of #1174 - RalfJung:rusutp, r=RalfJung

Rustup

4 years agorustup
Ralf Jung [Fri, 14 Feb 2020 07:59:42 +0000 (08:59 +0100)]
rustup

4 years agofix for Panic InterpError refactoring
Ralf Jung [Thu, 13 Feb 2020 13:01:35 +0000 (14:01 +0100)]
fix for Panic InterpError refactoring

4 years agoAuto merge of #1172 - RalfJung:rustup, r=RalfJung
bors [Wed, 12 Feb 2020 21:05:30 +0000 (21:05 +0000)]
Auto merge of #1172 - RalfJung:rustup, r=RalfJung

Rustup

and also a test for https://github.com/rust-lang/rust/issues/68303

4 years agoadd test for layout optimizations
Ralf Jung [Wed, 12 Feb 2020 20:50:54 +0000 (21:50 +0100)]
add test for layout optimizations

4 years agorustup
Ralf Jung [Wed, 12 Feb 2020 20:44:09 +0000 (21:44 +0100)]
rustup

4 years agoTest that src path of rename is no longer a file
David Cook [Sun, 9 Feb 2020 04:40:46 +0000 (22:40 -0600)]
Test that src path of rename is no longer a file

4 years agoAdd shim for rename
David Cook [Sun, 26 Jan 2020 22:45:05 +0000 (16:45 -0600)]
Add shim for rename

4 years agoAuto merge of #1159 - divergentdave:shim-seek, r=RalfJung
bors [Sat, 8 Feb 2020 13:54:33 +0000 (13:54 +0000)]
Auto merge of #1159 - divergentdave:shim-seek, r=RalfJung

Add shim for seeking files

This adds a shim for `lseek64` (`lseek` on macOS). This enables the use of `<File as Seek>::seek`. Testing is included.

4 years agoAuto merge of #1169 - RalfJung:rustup, r=RalfJung
bors [Fri, 7 Feb 2020 13:21:15 +0000 (13:21 +0000)]
Auto merge of #1169 - RalfJung:rustup, r=RalfJung

rustup; fix generator test

4 years agopanics dont work on Windows, just the smoke test should be enough
Ralf Jung [Fri, 7 Feb 2020 13:19:58 +0000 (14:19 +0100)]
panics dont work on Windows, just the smoke test should be enough

4 years agotest more generator resume things
Ralf Jung [Fri, 7 Feb 2020 13:02:36 +0000 (14:02 +0100)]
test more generator resume things

4 years agorustup; fix generator test
Ralf Jung [Fri, 7 Feb 2020 12:47:39 +0000 (13:47 +0100)]
rustup; fix generator test

4 years agoAdd tests to cover SEEK_CUR and SEEK_END
David Cook [Thu, 6 Feb 2020 23:50:33 +0000 (17:50 -0600)]
Add tests to cover SEEK_CUR and SEEK_END

4 years agoAuto merge of #1168 - RalfJung:rustup, r=RalfJung
bors [Thu, 6 Feb 2020 10:25:32 +0000 (10:25 +0000)]
Auto merge of #1168 - RalfJung:rustup, r=RalfJung

Rustup

4 years agoalso test div-by-minus-1
Ralf Jung [Thu, 6 Feb 2020 10:24:38 +0000 (11:24 +0100)]
also test div-by-minus-1

4 years agobump rustc; adjust tests
Ralf Jung [Thu, 6 Feb 2020 10:20:28 +0000 (11:20 +0100)]
bump rustc; adjust tests

4 years agoAuto merge of #1165 - JohnTitor:uprust, r=RalfJung
bors [Sun, 2 Feb 2020 13:49:22 +0000 (13:49 +0000)]
Auto merge of #1165 - JohnTitor:uprust, r=RalfJung

Bump rustc

The latest toolstate failure is already fixed (3d8bf92a11f348d8dd2183873ca60e2e4859e5b9), we should only bump rustc and update submodule, I think.
cc: rust-lang/rust#68757

r? @RalfJung

4 years agoBump rustc
Yuki Okushi [Sun, 2 Feb 2020 09:45:53 +0000 (18:45 +0900)]
Bump rustc

4 years agoAuto merge of #1164 - RalfJung:cargo-install, r=RalfJung
bors [Fri, 31 Jan 2020 11:07:24 +0000 (11:07 +0000)]
Auto merge of #1164 - RalfJung:cargo-install, r=RalfJung

rely on improved cargo install

`cargo install` will now update old versions, and not fail if things are up-to-date.

4 years agorely on improved cargo install
Ralf Jung [Fri, 31 Jan 2020 10:38:07 +0000 (11:38 +0100)]
rely on improved cargo install

4 years agoAuto merge of #1163 - RalfJung:raw-cast, r=RalfJung
bors [Thu, 30 Jan 2020 22:20:36 +0000 (22:20 +0000)]
Auto merge of #1163 - RalfJung:raw-cast, r=RalfJung

Test raw-ptr-cast without reborrow

With https://github.com/rust-lang/rust/pull/64588 landed, we can finally test these things adequately. :)

4 years agoAuto merge of #1151 - divergentdave:statx-AT_EMPTY_PATH, r=RalfJung
bors [Thu, 30 Jan 2020 21:30:32 +0000 (21:30 +0000)]
Auto merge of #1151 - divergentdave:statx-AT_EMPTY_PATH, r=RalfJung

Add support for AT_EMPTY_PATH to statx shim

This enables use of `File::metadata()`.

4 years agopass MPlaceTy by-value, as we usually do
Ralf Jung [Thu, 30 Jan 2020 12:38:49 +0000 (13:38 +0100)]
pass MPlaceTy by-value, as we usually do

4 years agoupdate another comment
Ralf Jung [Thu, 30 Jan 2020 12:29:55 +0000 (13:29 +0100)]
update another comment

4 years agoremove inadequate comment
Ralf Jung [Thu, 30 Jan 2020 11:22:54 +0000 (12:22 +0100)]
remove inadequate comment

4 years agonew compile-fail test involving non-reborrowing-cast-to-raw
Ralf Jung [Thu, 30 Jan 2020 11:21:37 +0000 (12:21 +0100)]
new compile-fail test involving non-reborrowing-cast-to-raw

4 years agoadd test that relies on non-reborrowing-cast-to-raw
Ralf Jung [Thu, 30 Jan 2020 11:17:02 +0000 (12:17 +0100)]
add test that relies on non-reborrowing-cast-to-raw

4 years agoError with EINVAL on unsupported `whence` argument
David Cook [Thu, 30 Jan 2020 01:04:18 +0000 (19:04 -0600)]
Error with EINVAL on unsupported `whence` argument

4 years agoAuto merge of #1154 - TimDiekmann:rename-alloc, r=RalfJung
bors [Wed, 29 Jan 2020 21:44:06 +0000 (21:44 +0000)]
Auto merge of #1154 - TimDiekmann:rename-alloc, r=RalfJung

Rename `Alloc` to `AllocRef`

Required to land https://github.com/rust-lang/rust/pull/68529. Please see that PR for details. The CI is expected to fail until the PR is landed.

4 years agoAuto merge of #1155 - divergentdave:shim-posix_fadivse, r=RalfJung
bors [Wed, 29 Jan 2020 21:24:30 +0000 (21:24 +0000)]
Auto merge of #1155 - divergentdave:shim-posix_fadivse, r=RalfJung

Add no-op shim for posix_fadvise

This function is present in the libc crate, but not exposed through the standard library anywhere, so I haven't included a test for it.

4 years agoUpdate comment
David Cook [Wed, 29 Jan 2020 04:59:28 +0000 (22:59 -0600)]
Update comment

4 years agoBump rust version
Tim Diekmann [Wed, 29 Jan 2020 03:10:40 +0000 (04:10 +0100)]
Bump rust version

4 years agoRename `Alloc` to `AllocRef`
Tim Diekmann [Sun, 26 Jan 2020 18:50:26 +0000 (19:50 +0100)]
Rename `Alloc` to `AllocRef`

Required to land https://github.com/rust-lang/rust/pull/68529. Please see that PR for details. The CI is expected to fail until the PR is landed.

4 years agoConditional compilation fix
David Cook [Wed, 29 Jan 2020 02:39:06 +0000 (20:39 -0600)]
Conditional compilation fix

4 years agoDisable posix_fadvise test on macOS, not in libc
David Cook [Wed, 29 Jan 2020 01:57:56 +0000 (19:57 -0600)]
Disable posix_fadvise test on macOS, not in libc

4 years agoChange function name, comments, and error message
David Cook [Wed, 29 Jan 2020 01:43:55 +0000 (19:43 -0600)]
Change function name, comments, and error message

4 years agoTry fixing test on i686-unknown-linux-gnu
David Cook [Wed, 29 Jan 2020 01:04:16 +0000 (19:04 -0600)]
Try fixing test on i686-unknown-linux-gnu

4 years agoMove posix_fadvise test to new libc test file
David Cook [Wed, 29 Jan 2020 00:59:49 +0000 (18:59 -0600)]
Move posix_fadvise test to new libc test file

4 years agoAuto merge of #1162 - RalfJung:track-fn-ptr, r=RalfJung
bors [Tue, 28 Jan 2020 21:57:00 +0000 (21:57 +0000)]
Auto merge of #1162 - RalfJung:track-fn-ptr, r=RalfJung

test track_caller with fn ptrs

Looks like we already use `ReifyShim` the right way, let's just make sure we test that!

4 years agotest track_caller with fn ptrs
Ralf Jung [Tue, 28 Jan 2020 21:55:07 +0000 (22:55 +0100)]
test track_caller with fn ptrs

4 years agoAuto merge of #1148 - yoshuawuyts:patch-1, r=RalfJung
bors [Tue, 28 Jan 2020 16:25:45 +0000 (16:25 +0000)]
Auto merge of #1148 - yoshuawuyts:patch-1, r=RalfJung

Document miri can only be installed on nightly

This updates the installation instructions to point out that miri is only available on nightly, and encodes this assumption into the installation instructions.

It took me a bit of research to find out *why* miri wasn't installing on `windows-msvc`:
```txt
C:\Users\yoshu> rustup component add miri
error: component 'miri' for target 'x86_64-pc-windows-msvc' is unavailable for download for channel stable
```

I thought it must 've been something with the `msvc` target, but it turned out I was running on `stable`, and miri can only be installed on `nightly`. Having that be clearer in the installation instructions would've saved me some time debugging. Thanks!

4 years agoAdd test for posix_fadvise
David Cook [Mon, 27 Jan 2020 12:28:45 +0000 (06:28 -0600)]
Add test for posix_fadvise

4 years agoApply shim to lseek too (for macOS)
David Cook [Mon, 27 Jan 2020 00:07:31 +0000 (18:07 -0600)]
Apply shim to lseek too (for macOS)

4 years agoAdd no-op shim for posix_fadvise
David Cook [Sun, 26 Jan 2020 21:10:01 +0000 (15:10 -0600)]
Add no-op shim for posix_fadvise

4 years agoAdd shim for lseek64
David Cook [Sun, 26 Jan 2020 18:36:36 +0000 (12:36 -0600)]
Add shim for lseek64

4 years agoAdd fstat shim for OSX
David Cook [Sun, 26 Jan 2020 17:58:08 +0000 (11:58 -0600)]
Add fstat shim for OSX

4 years agoAuto merge of #1153 - RalfJung:uprust, r=RalfJung
bors [Sun, 26 Jan 2020 17:07:13 +0000 (17:07 +0000)]
Auto merge of #1153 - RalfJung:uprust, r=RalfJung

bump rustc

4 years agobump rustc
Ralf Jung [Sun, 26 Jan 2020 17:06:13 +0000 (11:06 -0600)]
bump rustc

4 years agoAdd support for AT_EMPTY_PATH to statx shim
David Cook [Sun, 26 Jan 2020 04:21:33 +0000 (22:21 -0600)]
Add support for AT_EMPTY_PATH to statx shim

4 years agoAuto merge of #1150 - divergentdave:patch-1, r=RalfJung
bors [Sat, 25 Jan 2020 20:13:21 +0000 (20:13 +0000)]
Auto merge of #1150 - divergentdave:patch-1, r=RalfJung

Shim intrinsics::atomic_singlethreadfence, etc.

This applies the no-op shim for atomic fences to `atomic_singlethreadfence` and related intrinsics.

4 years agoAdd compiler fences to test
David Cook [Sat, 25 Jan 2020 19:48:26 +0000 (13:48 -0600)]
Add compiler fences to test

4 years agoShim intrinsics::atomic_singlethreadfence, etc.
David Cook [Sat, 25 Jan 2020 01:02:58 +0000 (19:02 -0600)]
Shim intrinsics::atomic_singlethreadfence, etc.

4 years agoAuto merge of #1149 - RalfJung:rustup, r=RalfJung
bors [Sun, 19 Jan 2020 16:06:19 +0000 (16:06 +0000)]
Auto merge of #1149 - RalfJung:rustup, r=RalfJung

slice_patterns is stable now

4 years agoslice_patterns is stable now
Ralf Jung [Sun, 19 Jan 2020 16:03:18 +0000 (10:03 -0600)]
slice_patterns is stable now

4 years agoDocument miri can only be installed on nightly
Yoshua Wuyts [Sat, 18 Jan 2020 15:21:30 +0000 (16:21 +0100)]
Document miri can only be installed on nightly

This updates the installation instructions to point out that miri is only available on nightly, and encodes this assumption into the installation instructions.

4 years agoAuto merge of #1146 - RalfJung:rustup, r=RalfJung
bors [Wed, 15 Jan 2020 18:36:23 +0000 (18:36 +0000)]
Auto merge of #1146 - RalfJung:rustup, r=RalfJung

Rustup

4 years agorustup more
Ralf Jung [Wed, 15 Jan 2020 18:35:41 +0000 (19:35 +0100)]
rustup more

4 years agorustup
Ralf Jung [Wed, 15 Jan 2020 18:27:21 +0000 (19:27 +0100)]
rustup

4 years agoAuto merge of #1145 - jethrogb:patch-1, r=oli-obk
bors [Tue, 14 Jan 2020 08:01:52 +0000 (08:01 +0000)]
Auto merge of #1145 - jethrogb:patch-1, r=oli-obk

Update .gitattributes

See https://github.com/rust-lang/rust/pull/57858

4 years agoUpdate .gitattributes
jethrogb [Tue, 14 Jan 2020 04:06:58 +0000 (20:06 -0800)]
Update .gitattributes

See https://github.com/rust-lang/rust/pull/57858

4 years agoAuto merge of #1143 - christianpoveda:symlink-shim, r=RalfJung
bors [Fri, 10 Jan 2020 17:21:12 +0000 (17:21 +0000)]
Auto merge of #1143 - christianpoveda:symlink-shim, r=RalfJung

Add shim for symbolic link creation

r? @RalfJung

4 years agofix windows symlink creation
Christian Poveda [Fri, 10 Jan 2020 17:18:24 +0000 (12:18 -0500)]
fix windows symlink creation

4 years agosmall corrections
Christian Poveda [Fri, 10 Jan 2020 17:01:05 +0000 (12:01 -0500)]
small corrections

4 years agoAuto merge of #1127 - rust-lang:stacked_borrow_tracing, r=RalfJung
bors [Thu, 9 Jan 2020 11:43:26 +0000 (11:43 +0000)]
Auto merge of #1127 - rust-lang:stacked_borrow_tracing, r=RalfJung

Add a scheme for emitting errors without halting interpretation

cc #797

4 years agoDocument all the things
Oliver Scherer [Thu, 9 Jan 2020 11:42:56 +0000 (12:42 +0100)]
Document all the things

4 years agoRemove trailing newline
Oliver Scherer [Thu, 9 Jan 2020 11:38:58 +0000 (12:38 +0100)]
Remove trailing newline

4 years agoAuto merge of #1144 - RalfJung:panic-location, r=RalfJung
bors [Thu, 9 Jan 2020 10:42:02 +0000 (10:42 +0000)]
Auto merge of #1144 - RalfJung:panic-location, r=RalfJung

test that unwrap gets us the right panic location

Make sure this stuff works in Miri as well -- basically, an integration test for `track_caller` and the panic machinery (we already have more focused tests as well).

4 years agoUnwind panicking does not currently work on Windows
Ralf Jung [Thu, 9 Jan 2020 10:41:08 +0000 (11:41 +0100)]
Unwind panicking does not currently work on Windows

4 years agoalso make sure the hook actually gets called
Ralf Jung [Thu, 9 Jan 2020 10:24:41 +0000 (11:24 +0100)]
also make sure the hook actually gets called

4 years agotest that unwrap gets us the right panic location
Ralf Jung [Thu, 9 Jan 2020 10:20:13 +0000 (11:20 +0100)]
test that unwrap gets us the right panic location