Ralf Jung
d5beecb79c
correct factual mistake in Windows message, and use "+" sugar
2020-04-02 15:16:20 +02:00
bors
82d46b4f32
Auto merge of #1296 - RalfJung:rustup, r=RalfJung
...
rustup for AllocRef changes
Cc https://github.com/rust-lang/rust/pull/70362
2020-04-02 11:34:49 +00:00
Ralf Jung
cd132f563e
port compile-fail allocator tests to stable API
2020-04-02 13:33:59 +02:00
Ralf Jung
033eae5ad7
rustup for AllocRef changes
2020-04-02 11:45:17 +02:00
bors
094fec3e47
Auto merge of #1295 - RalfJung:ci-no-incremental, r=RalfJung
...
set CARGO_INCREMENTAL=0 on CI
it's just a waste of time there
2020-04-02 07:54:50 +00:00
Ralf Jung
0b07f6f5d3
set CARGO_INCREMENTAL=0 on CI, it's just a waste of time there
2020-04-02 09:49:48 +02:00
bors
ed1432862a
Auto merge of #1283 - RalfJung:backtrace, r=RalfJung
...
Make backtrace function names and spans match up
This is the Miri side of https://github.com/rust-lang/rust/pull/70590 .
Fixes https://github.com/rust-lang/miri/issues/521
2020-04-02 07:32:44 +00:00
Ralf Jung
5ce2466892
fix for FieldPlacement rename
2020-04-02 09:19:56 +02:00
Ralf Jung
165dfd78a9
rustup
2020-04-02 09:14:23 +02:00
Ralf Jung
f599687f3f
adjust for span not being passed around any more
2020-04-02 09:14:17 +02:00
Ralf Jung
5130aa55a2
adjust stacktrace printing to rustc changes
2020-04-02 09:14:17 +02:00
bors
77a307fe7d
Auto merge of #1292 - RalfJung:time, r=RalfJung
...
sanity check time values a bit more
2020-04-01 18:34:59 +00:00
Ralf Jung
41d90709f2
sanity check time values a bit more
2020-04-01 20:34:12 +02:00
bors
6536f3165e
Auto merge of #1290 - RalfJung:rustup, r=RalfJung
...
Rustup
Also remove ICEing `breakpoint` intrinsic shim.
2020-04-01 17:59:33 +00:00
Ralf Jung
1e3800ffb1
rustup
2020-04-01 19:40:10 +02:00
bors
ee967c1b2f
Auto merge of #1286 - JOE1994:windows_time, r=RalfJung
...
Implement 'GetSystemTimeAsFileTime' shim for Windows
Implement `GetSystemTimeAsFileTime` shim for Windows.
Closes #997
2020-04-01 17:36:04 +00:00
Ralf Jung
3911388e06
remove ICEin intrinsic
2020-04-01 19:12:26 +02:00
JOE1994
b3f9e53049
Implement 'GetSystemTimeAsFileTime' shim for Windows
2020-04-01 10:55:26 -04:00
bors
552775b593
Auto merge of #1287 - RalfJung:time-sub, r=RalfJung
...
test subtracting SystemTime and Instant
2020-03-31 15:53:44 +00:00
Ralf Jung
26b5012368
add TODO
2020-03-31 17:53:27 +02:00
Ralf Jung
62eaecd2aa
test subtracting SystemTime and Instant
2020-03-31 17:50:10 +02:00
bors
d1e06b4298
Auto merge of #1282 - RalfJung:rustup, r=RalfJung
...
rustup; fix Windows env var memory type
2020-03-30 20:14:50 +00:00
Ralf Jung
1cfd80ea2d
rustup; fix Windows env var memory type
2020-03-30 22:13:53 +02:00
bors
45b6891bf9
Auto merge of #1270 - RalfJung:incremental, r=RalfJung
...
miri build script: use incremental builds
I somehow thought that was already the default, but seems like it is not?
2020-03-30 17:56:33 +00:00
bors
319f2dd9e1
Auto merge of #1279 - divergentdave:open_O_EXCL, r=RalfJung
...
Add support for OpenOptions::create_new()/O_EXCL
This PR extends the POSIX shim for `open` to support the `O_EXCL` flag, when it is used alongside `O_CREAT`, and exercises it by testing `OpenOptions::create_new`.
2020-03-30 15:49:45 +00:00
bors
7743a73be7
Auto merge of #1281 - RalfJung:rustup, r=RalfJung
...
adjust for librustc rename; reduce 'extern crate' to rustc crates
2020-03-30 09:09:20 +00:00
Ralf Jung
8948a29a4c
adjust for librustc rename; reduce 'extern crate' to rustc crates
2020-03-30 11:07:32 +02:00
bors
a50d87f016
Auto merge of #1280 - RalfJung:rustup, r=RalfJung
...
rustup; fix for TyLayout rename
2020-03-30 08:24:40 +00:00
Ralf Jung
846ce3c261
test const-generic Vec::from(array)
2020-03-30 10:23:16 +02:00
Ralf Jung
5ff7eef2ff
rustup; fix for TyLayout rename
2020-03-30 10:23:04 +02:00
bors
2d508739cb
Auto merge of #1278 - JOE1994:cow, r=RalfJung
...
make 'fn convert_path_separator' to take 'Cow<>' as argument
Fixed `fn convert_path_separator()` to take `Cow<>` as argument,
in order to prevent unnecessary allocation when target & host path separators are equal.
2020-03-29 22:43:36 +00:00
David Cook
808709c288
Add support for OpenOptions::create_new()/O_EXCL
2020-03-29 16:06:41 -05:00
JOE1994
ed1305d986
fix fn read_path_from_wide_str
2020-03-29 16:01:07 -04:00
JOE1994
a458cf3fe6
make 'fn convert_path_separator' to take Cow<> (to remove unnecessary allocation)
2020-03-29 14:19:59 -04:00
bors
3504d52668
Auto merge of #1268 - JOE1994:dir, r=RalfJung
...
Windows shims for GetCurrentDirectoryW/SetCurrentDirectoryW
Implemented shims for Windows
* [GetCurrentDirectoryW](75208942f6/src/libstd/sys/windows/os.rs (L242)
) (`getcwd` for Windows)
* [SetCurrentDirectoryW](75208942f6/src/libstd/sys/windows/os.rs (L250)
) (`chdir` for Windows)
Currently passes test :
`./miri run tests/run-pass/current_dir.rs -Zmiri-disable-isolation`
2020-03-29 17:19:57 +00:00
JOE1994
9bdb4bbbbf
Move definition of 'fn windows_check_buffer_size' to top of 'src/shims/env.rs'
2020-03-29 13:13:42 -04:00
JOE1994
1b0abc5797
small refactorings to 'src/shims/os_str.rs' & 'src/shims/env.rs'
2020-03-29 13:10:23 -04:00
JOE1994
1667ded0d2
fix fn GetCurrentDirectoryW + clarify return types of Windows shims
2020-03-29 11:30:42 -04:00
JOE1994
7e0cc8307e
fix 'magic boolean' to enum
2020-03-29 11:30:08 -04:00
JOE1994
fe9ecb50d1
Follow-up to reviews from RalfJung
...
1. Fix 'fn convert_path_separator' in src/shims/os_str.rs
2. Fix 'fn set_last_error_from_io_error' in src/helpers.rs
3. Minor comment fix for 'fn SetCurrentDirectoryW' in src/shims/env.rs
2020-03-29 11:30:08 -04:00
JOE1994
1141b21e50
Windows shims for GetCurrentDirectoryW/SetCurrentDirectoryW
2020-03-29 11:30:08 -04:00
JOE1994
a481b8f261
partially implement 'set_last_error_from_io_error' for Windows
2020-03-29 11:30:08 -04:00
bors
c706f50e3f
Auto merge of #1277 - RalfJung:rustup, r=RalfJung
...
rustup
Fix for some renames
2020-03-29 08:02:10 +00:00
Ralf Jung
f181e75db2
rustup
2020-03-29 10:01:31 +02:00
bors
7a5e95c9ac
Auto merge of #1276 - RalfJung:scalar-precise-sizes, r=RalfJung
...
Construct Scalar with precise sizes
2020-03-28 18:16:13 +00:00
Ralf Jung
d6795a77b4
precise getrandom return type and align_offset arithmetic
2020-03-28 17:47:00 +01:00
Ralf Jung
b7fec6b17f
use ptr_null where appropriate
2020-03-28 17:38:38 +01:00
Ralf Jung
fbbca59de7
avoid Scalar::from_(u)int in favor of giving the size explicitly
2020-03-28 17:35:40 +01:00
bors
ad14b684cc
Auto merge of #1275 - JOE1994:move_string_helpers, r=RalfJung
...
move OsStr helpers to a separate file
Moved OsStr read/write functions from `src/helpers.rs` to `src/shims/os_str.rs`, in order to keep `src/helpers.rs` from bloating too much.
2020-03-28 15:32:16 +00:00
JOE1994
4a70ebc1f3
visually separate conditional imports in 'os_str.rs'
2020-03-28 11:20:16 -04:00