Ralf Jung
a90ac3b0ec
disable num_cpus on Windows for now
2019-11-08 09:16:44 +01:00
Christian Poveda
4bbaa72dc9
Use TryFrom instead
2019-11-07 20:50:16 +01:00
Ralf Jung
428fc531d8
silence a lint that catches the bug statically
2019-11-07 09:44:00 +01:00
bors
5dc433a13d
Auto merge of #1039 - RalfJung:dyn-tests, r=RalfJung
...
More tests for dyn trait (in particular, unsized receivers)
So far we only tested them indirectly through `dyn FnOnce`; this also adds some self-contained tests from the rustc test suite.
2019-11-07 08:18:09 +00:00
Ralf Jung
57dec5c791
also test Box<self> receiver
2019-11-07 09:17:40 +01:00
Ralf Jung
b7a8ce1be0
move blosure tests to closures file; test Box<dyn> a bit more
2019-11-07 09:14:23 +01:00
Ralf Jung
04c12952ca
centralize and expand dyn-trait (method receiver) tests
2019-11-07 09:05:11 +01:00
Ralf Jung
c77b282695
rename call_drop_ tests to drop_
2019-11-07 08:56:11 +01:00
Ralf Jung
8b1630cb3b
tweak and slightly extend box-box-trait test
2019-11-07 08:55:59 +01:00
bors
0740a2040f
Auto merge of #1037 - JOE1994:master, r=RalfJung
...
error code E0080 is no longer printed with MIRI error message
Thanks to help from @bjorn3, @RalfJung, and @oli-obk on issue #1035 , I fixed the miri code so that error code **E0080** is no longer printed out for MIRI evaluation errors. I tested my code in my Linux machine as below.
![image](https://user-images.githubusercontent.com/10286488/68264744-e71e6c80-0017-11ea-9028-f83e19164ea2.png )
Remaining concern is whether the variable name `new_tcx` which I used is misleading or not.
Fixes https://github.com/rust-lang/miri/issues/1035
2019-11-06 13:39:22 +00:00
YOUNGSUK KIM
e5675ab0fc
follow-up to review
2019-11-06 08:25:00 -05:00
bors
4ddc37df7a
Auto merge of #1031 - RalfJung:ptr-offset, r=RalfJung
...
Refactor ptr_offset_inbounds
I finally found a way to write this using basically just `check_ptr_access` while handling all cases (integers and pointers, offset 0 or not) correctly. This changes behavior for NULL ptrs, but I think the change is for the better.
Depends on https://github.com/rust-lang/rust/pull/66081 .
2019-11-06 09:51:32 +00:00
Ralf Jung
8b0c14f9f6
ptr_offset: handle negative offsets
2019-11-06 10:51:06 +01:00
Ralf Jung
b2a2f4dd15
rustup
2019-11-06 09:25:02 +01:00
Ralf Jung
4b9a7d8cff
fix error message details
2019-11-06 09:24:26 +01:00
Ralf Jung
1f8cb476ea
fix test erorr msg
2019-11-06 09:24:26 +01:00
Ralf Jung
9eb4e00f6f
refactor ptr_offset_inbounds: it can be reduced to check_ptr_access, after all!
2019-11-06 09:24:26 +01:00
Ralf Jung
c4f1d3f488
test that 0 cannot be offset-inbounds by 0
2019-11-06 09:24:26 +01:00
YOUNGSUK KIM
2661295cdf
error code E0080 is no longer printed with MIRI error message
2019-11-05 21:56:18 -05:00
Christian Poveda
f910ea135c
Avoid using as
cast
2019-11-05 16:47:24 -05:00
bors
61fd7e3093
Auto merge of #1032 - RalfJung:offset-from, r=RalfJung
...
test offset_from
This currently fails and needs a rustc fix: https://github.com/rust-lang/rust/pull/66083
2019-11-05 19:18:22 +00:00
Ralf Jung
3847334e72
rustup
2019-11-05 20:17:45 +01:00
Ralf Jung
f4fb330c67
test offset_from
2019-11-05 20:17:35 +01:00
bors
9f0b99bae3
Auto merge of #1036 - RalfJung:stacked-borrows-test, r=RalfJung
...
add an interesting run-pass stacked borrows example
2019-11-05 10:05:59 +00:00
Ralf Jung
99282efc86
add an interesting run-pass stacked borrows example
2019-11-05 11:05:02 +01:00
Christian Poveda
56c5e53553
Handle host's usize
correctly
2019-11-04 09:38:21 -05:00
bors
f74054f0bf
Auto merge of #1030 - RalfJung:mir-opt-comment, r=RalfJung
...
update comment re: not using higher mir-opt-level
2019-11-04 10:18:27 +00:00
Ralf Jung
9b4ceec60e
update comment re: not using higher mir-opt-level
2019-11-04 11:17:40 +01:00
Christian Poveda
d0b4407b25
Fix casts for count
check
2019-11-03 10:04:00 -06:00
bors
727e77844e
Auto merge of #1029 - RalfJung:panic-if-uninhabited, r=RalfJung
...
calling panic_if_uninhabited is not actually UB
2019-11-03 14:40:15 +00:00
Ralf Jung
955a26fb08
calling panic_if_uninhabited is not actually UB
2019-11-03 15:39:03 +01:00
bors
4f7171585f
Auto merge of #961 - rust-lang:exact_div_reuse, r=RalfJung
...
Use the upstream `exact_div` implementation
introduced in https://github.com/rust-lang/rust/pull/63810
2019-11-03 09:16:55 +00:00
Ralf Jung
fcf0f886d4
adjust tests
2019-11-03 10:15:55 +01:00
Ralf Jung
5a5fa15382
style
2019-11-03 10:03:30 +01:00
Ralf Jung
47bfd84c98
rustup
2019-11-03 10:02:32 +01:00
Oliver Scherer
7a39460e24
Use the upstream exact_div
implementation
2019-11-03 09:34:48 +01:00
bors
22d0546aed
Auto merge of #1028 - RalfJung:place-apis, r=RalfJung
...
use Place API instead of Allocation API
2019-11-02 10:53:37 +00:00
Ralf Jung
ddb1fc9205
store scalars where appropriate
2019-11-02 11:50:21 +01:00
Ralf Jung
1e0b398cb6
Windows cmdline: avoid accessing allocations directly
2019-11-02 11:48:28 +01:00
bors
d4e4fe71e6
Auto merge of #1027 - RalfJung:typo, r=RalfJung
...
fix typo
2019-10-30 14:06:23 +00:00
Ralf Jung
90634121b3
fix typo
2019-10-30 15:05:44 +01:00
bors
8c09bfee2f
Auto merge of #1026 - RalfJung:rustup, r=RalfJung
...
rustup for span in intrinsic emulation
2019-10-30 09:17:35 +00:00
Ralf Jung
15ae234a42
rustup for span in intrinsic emulation
2019-10-30 10:16:58 +01:00
Christian Poveda
06ef77bfef
Check for usize to i64 overflows
2019-10-28 16:44:18 -05:00
bors
4dbc90b443
Auto merge of #1025 - mati865:deps, r=RalfJung
...
Bump dependencies
2019-10-28 11:12:03 +00:00
Mateusz Mikuła
b40351c53a
Bump dependencies
2019-10-27 23:01:01 +01:00
Christian Poveda
122549fd09
Simplify read
logic
2019-10-26 09:03:45 -05:00
Christian Poveda
d7967f6b05
Drop files explicitly when closing them
2019-10-26 08:54:02 -05:00
bors
d9ae028516
Auto merge of #1024 - RalfJung:rustup, r=RalfJung
...
rustup for projection interning
2019-10-26 07:33:58 +00:00
Ralf Jung
d8a3a1f09c
rustup for projection interning
2019-10-26 09:33:24 +02:00