]>
git.lizzy.rs Git - rust.git/log
Scott Olson [Mon, 3 Oct 2016 23:40:02 +0000 (17:40 -0600)]
Merge pull request #67 from oli-obk/master
fix multi field enum variants and some intrinsics + rustup
Oliver Schneider [Sat, 1 Oct 2016 13:33:07 +0000 (15:33 +0200)]
rustup
Oliver Schneider [Sat, 1 Oct 2016 13:30:29 +0000 (15:30 +0200)]
bump compiletest
Oliver Schneider [Fri, 30 Sep 2016 08:45:52 +0000 (10:45 +0200)]
fix enum variants with multiple fields
Oliver Schneider [Fri, 30 Sep 2016 08:45:13 +0000 (10:45 +0200)]
remove some debug output
Oliver Schneider [Thu, 29 Sep 2016 14:42:01 +0000 (16:42 +0200)]
factor out shared code
Oliver Schneider [Thu, 29 Sep 2016 13:58:26 +0000 (15:58 +0200)]
fix intrinsics and implement more of them
Scott Olson [Wed, 28 Sep 2016 17:53:40 +0000 (11:53 -0600)]
Merge pull request #65 from oli-obk/master
small fixes
Scott Olson [Wed, 28 Sep 2016 17:48:43 +0000 (11:48 -0600)]
Reword inline assembly error.
Oliver Schneider [Wed, 28 Sep 2016 16:22:53 +0000 (18:22 +0200)]
allow tuple field indexing into anonymous tuples
Oliver Schneider [Wed, 28 Sep 2016 16:22:25 +0000 (18:22 +0200)]
don't panic on asm!
Oliver Schneider [Wed, 28 Sep 2016 16:22:09 +0000 (18:22 +0200)]
implement slice patterns
Oliver Schneider [Wed, 28 Sep 2016 12:53:43 +0000 (14:53 +0200)]
fix run-pass test error message parsing
Oliver Schneider [Wed, 28 Sep 2016 12:53:11 +0000 (14:53 +0200)]
run compile-fail tests after run-pass tests
it's annoying when debugging miri to have compile-fail tests fail due to some temporary
assertions or panics.
Scott Olson [Tue, 27 Sep 2016 19:11:38 +0000 (13:11 -0600)]
Merge pull request #64 from oli-obk/bugfixes
Bugfixes
Oliver Schneider [Tue, 27 Sep 2016 16:06:51 +0000 (18:06 +0200)]
we can get the Session from the TyCtxt
Oliver Schneider [Tue, 27 Sep 2016 16:01:33 +0000 (18:01 +0200)]
implement Arc<T> -> Arc<Trait> unsizing
Oliver Schneider [Tue, 27 Sep 2016 15:02:24 +0000 (17:02 +0200)]
don't abort on the first failed test
Oliver Schneider [Tue, 27 Sep 2016 15:02:04 +0000 (17:02 +0200)]
be able to find statics in other crates
Oliver Schneider [Tue, 27 Sep 2016 15:01:06 +0000 (17:01 +0200)]
print stacktrace when miri can't find the MIR for something
Oliver Schneider [Tue, 27 Sep 2016 14:59:48 +0000 (16:59 +0200)]
rustup
Oliver Schneider [Tue, 27 Sep 2016 09:10:25 +0000 (11:10 +0200)]
fix matching on chars
fixes #63
Scott Olson [Tue, 27 Sep 2016 08:46:57 +0000 (02:46 -0600)]
Merge pull request #60 from oli-obk/dst
some more cleanups getting rid of intermediate allocations and bad fat ptr assumptions
Oliver Schneider [Tue, 27 Sep 2016 08:39:14 +0000 (10:39 +0200)]
fix warnings
Oliver Schneider [Tue, 27 Sep 2016 08:36:44 +0000 (10:36 +0200)]
remove FIXME cleared up in the PR
Oliver Schneider [Tue, 27 Sep 2016 08:33:47 +0000 (10:33 +0200)]
typecheck `write_value` for `ByValPair`
Oliver Schneider [Tue, 27 Sep 2016 08:14:53 +0000 (10:14 +0200)]
reintroduce Lvalue and LvalueExtra
Oliver Schneider [Mon, 26 Sep 2016 15:49:53 +0000 (17:49 +0200)]
actually error on failing miri-pass tests
+ remove a test that never succeeded
Oliver Schneider [Mon, 26 Sep 2016 15:49:30 +0000 (17:49 +0200)]
refactor `Lvalue` and `PrimVal::{SlicePtr, VtablePtr}` into `Value::ByValPair`
Oliver Schneider [Mon, 26 Sep 2016 09:40:09 +0000 (11:40 +0200)]
remove `move_value`, which is a dupe of `write_value`
Oliver Schneider [Mon, 26 Sep 2016 09:37:23 +0000 (11:37 +0200)]
check `Pointer::to_int` for non-integer pointers
Oliver Schneider [Mon, 26 Sep 2016 09:27:59 +0000 (11:27 +0200)]
Merge remote-tracking branch 'origin/master' into dst
Scott Olson [Sat, 24 Sep 2016 00:07:02 +0000 (18:07 -0600)]
Merge pull request #59 from oli-obk/master
enable A<Struct> -> A<Trait> downcasting where `A<Trait>` is a fat pointer
Oliver Schneider [Fri, 23 Sep 2016 13:48:23 +0000 (15:48 +0200)]
refactor away `get_fat_ptr`
Oliver Schneider [Fri, 23 Sep 2016 13:23:01 +0000 (15:23 +0200)]
clean up get_fat_ptr usage in Unsize
Oliver Schneider [Fri, 23 Sep 2016 08:38:30 +0000 (10:38 +0200)]
implement "type_name" intrinsic
Oliver Schneider [Fri, 23 Sep 2016 08:27:14 +0000 (10:27 +0200)]
refactor away intermediate allocations, stage1
Oliver Schneider [Thu, 22 Sep 2016 13:47:16 +0000 (15:47 +0200)]
refactor away IntegerPtr
Oliver Schneider [Thu, 22 Sep 2016 13:22:00 +0000 (15:22 +0200)]
remove the ZST allocation and abort all zero byte writes/reads
Oliver Schneider [Thu, 22 Sep 2016 11:01:08 +0000 (13:01 +0200)]
make Memory::dump use `trace!` instead of `println!`
Oliver Schneider [Thu, 22 Sep 2016 11:00:43 +0000 (13:00 +0200)]
fully implement `size_of_val` and add various tests that now succeed
Oliver Schneider [Thu, 22 Sep 2016 07:50:15 +0000 (09:50 +0200)]
Merge branch 'master' of https://github.com/tsion/miri
Scott Olson [Thu, 22 Sep 2016 05:23:50 +0000 (23:23 -0600)]
Rename AbstractPtr to Ptr.
Scott Olson [Thu, 22 Sep 2016 05:16:31 +0000 (23:16 -0600)]
Update for changes in rustc.
Scott Olson [Tue, 20 Sep 2016 01:40:56 +0000 (19:40 -0600)]
Remove more eval_operand_to_ptr.
Oliver Schneider [Wed, 21 Sep 2016 16:00:04 +0000 (18:00 +0200)]
enable A<Struct> -> A<Trait> downcasting
Scott Olson [Wed, 21 Sep 2016 14:16:08 +0000 (08:16 -0600)]
Merge pull request #58 from oli-obk/master
only split the Fn* arguments in case of closures and function pointers
Oliver Schneider [Wed, 21 Sep 2016 13:57:13 +0000 (15:57 +0200)]
only split the Fn* arguments in case of closures and function pointers
Scott Olson [Wed, 21 Sep 2016 13:29:08 +0000 (07:29 -0600)]
Merge pull request #57 from oli-obk/master
fix enum down casting and backtrace panics
Oliver Schneider [Wed, 21 Sep 2016 09:03:41 +0000 (11:03 +0200)]
remove leftover debug print
Oliver Schneider [Tue, 20 Sep 2016 16:31:55 +0000 (18:31 +0200)]
fix calling Fn closures as FnOnce closures
Oliver Schneider [Tue, 20 Sep 2016 14:05:30 +0000 (16:05 +0200)]
implement more intrinsics
Oliver Schneider [Tue, 20 Sep 2016 11:35:19 +0000 (13:35 +0200)]
export `StackPopCleanup` (needed by priroda)
Oliver Schneider [Tue, 20 Sep 2016 11:34:53 +0000 (13:34 +0200)]
fix enum variant downcasting
Oliver Schneider [Tue, 20 Sep 2016 10:52:01 +0000 (12:52 +0200)]
prep for eddyb's find_method
Oliver Schneider [Tue, 20 Sep 2016 10:51:48 +0000 (12:51 +0200)]
fix miri backtrace panic
Scott Olson [Tue, 20 Sep 2016 01:01:28 +0000 (19:01 -0600)]
Remove a few instances of eval_operand_to_ptr.
Scott Olson [Mon, 19 Sep 2016 10:56:09 +0000 (04:56 -0600)]
Simplify read_primval of {i,u}size.
Scott Olson [Mon, 19 Sep 2016 10:49:21 +0000 (04:49 -0600)]
Fix comment typo.
Scott Olson [Mon, 19 Sep 2016 10:38:51 +0000 (04:38 -0600)]
Add inital implementation of ByValPair.
There are still hacks left to clean up.
Scott Olson [Mon, 19 Sep 2016 10:10:51 +0000 (04:10 -0600)]
Print "(immutable)" when dumping allocations.
Scott Olson [Mon, 19 Sep 2016 10:10:18 +0000 (04:10 -0600)]
Freeze static memory of string constants.
Scott Olson [Mon, 19 Sep 2016 09:36:41 +0000 (03:36 -0600)]
There will never be a PrimVal for fat pointers.
Instead, there will be a `Value::ByValPair` variant for holding fat pointers
(among other things) modelled after `OperandValue::Pair` in rustc's trans.
Scott Olson [Mon, 19 Sep 2016 09:35:35 +0000 (03:35 -0600)]
Rename Value variants and simplify ByteStr consts.
The ByteStr change will make one less allocation for every byte string literal.
Scott Olson [Mon, 19 Sep 2016 08:19:31 +0000 (02:19 -0600)]
Replace const_to_ptr with const_to_value.
This reduces the number of allocations Miri makes drastically. The
`const_to_ptr` function was a lame hack that allocated for every since simple
constant, and all of those are avoided now, except for one extra allocation each
for string and bytestring literals which will be fixed in a followup commit.
There are a number of hacks such as `eval_operand_to_ptr` left over from this
commit, which will also be fixed in followup commits.
Scott Olson [Mon, 19 Sep 2016 08:16:51 +0000 (02:16 -0600)]
option_eq test passes now since casts are implemented.
Scott Olson [Sat, 17 Sep 2016 20:50:56 +0000 (14:50 -0600)]
Remove unused extern crate rustc_trans.
Scott Olson [Fri, 16 Sep 2016 08:36:09 +0000 (02:36 -0600)]
Merge pull request #56 from oli-obk/rustc_run_pass
various things that allow miri to crash less and execute more code
Oliver Schneider [Fri, 16 Sep 2016 08:28:43 +0000 (10:28 +0200)]
fix binding renaming in previous commit
Oliver Schneider [Fri, 16 Sep 2016 08:23:04 +0000 (10:23 +0200)]
proper binding naming
Oliver Schneider [Thu, 15 Sep 2016 14:32:30 +0000 (16:32 +0200)]
add some sanity tests
Oliver Schneider [Thu, 15 Sep 2016 14:14:53 +0000 (16:14 +0200)]
hackily fix calling function pointers through a Fn static dispatch
Oliver Schneider [Thu, 15 Sep 2016 14:13:54 +0000 (16:13 +0200)]
run all tests found in folder given by MIRI_RUSTC_TEST env var
Oliver Schneider [Thu, 15 Sep 2016 14:12:36 +0000 (16:12 +0200)]
forbid warnings only in the actual run-pass tests, not in the miri-pass tests
Oliver Schneider [Thu, 15 Sep 2016 14:11:57 +0000 (16:11 +0200)]
add ctpop and ctlz intrinsic
Oliver Schneider [Thu, 15 Sep 2016 14:10:58 +0000 (16:10 +0200)]
ppaux::parameterized $sometimes panics, let's catch that.
Scott Olson [Wed, 14 Sep 2016 03:31:12 +0000 (21:31 -0600)]
Fix allocation of fn items by allowing ZST alignment to be 0.
Scott Olson [Wed, 14 Sep 2016 02:17:52 +0000 (20:17 -0600)]
Undo accidental test deletion in previous commit.
Scott Olson [Wed, 14 Sep 2016 02:13:30 +0000 (20:13 -0600)]
Fix tests broken by std::vec::SetLenOnDrop.
Scott Olson [Wed, 14 Sep 2016 01:21:20 +0000 (19:21 -0600)]
Merge pull request #54 from oli-obk/clippy
Clippy and `assume` intrinsic implementation
Oliver Schneider [Tue, 13 Sep 2016 11:08:57 +0000 (13:08 +0200)]
error on failed assumptions
Oliver Schneider [Tue, 13 Sep 2016 11:03:54 +0000 (13:03 +0200)]
needless clones
Oliver Schneider [Tue, 13 Sep 2016 11:03:42 +0000 (13:03 +0200)]
needless references
Scott Olson [Sun, 11 Sep 2016 09:17:58 +0000 (03:17 -0600)]
Merge pull request #53 from oli-obk/dont_touch_my_precious_constants
Detect modifications of immutable memory
Scott Olson [Sun, 11 Sep 2016 09:06:44 +0000 (03:06 -0600)]
Fix comment wording.
Oliver Schneider [Sat, 10 Sep 2016 13:17:08 +0000 (15:17 +0200)]
prevent the modification of vtables
Oliver Schneider [Fri, 9 Sep 2016 15:44:04 +0000 (17:44 +0200)]
only allow the modification of `static mut` or statics with interior mutability
Oliver Schneider [Fri, 9 Sep 2016 15:11:43 +0000 (17:11 +0200)]
document the fields of `Allocation`
Oliver Schneider [Fri, 9 Sep 2016 14:57:09 +0000 (16:57 +0200)]
don't load memory as mutable if not necessary
Scott Olson [Sun, 11 Sep 2016 02:59:23 +0000 (20:59 -0600)]
Update for changes in rustc.
Scott Olson [Sun, 11 Sep 2016 00:18:13 +0000 (18:18 -0600)]
Merge pull request #52 from oli-obk/vtable
Vtable
Oliver Schneider [Sat, 10 Sep 2016 13:14:49 +0000 (15:14 +0200)]
use canonical formatting of `pub (super)`
Oliver Schneider [Fri, 9 Sep 2016 13:44:35 +0000 (15:44 +0200)]
closures don't work yet
Oliver Schneider [Fri, 9 Sep 2016 10:51:14 +0000 (12:51 +0200)]
implement calling methods through trait objects
Scott Olson [Thu, 8 Sep 2016 09:12:36 +0000 (03:12 -0600)]
Merge pull request #50 from oli-obk/casts
implement more casts
Oliver Schneider [Thu, 8 Sep 2016 08:26:33 +0000 (10:26 +0200)]
don't use `type_is_immediate` for finding fat ptr casts
Oliver Schneider [Thu, 8 Sep 2016 08:25:45 +0000 (10:25 +0200)]
use cheap assertions instead of expensive debug assertions
Oliver Schneider [Wed, 7 Sep 2016 16:34:59 +0000 (18:34 +0200)]
implement more casts
Scott Olson [Wed, 7 Sep 2016 11:03:17 +0000 (05:03 -0600)]
Merge pull request #48 from oli-obk/fix_call_stack_positions
change the block and stmt position after a function call returns
Oliver Schneider [Wed, 6 Jul 2016 15:55:05 +0000 (17:55 +0200)]
change the block and stmt position after a function call returns
previously we moved to the target block *before* calling a function, so when inspecting
the stack, it appeared as if we were in the first statement of the next block.