]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #67 from oli-obk/master
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

7 years agorustup
Oliver Schneider [Sat, 1 Oct 2016 13:33:07 +0000 (15:33 +0200)]
rustup

7 years agobump compiletest
Oliver Schneider [Sat, 1 Oct 2016 13:30:29 +0000 (15:30 +0200)]
bump compiletest

7 years agofix enum variants with multiple fields
Oliver Schneider [Fri, 30 Sep 2016 08:45:52 +0000 (10:45 +0200)]
fix enum variants with multiple fields

7 years agoremove some debug output
Oliver Schneider [Fri, 30 Sep 2016 08:45:13 +0000 (10:45 +0200)]
remove some debug output

7 years agofactor out shared code
Oliver Schneider [Thu, 29 Sep 2016 14:42:01 +0000 (16:42 +0200)]
factor out shared code

7 years agofix intrinsics and implement more of them
Oliver Schneider [Thu, 29 Sep 2016 13:58:26 +0000 (15:58 +0200)]
fix intrinsics and implement more of them

7 years agoMerge pull request #65 from oli-obk/master
Scott Olson [Wed, 28 Sep 2016 17:53:40 +0000 (11:53 -0600)]
Merge pull request #65 from oli-obk/master

small fixes

7 years agoReword inline assembly error.
Scott Olson [Wed, 28 Sep 2016 17:48:43 +0000 (11:48 -0600)]
Reword inline assembly error.

7 years agoallow tuple field indexing into anonymous tuples
Oliver Schneider [Wed, 28 Sep 2016 16:22:53 +0000 (18:22 +0200)]
allow tuple field indexing into anonymous tuples

7 years agodon't panic on asm!
Oliver Schneider [Wed, 28 Sep 2016 16:22:25 +0000 (18:22 +0200)]
don't panic on asm!

7 years agoimplement slice patterns
Oliver Schneider [Wed, 28 Sep 2016 16:22:09 +0000 (18:22 +0200)]
implement slice patterns

7 years agofix run-pass test error message parsing
Oliver Schneider [Wed, 28 Sep 2016 12:53:43 +0000 (14:53 +0200)]
fix run-pass test error message parsing

7 years agorun compile-fail tests after run-pass tests
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.

7 years agoMerge pull request #64 from oli-obk/bugfixes
Scott Olson [Tue, 27 Sep 2016 19:11:38 +0000 (13:11 -0600)]
Merge pull request #64 from oli-obk/bugfixes

Bugfixes

7 years agowe can get the Session from the TyCtxt
Oliver Schneider [Tue, 27 Sep 2016 16:06:51 +0000 (18:06 +0200)]
we can get the Session from the TyCtxt

7 years agoimplement Arc<T> -> Arc<Trait> unsizing
Oliver Schneider [Tue, 27 Sep 2016 16:01:33 +0000 (18:01 +0200)]
implement Arc<T> -> Arc<Trait> unsizing

7 years agodon't abort on the first failed test
Oliver Schneider [Tue, 27 Sep 2016 15:02:24 +0000 (17:02 +0200)]
don't abort on the first failed test

7 years agobe able to find statics in other crates
Oliver Schneider [Tue, 27 Sep 2016 15:02:04 +0000 (17:02 +0200)]
be able to find statics in other crates

7 years agoprint stacktrace when miri can't find the MIR for something
Oliver Schneider [Tue, 27 Sep 2016 15:01:06 +0000 (17:01 +0200)]
print stacktrace when miri can't find the MIR for something

7 years agorustup
Oliver Schneider [Tue, 27 Sep 2016 14:59:48 +0000 (16:59 +0200)]
rustup

7 years agofix matching on chars
Oliver Schneider [Tue, 27 Sep 2016 09:10:25 +0000 (11:10 +0200)]
fix matching on chars

fixes #63

7 years agoMerge pull request #60 from oli-obk/dst
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

7 years agofix warnings
Oliver Schneider [Tue, 27 Sep 2016 08:39:14 +0000 (10:39 +0200)]
fix warnings

7 years agoremove FIXME cleared up in the PR
Oliver Schneider [Tue, 27 Sep 2016 08:36:44 +0000 (10:36 +0200)]
remove FIXME cleared up in the PR

7 years agotypecheck `write_value` for `ByValPair`
Oliver Schneider [Tue, 27 Sep 2016 08:33:47 +0000 (10:33 +0200)]
typecheck `write_value` for `ByValPair`

7 years agoreintroduce Lvalue and LvalueExtra
Oliver Schneider [Tue, 27 Sep 2016 08:14:53 +0000 (10:14 +0200)]
reintroduce Lvalue and LvalueExtra

7 years agoactually error on failing miri-pass tests
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

7 years agorefactor `Lvalue` and `PrimVal::{SlicePtr, VtablePtr}` into `Value::ByValPair`
Oliver Schneider [Mon, 26 Sep 2016 15:49:30 +0000 (17:49 +0200)]
refactor `Lvalue` and `PrimVal::{SlicePtr, VtablePtr}` into `Value::ByValPair`

7 years agoremove `move_value`, which is a dupe of `write_value`
Oliver Schneider [Mon, 26 Sep 2016 09:40:09 +0000 (11:40 +0200)]
remove `move_value`, which is a dupe of `write_value`

7 years agocheck `Pointer::to_int` for non-integer pointers
Oliver Schneider [Mon, 26 Sep 2016 09:37:23 +0000 (11:37 +0200)]
check `Pointer::to_int` for non-integer pointers

7 years agoMerge remote-tracking branch 'origin/master' into dst
Oliver Schneider [Mon, 26 Sep 2016 09:27:59 +0000 (11:27 +0200)]
Merge remote-tracking branch 'origin/master' into dst

7 years agoMerge pull request #59 from oli-obk/master
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

7 years agorefactor away `get_fat_ptr`
Oliver Schneider [Fri, 23 Sep 2016 13:48:23 +0000 (15:48 +0200)]
refactor away `get_fat_ptr`

7 years agoclean up get_fat_ptr usage in Unsize
Oliver Schneider [Fri, 23 Sep 2016 13:23:01 +0000 (15:23 +0200)]
clean up get_fat_ptr usage in Unsize

7 years agoimplement "type_name" intrinsic
Oliver Schneider [Fri, 23 Sep 2016 08:38:30 +0000 (10:38 +0200)]
implement "type_name" intrinsic

7 years agorefactor away intermediate allocations, stage1
Oliver Schneider [Fri, 23 Sep 2016 08:27:14 +0000 (10:27 +0200)]
refactor away intermediate allocations, stage1

7 years agorefactor away IntegerPtr
Oliver Schneider [Thu, 22 Sep 2016 13:47:16 +0000 (15:47 +0200)]
refactor away IntegerPtr

7 years agoremove the ZST allocation and abort all zero byte writes/reads
Oliver Schneider [Thu, 22 Sep 2016 13:22:00 +0000 (15:22 +0200)]
remove the ZST allocation and abort all zero byte writes/reads

7 years agomake Memory::dump use `trace!` instead of `println!`
Oliver Schneider [Thu, 22 Sep 2016 11:01:08 +0000 (13:01 +0200)]
make Memory::dump use `trace!` instead of `println!`

7 years agofully implement `size_of_val` and add various tests that now succeed
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

7 years agoMerge branch 'master' of https://github.com/tsion/miri
Oliver Schneider [Thu, 22 Sep 2016 07:50:15 +0000 (09:50 +0200)]
Merge branch 'master' of https://github.com/tsion/miri

7 years agoRename AbstractPtr to Ptr.
Scott Olson [Thu, 22 Sep 2016 05:23:50 +0000 (23:23 -0600)]
Rename AbstractPtr to Ptr.

7 years agoUpdate for changes in rustc.
Scott Olson [Thu, 22 Sep 2016 05:16:31 +0000 (23:16 -0600)]
Update for changes in rustc.

7 years agoRemove more eval_operand_to_ptr.
Scott Olson [Tue, 20 Sep 2016 01:40:56 +0000 (19:40 -0600)]
Remove more eval_operand_to_ptr.

7 years agoenable A<Struct> -> A<Trait> downcasting
Oliver Schneider [Wed, 21 Sep 2016 16:00:04 +0000 (18:00 +0200)]
enable A<Struct> -> A<Trait> downcasting

7 years agoMerge pull request #58 from oli-obk/master
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

7 years agoonly 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

7 years agoMerge pull request #57 from oli-obk/master
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

7 years agoremove leftover debug print
Oliver Schneider [Wed, 21 Sep 2016 09:03:41 +0000 (11:03 +0200)]
remove leftover debug print

7 years agofix calling Fn closures as FnOnce closures
Oliver Schneider [Tue, 20 Sep 2016 16:31:55 +0000 (18:31 +0200)]
fix calling Fn closures as FnOnce closures

7 years agoimplement more intrinsics
Oliver Schneider [Tue, 20 Sep 2016 14:05:30 +0000 (16:05 +0200)]
implement more intrinsics

7 years agoexport `StackPopCleanup` (needed by priroda)
Oliver Schneider [Tue, 20 Sep 2016 11:35:19 +0000 (13:35 +0200)]
export `StackPopCleanup` (needed by priroda)

7 years agofix enum variant downcasting
Oliver Schneider [Tue, 20 Sep 2016 11:34:53 +0000 (13:34 +0200)]
fix enum variant downcasting

7 years agoprep for eddyb's find_method
Oliver Schneider [Tue, 20 Sep 2016 10:52:01 +0000 (12:52 +0200)]
prep for eddyb's find_method

7 years agofix miri backtrace panic
Oliver Schneider [Tue, 20 Sep 2016 10:51:48 +0000 (12:51 +0200)]
fix miri backtrace panic

7 years agoRemove a few instances of eval_operand_to_ptr.
Scott Olson [Tue, 20 Sep 2016 01:01:28 +0000 (19:01 -0600)]
Remove a few instances of eval_operand_to_ptr.

7 years agoSimplify read_primval of {i,u}size.
Scott Olson [Mon, 19 Sep 2016 10:56:09 +0000 (04:56 -0600)]
Simplify read_primval of {i,u}size.

7 years agoFix comment typo.
Scott Olson [Mon, 19 Sep 2016 10:49:21 +0000 (04:49 -0600)]
Fix comment typo.

7 years agoAdd inital implementation of ByValPair.
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.

7 years agoPrint "(immutable)" when dumping allocations.
Scott Olson [Mon, 19 Sep 2016 10:10:51 +0000 (04:10 -0600)]
Print "(immutable)" when dumping allocations.

7 years agoFreeze static memory of string constants.
Scott Olson [Mon, 19 Sep 2016 10:10:18 +0000 (04:10 -0600)]
Freeze static memory of string constants.

7 years agoThere will never be a PrimVal for fat pointers.
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.

7 years agoRename Value variants and simplify ByteStr consts.
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.

7 years agoReplace const_to_ptr with const_to_value.
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.

7 years agooption_eq test passes now since casts are implemented.
Scott Olson [Mon, 19 Sep 2016 08:16:51 +0000 (02:16 -0600)]
option_eq test passes now since casts are implemented.

7 years agoRemove unused extern crate rustc_trans.
Scott Olson [Sat, 17 Sep 2016 20:50:56 +0000 (14:50 -0600)]
Remove unused extern crate rustc_trans.

7 years agoMerge pull request #56 from oli-obk/rustc_run_pass
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

7 years agofix binding renaming in previous commit
Oliver Schneider [Fri, 16 Sep 2016 08:28:43 +0000 (10:28 +0200)]
fix binding renaming in previous commit

7 years agoproper binding naming
Oliver Schneider [Fri, 16 Sep 2016 08:23:04 +0000 (10:23 +0200)]
proper binding naming

7 years agoadd some sanity tests
Oliver Schneider [Thu, 15 Sep 2016 14:32:30 +0000 (16:32 +0200)]
add some sanity tests

7 years agohackily fix calling function pointers through a Fn static dispatch
Oliver Schneider [Thu, 15 Sep 2016 14:14:53 +0000 (16:14 +0200)]
hackily fix calling function pointers through a Fn static dispatch

7 years agorun all tests found in folder given by MIRI_RUSTC_TEST env var
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

7 years agoforbid warnings only in the actual run-pass tests, not in the miri-pass tests
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

7 years agoadd ctpop and ctlz intrinsic
Oliver Schneider [Thu, 15 Sep 2016 14:11:57 +0000 (16:11 +0200)]
add ctpop and ctlz intrinsic

7 years agoppaux::parameterized $sometimes panics, let's catch that.
Oliver Schneider [Thu, 15 Sep 2016 14:10:58 +0000 (16:10 +0200)]
ppaux::parameterized $sometimes panics, let's catch that.

7 years agoFix allocation of fn items by allowing ZST alignment to be 0.
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.

7 years agoUndo accidental test deletion in previous commit.
Scott Olson [Wed, 14 Sep 2016 02:17:52 +0000 (20:17 -0600)]
Undo accidental test deletion in previous commit.

7 years agoFix tests broken by std::vec::SetLenOnDrop.
Scott Olson [Wed, 14 Sep 2016 02:13:30 +0000 (20:13 -0600)]
Fix tests broken by std::vec::SetLenOnDrop.

7 years agoMerge pull request #54 from oli-obk/clippy
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

7 years agoerror on failed assumptions
Oliver Schneider [Tue, 13 Sep 2016 11:08:57 +0000 (13:08 +0200)]
error on failed assumptions

7 years agoneedless clones
Oliver Schneider [Tue, 13 Sep 2016 11:03:54 +0000 (13:03 +0200)]
needless clones

7 years agoneedless references
Oliver Schneider [Tue, 13 Sep 2016 11:03:42 +0000 (13:03 +0200)]
needless references

7 years agoMerge pull request #53 from oli-obk/dont_touch_my_precious_constants
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

7 years agoFix comment wording.
Scott Olson [Sun, 11 Sep 2016 09:06:44 +0000 (03:06 -0600)]
Fix comment wording.

7 years agoprevent the modification of vtables
Oliver Schneider [Sat, 10 Sep 2016 13:17:08 +0000 (15:17 +0200)]
prevent the modification of vtables

7 years agoonly allow the modification of `static mut` or statics with interior mutability
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

7 years agodocument the fields of `Allocation`
Oliver Schneider [Fri, 9 Sep 2016 15:11:43 +0000 (17:11 +0200)]
document the fields of `Allocation`

7 years agodon't load memory as mutable if not necessary
Oliver Schneider [Fri, 9 Sep 2016 14:57:09 +0000 (16:57 +0200)]
don't load memory as mutable if not necessary

7 years agoUpdate for changes in rustc.
Scott Olson [Sun, 11 Sep 2016 02:59:23 +0000 (20:59 -0600)]
Update for changes in rustc.

7 years agoMerge pull request #52 from oli-obk/vtable
Scott Olson [Sun, 11 Sep 2016 00:18:13 +0000 (18:18 -0600)]
Merge pull request #52 from oli-obk/vtable

Vtable

7 years agouse canonical formatting of `pub (super)`
Oliver Schneider [Sat, 10 Sep 2016 13:14:49 +0000 (15:14 +0200)]
use canonical formatting of `pub (super)`

7 years agoclosures don't work yet
Oliver Schneider [Fri, 9 Sep 2016 13:44:35 +0000 (15:44 +0200)]
closures don't work yet

7 years agoimplement calling methods through trait objects
Oliver Schneider [Fri, 9 Sep 2016 10:51:14 +0000 (12:51 +0200)]
implement calling methods through trait objects

7 years agoMerge pull request #50 from oli-obk/casts
Scott Olson [Thu, 8 Sep 2016 09:12:36 +0000 (03:12 -0600)]
Merge pull request #50 from oli-obk/casts

implement more casts

7 years agodon't use `type_is_immediate` for finding fat ptr 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

7 years agouse cheap assertions instead of expensive debug assertions
Oliver Schneider [Thu, 8 Sep 2016 08:25:45 +0000 (10:25 +0200)]
use cheap assertions instead of expensive debug assertions

7 years agoimplement more casts
Oliver Schneider [Wed, 7 Sep 2016 16:34:59 +0000 (18:34 +0200)]
implement more casts

7 years agoMerge pull request #48 from oli-obk/fix_call_stack_positions
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

7 years agochange 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.