Commit Graph

776 Commits

Author SHA1 Message Date
Ralf Jung 720c5f874e implement __rust_maybe_catch_panic 2017-05-30 10:41:38 -07:00
Ralf Jung 55438fe5bf unify the way we intercept missing MIR and C ABI calls; only intercept C ABI calls if MIR is missing 2017-05-30 10:41:38 -07:00
Ralf Jung 14b16dcf45 use proper span for TLS dtors; fix some nits 2017-05-30 10:41:38 -07:00
Ralf Jung a66f359d91 support TLS destructors 2017-05-30 10:41:38 -07:00
Ralf Jung 238211e1b3 implement TLS 2017-05-30 10:41:38 -07:00
Ralf Jung 452cc9b396 handle statics with linkage: initialize them with NULL 2017-05-30 10:41:38 -07:00
Ralf Jung 33d42f4b82 also support writing to stderr 2017-05-30 10:41:38 -07:00
Ralf Jung ab90500d8c Make println!("String") work
miri complains about a memory leak when the program terminates.  This may be related to thread-local dtors not running.
2017-05-30 10:41:38 -07:00
David Renshaw c384f9568d Rvalue::Box -> Rvalue::NullaryOp 2017-05-30 09:27:08 -04:00
David Renshaw 48662d5199 update for upstream changes with ty::ParamEnv 2017-05-23 23:40:39 -04:00
David Renshaw 0641e932bc implement __rust_allocate_zeroed C ABI function 2017-05-21 15:48:31 -04:00
David Renshaw 2b84e176fb update for new boxier mir 2017-05-13 07:09:57 -04:00
Oliver Schneider 5f67ba76f5 Removed unused crate imports 2017-05-05 10:37:04 +02:00
Oliver Schneider da3860a293 Address things complained about by clippy 2017-05-05 10:34:38 +02:00
Oliver Schneider 07229d6305 Rustup to rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03) 2017-05-04 17:42:43 +02:00
Oliver Schneider 671ccca891 Update to rustc 1.19.0-nightly (777ee2079 2017-05-01) 2017-05-02 10:44:35 +02:00
Oliver Schneider 488fc53db9 Update to the latest rustc version 2017-04-27 13:48:47 +02:00
Oliver Schneider 538c271e05 Address clippy lints 2017-04-26 12:15:42 +02:00
Oliver Schneider 76768479b5 Update for latest rustc changes 2017-04-25 16:51:58 +02:00
David Renshaw d666bd7e62 update for latest rustc nightly: type_needs_drop_given_env() and type_contents() are gone 2017-04-23 13:45:04 -04:00
Eduard-Mihai Burtescu b9bd747b6c Import EvalError in lvalue. 2017-04-21 14:02:12 +03:00
Eduard-Mihai Burtescu 738c7d262a Handle Use of ! as Unreachable is not emitted nowadays. 2017-04-21 13:56:44 +03:00
Eduard-Mihai Burtescu cb3799b44b Update for changes in LocalDecl on nightly. 2017-04-21 13:27:09 +03:00
Oliver Schneider fdeee8fb59 Cleanup the diff 2017-03-29 09:10:05 +02:00
Oliver Schneider 065e9593b4 Rustup to rustc 1.17.0-nightly (7846dbe0c 2017-03-26) 2017-03-27 10:13:21 +02:00
Oliver Schneider bbeb7216e0 Thinify the fat pointer on virtual function calls 2017-03-23 18:32:57 +01:00
Oliver Schneider cb867d250a Fix casting generic functions to concrete function pointers 2017-03-23 17:57:40 +01:00
Oliver Schneider f4ed482c4d print doesn't add a stack frame, so don't write arguments 2017-03-23 17:36:10 +01:00
Oliver Schneider fb7cc3c164 Fix single field by val tuples 2017-03-23 16:09:36 +01:00
Oliver Schneider eecc727e87 Reduce noisyness 2017-03-23 15:52:02 +01:00
Oliver Schneider 1263d56eb0 Merge branch 'master' of https://github.com/tsion/miri 2017-03-23 15:40:47 +01:00
Oliver Schneider 1c9f5ac669 Skip the transmute checks for closure glue 2017-03-23 15:23:53 +01:00
Oliver Schneider 1391c5a10a Reintroduce fn ptr transmute check 2017-03-23 15:17:02 +01:00
Oliver Schneider 4e83659b1d Fix manual rust-call impls 2017-03-23 15:07:33 +01:00
Oliver Schneider d71f24c00f Fix virtual function calls 2017-03-23 14:57:11 +01:00
Oliver Schneider ad4f6b920a Fix virtual function calls 2017-03-23 14:24:02 +01:00
Oliver Schneider d70b79c778 Refactor function calls 2017-03-23 13:36:13 +01:00
Oliver Schneider 70ea218d2b Reuse more rustc code instead of copying it into miri 2017-03-23 13:35:19 +01:00
Oliver Schneider 0255a51468 Fix function pointer calls 2017-03-23 10:04:08 +01:00
David Renshaw f0bca59ad0 remove feature opt-ins that are no longer needed 2017-03-22 18:59:26 -04:00
Oliver Schneider caed365dbe Refactor drop into its own module and fix Vec 2017-03-22 18:31:41 +01:00
Oliver Schneider 3ef0b0de2c Dropping slices works again 2017-03-22 17:51:43 +01:00
Oliver Schneider c409079442 Dropping trait objects works again 2017-03-22 17:48:16 +01:00
Oliver Schneider 9e4e6cdb5c Dropping arrays works again 2017-03-22 17:32:20 +01:00
Oliver Schneider 7c12ebc78d Roll our own MIR for dropping arrays. 2017-03-22 16:16:23 +01:00
Oliver Schneider 030f00a8a1 Fix drop terminator 2017-03-22 14:19:29 +01:00
Oliver Schneider 26c3335dbf Closures work again 2017-03-22 13:13:52 +01:00
David Renshaw 3612d826e7 ast::Attribute no longer has a 'value' field 2017-03-21 11:04:49 -04:00
Oliver Schneider dc1b0fb436 Compiles again 2017-03-21 13:53:55 +01:00
Oliver Schneider c6a18cead8 Rustup to rustc 1.17.0-nightly (134c4a0f0 2017-03-20) 2017-03-21 09:21:51 +01:00