Commit Graph

1463 Commits

Author SHA1 Message Date
Oliver Schneider
03577a905a Fix some clippy warnings 2017-06-12 13:56:29 +02:00
Oliver Schneider
ec8cd6da29 Merge pull request #194 from RalfJung/test
Enable a test that was accidentally left disabled
2017-06-12 08:06:39 +02:00
Oliver Schneider
7b9abf7e0a Merge pull request #193 from RalfJung/xargo
Rustup 1.4 fixed the permissions of the extracted files
2017-06-12 08:05:13 +02:00
Ralf Jung
4ac9fa67a4 enable a test that was accidentally left disabled 2017-06-11 21:16:05 -07:00
Ralf Jung
7504512cbd rustup 1.4 fixed the permissions of the extracted files 2017-06-11 17:24:38 -07:00
Eduard-Mihai Burtescu
cb10f2f369 Merge pull request #192 from dwrensha/rustup
update for latest nightly rustc
2017-06-11 04:39:33 +03:00
David Renshaw
f174cc8a4c tcx.infer_ctxt() no longer takes an argument 2017-06-10 20:39:48 -04:00
Oliver Schneider
2daf62f714 Merge pull request #188 from RalfJung/overflow
Bail out on overflow
2017-06-08 21:34:31 +02:00
Ralf Jung
3a5abf031b fix comment in aux_test 2017-06-08 11:34:49 -07:00
Ralf Jung
e0559a6b24 typos 2017-06-08 10:56:49 -07:00
Ralf Jung
3e1596d8c9 Error out when "primitive MIR math" (as opposed to unchecked intrinsics) overflows
Fixes #178
2017-06-07 15:39:44 -07:00
Ralf Jung
e1562fbe71 comments 2017-06-06 10:15:54 -07:00
Oliver Schneider
cad0188c72 Merge pull request #187 from dwrensha/fix-issue-184-mark-packed
fix issue 184 by marking the destination as a packed struct
2017-06-06 17:47:04 +02:00
David Renshaw
49fb43f293 use type_align() and type_size() instaed of size_and_align_of_dst() 2017-06-06 10:29:53 -04:00
David Renshaw
c8be312933 fix issue 184 by marking the destination as a packed struct 2017-06-06 09:49:34 -04:00
Oliver Schneider
58a46392c1 Merge pull request #185 from RalfJung/pointers
Various pointer-related things
2017-06-06 11:01:50 +02:00
Ralf Jung
91b93bc701 less strict kind test for pointer operations 2017-06-05 18:23:25 -07:00
Ralf Jung
684de68d6c properly wrap pointer offsets at pointer size 2017-06-05 18:07:26 -07:00
Ralf Jung
7bfda59fe2 don't bother inserting integer relocations into the relocation table 2017-06-05 17:17:16 -07:00
Ralf Jung
36505c7b40 fix bitops being accidentally allowed on pointers from the same allocation 2017-06-05 17:17:16 -07:00
Ralf Jung
a6e6a6fd29 Add some more tests involving Offset/arith_offset and ZST pointers 2017-06-05 15:19:07 -07:00
Ralf Jung
a291153414 Permit ptr->int->ptr roundtrip 2017-06-05 15:18:40 -07:00
Oliver Schneider
c16f24b133 Merge pull request #177 from RalfJung/drop-glue
remove our array drop glue and use rustc's instead
2017-06-05 23:40:01 +02:00
Ralf Jung
2a231d66fc check bounds when using offset intrinsic or MIR op 2017-06-05 14:27:26 -07:00
Ralf Jung
f39e015163 check for overflow when doing pointer arithmetic 2017-06-05 14:23:35 -07:00
Ralf Jung
70227c87bf fix arith_offset not taking the size of the type into account; test for offset 2017-06-05 14:23:35 -07:00
Ralf Jung
1d0e622a81 test that we cannot observe the bytes representing a pointer 2017-06-05 14:23:35 -07:00
Ralf Jung
6197f4fac9 Permit int->ptr->int roundtrip 2017-06-05 14:23:35 -07:00
Ralf Jung
cfff91ba3e write_bytes intrinsic: if the write count is 0, the pointer does not have to be valid 2017-06-05 14:23:34 -07:00
Ralf Jung
716653fd76 add comments in the tests explaining what the ignore flags do 2017-06-05 14:23:34 -07:00
Ralf Jung
1b5f77e4c1 Implement Offset like the other binary operators, share code with the intrinsic
Also improve drop glue tests
2017-06-05 14:19:10 -07:00
Ralf Jung
31cf66d0e8 remove our array drop glue and use rustc's instead; implement the new Offset and SizeOf operators 2017-06-05 10:06:40 -07:00
Eduard-Mihai Burtescu
14848b3bad Merge pull request #179 from dwrensha/rustup
update for upstream ParamEnv changes
2017-06-03 08:54:05 +03:00
David Renshaw
ca8347a1ff update for upstream ParamEnv changes 2017-06-02 21:00:35 -04:00
Oliver Schneider
d7d11c1ecb Merge pull request #176 from RalfJung/storage
interpret StorageLive & StorageDead, and check dead stack slots are not used
2017-06-02 06:54:13 +02:00
Oliver Schneider
ec7f1d5248 Fix typo 2017-06-02 06:53:52 +02:00
Ralf Jung
dd7735b722 make StorageLive kill the current value of the local 2017-06-01 17:59:00 -07:00
Ralf Jung
db6ce463fe fix some nits 2017-06-01 11:01:55 -07:00
Ralf Jung
e6eaf2083a interpret StorageLive & StorageDead, and check dead stack slots are not used 2017-05-31 17:41:33 -07:00
Oliver Schneider
b946351083 Merge pull request #174 from RalfJung/xargo-test
run test suite also against libstd with full MIR
2017-05-31 23:24:39 +02:00
Ralf Jung
44a45f7c34 run test suite also against libstd with full MIR 2017-05-31 13:39:40 -07:00
Eduard-Mihai Burtescu
1ba426a505 Merge pull request #175 from dwrensha/ignore-windows
remove unneeded '-gnu' suffix from compiletest ignore directives
2017-05-31 21:40:49 +03:00
David Renshaw
a59d482574 remove unneeded '-gnu' suffix from compiletest ignore directives 2017-05-31 14:21:49 -04:00
Ralf Jung
6619ed89ba bin/miri.rs looks for RUST_SYSROOT, so should bin/cargo-miri.rs 2017-05-31 11:17:33 -07:00
Eduard-Mihai Burtescu
f85c7a2c4d Merge pull request #173 from dwrensha/fix-tls-test
fix thread-local-no-dtor test on MacOS and ignore it on Windows
2017-05-31 18:36:09 +03:00
David Renshaw
7624bca09e ignore thread-local-no-dtor test on windows-gnu target 2017-05-31 10:47:26 -04:00
David Renshaw
fbc46276ff prevent 'attempt to shift left with overflow' panic on platforms where pthread_key_t is 64 bits 2017-05-31 10:43:36 -04:00
Oliver Schneider
c817e6e4b3 Merge pull request #171 from RalfJung/println
Work with MIR-libstd
2017-05-31 08:24:15 +02:00
Ralf Jung
d06c165368 simplify xargo instructions 2017-05-30 18:12:06 -07:00
Ralf Jung
2b37d500f1 simplify determining size and alignment of a pointer 2017-05-30 17:03:45 -07:00