Commit Graph

1790 Commits

Author SHA1 Message Date
Oliver Schneider
33bfb64e6d Merge pull request #320 from oli-obk/memory
some more things found in the rustc test suite
2017-08-29 14:38:07 +02:00
Oliver Schneider
446ed26412
Add at least the program name argument in order to get rustc tests a little further 2017-08-29 12:26:20 +02:00
Oliver Schneider
506a5c7910
Mir optimizations treat single variant enums as structs 2017-08-29 12:26:20 +02:00
Oliver Schneider
941fbf5ed2 Merge pull request #319 from oli-obk/memory
Get some more rustc tests working
2017-08-29 12:26:02 +02:00
Oliver Schneider
88fc45b37c
Get some more rustc tests working 2017-08-29 11:58:22 +02:00
Oliver Schneider
fb96a090af Merge pull request #318 from oli-obk/memory
Fix panic in subslice patterns of arrays (fixes #276)
2017-08-29 10:38:39 +02:00
Oliver Schneider
206f0bd6df
Fix panic in subslice patterns of arrays (fixes #276) 2017-08-29 10:03:00 +02:00
Oliver Schneider
b8329da5e8 Merge pull request #311 from RalfJung/memory
Memory API refactoring
2017-08-29 09:53:34 +02:00
Oliver Schneider
55eaf5eb5e
Also update the rustc test suite runner 2017-08-28 18:06:06 +02:00
Oliver Schneider
f817f1c660
Get rid of env var race condition once and for all 2017-08-28 17:32:21 +02:00
Oliver Schneider
dd5b0100f3
Merge remote-tracking branch 'origin/master' into memory 2017-08-28 16:13:09 +02:00
Oliver Schneider
44a360d8ba Merge pull request #316 from solson/priroda
Fix relocation copying in overlapping copies
2017-08-28 16:11:48 +02:00
Oliver Schneider
2f0dcfba1d
Simplify write_value_to_ptr 2017-08-28 16:06:49 +02:00
Oliver Schneider
129b914bdc
int_align has no dynamic error case 2017-08-28 15:58:58 +02:00
Oliver Schneider
385b5b9fd1 Merge branch 'master' into priroda 2017-08-28 15:37:10 +02:00
Oliver Schneider
b93462a8db Merge pull request #315 from RalfJung/validation
Enable more validation tests
2017-08-28 15:37:00 +02:00
Oliver Schneider
e53e9b9e63
Deduplicate writing null case of struct wrapped nullable pointers 2017-08-28 15:27:50 +02:00
Oliver Schneider
02a0f0f814 Turn off validation for some compile-fail tests 2017-08-28 15:04:32 +02:00
Oliver Schneider
9d10e0154b
Mir validation can't cope with mem::uninitialized::<SomeEnum>() 2017-08-28 14:53:43 +02:00
Oliver Schneider
e28f4a8e3e
Add a regression test for #313 2017-08-28 14:10:59 +02:00
Oliver Schneider
ac7dfcac38
Fix #313 by correctly copying relocations when doing overlapping copies 2017-08-28 14:08:55 +02:00
Oliver Schneider
7355a1ea28
Remove some unused extern crate 2017-08-28 14:08:31 +02:00
Oliver Schneider
1fce886ac3
Make some things public that are required by priroda 2017-08-28 14:08:10 +02:00
Ralf Jung
907d2c7310 rustc #43457 got fixed, we can enable more tests 2017-08-27 18:18:32 +02:00
Oliver Schneider
3464401576 Merge branch 'master' into memory 2017-08-26 23:13:55 +02:00
Eduard-Mihai Burtescu
b6d05976ea Merge pull request #314 from dwrensha/fulfill-obligation
use rustc version of fulfill_obligation now that we can
2017-08-26 21:29:04 +03:00
David Renshaw
8b5f22c3fd use rustc version of fulfill_obligation now that we can 2017-08-26 13:48:59 -04:00
Ralf Jung
2307d6fc5b Merge branch 'master' into memory 2017-08-26 13:51:13 +02:00
Ralf Jung
54a1f079b8 Merge pull request #312 from RalfJung/compiletest
update compiletest, use tempdir
2017-08-26 13:50:58 +02:00
Ralf Jung
2e28e14474 reorder lets so that build_dir is deleted last 2017-08-26 13:23:04 +02:00
Ralf Jung
df20c0684c use tempdir to create a dedicated directory for each test 2017-08-26 13:12:55 +02:00
Ralf Jung
1ee718a5c9 update compiletest. maybe that helps with the spurious failures. 2017-08-26 12:51:49 +02:00
Ralf Jung
8ce6b06d52 Remove specialize float/bool read/write methods from memory
Notice that the write methods were previously unused, so if this makes us handle some things incorrectly, they probably were already broken
2017-08-25 19:33:12 +02:00
Ralf Jung
ac80212f7e move tests with MIR-opt to their own function we we can run them separately 2017-08-25 19:21:10 +02:00
Ralf Jung
b1ca65447a refactor memory write API to match read API 2017-08-25 19:08:04 +02:00
Ralf Jung
f036fe0d32 refactor memory read API: provide only size-based, no type-based methods 2017-08-25 16:20:13 +02:00
Ralf Jung
8539728607 memory: make sure we check non-NULL/undef even fore 0-sized accesses 2017-08-25 14:41:59 +02:00
Oliver Schneider
d38c328568 Merge pull request #310 from oli-obk/drop
Simplify dropping by reusing `eval_fn_call`
2017-08-25 12:19:24 +02:00
Oliver Schneider
fad1bc8b20 Merge branch 'master' into drop 2017-08-24 23:52:36 +02:00
Oliver Schneider
4e3c502c53 Merge pull request #309 from oli-obk/libstd
Refactoring: Couple values and types into an object when passed around together
2017-08-24 23:50:47 +02:00
Oliver Schneider
19018852c3
Simplify dropping by reusing eval_fn_call 2017-08-24 16:04:50 +02:00
Oliver Schneider
110d50e7f9 Merge branch 'master' into libstd 2017-08-24 15:30:35 +02:00
Oliver Schneider
f860ad8d2e Merge pull request #306 from RalfJung/closures
Handle closures in get_field_ty
2017-08-24 15:30:23 +02:00
Oliver Schneider
9ede346ee2
Refactoring: Couple values and types into an object when passed around together 2017-08-24 14:42:42 +02:00
Ralf Jung
e332ab9b13 Handle closures in get_field_ty
Fixes #304
2017-08-24 13:34:05 +02:00
Ralf Jung
3f3fadae6f Merge pull request #301 from RalfJung/mir-validate
More validation tests
2017-08-24 09:14:36 +02:00
Ralf Jung
ae10b23a7c Merge branch 'master' into mir-validate 2017-08-23 18:09:13 +02:00
Ralf Jung
66108be99d Merge pull request #308 from oli-obk/libstd
rustup
2017-08-23 18:08:53 +02:00
Oliver Schneider
f75dd90961 Also reuse function pointer shims and drop glue from rustc 2017-08-23 17:46:36 +02:00
Oliver Schneider
7b8e2c772d
Rustup (Clone is now a builtin trait) 2017-08-23 17:24:38 +02:00