]>
git.lizzy.rs Git - rust.git/log
Oliver Schneider [Mon, 30 Jan 2017 08:45:21 +0000 (09:45 +0100)]
get rid of serde rc3 dependencies through `cargo update`
Oliver Schneider [Mon, 30 Jan 2017 08:44:52 +0000 (09:44 +0100)]
implement packed struct field access
Scott Olson [Sun, 29 Jan 2017 11:27:29 +0000 (03:27 -0800)]
Merge pull request #103 from oli-obk/tuples
allow using tuple variant names as function handles
Scott Olson [Sat, 28 Jan 2017 23:42:54 +0000 (15:42 -0800)]
Merge pull request #104 from oli-obk/cargo
add cargo-miri subcommand
Oliver Schneider [Sat, 28 Jan 2017 15:14:32 +0000 (16:14 +0100)]
travis cargo doesn't support custom subcommands
Oliver Schneider [Sat, 28 Jan 2017 14:46:46 +0000 (15:46 +0100)]
correctly implement pointers to enum variant constructors
Oliver Schneider [Sat, 28 Jan 2017 14:28:24 +0000 (15:28 +0100)]
fix some ICEs
Oliver Schneider [Sat, 28 Jan 2017 14:27:20 +0000 (15:27 +0100)]
drive-by rust update
Oliver Schneider [Tue, 24 Jan 2017 16:55:42 +0000 (17:55 +0100)]
add tests for cargo miri and run them on travis
Oliver Schneider [Tue, 24 Jan 2017 14:33:51 +0000 (15:33 +0100)]
add `cargo miri test` sub sub command
Oliver Schneider [Tue, 24 Jan 2017 12:28:36 +0000 (13:28 +0100)]
add cargo-miri subcommand to directly interpret the main binary of a crate
Oliver Schneider [Mon, 19 Dec 2016 16:49:51 +0000 (17:49 +0100)]
allow using tuple variant names as function handles in presence of NonZero optimizations
Oliver Schneider [Mon, 19 Dec 2016 16:26:47 +0000 (17:26 +0100)]
allow using tuple variant names as function handles
Scott Olson [Sun, 22 Jan 2017 08:19:35 +0000 (00:19 -0800)]
Make clippy-suggested fixes.
Scott Olson [Tue, 17 Jan 2017 03:37:53 +0000 (19:37 -0800)]
Update for changes in rustc.
Scott Olson [Tue, 17 Jan 2017 02:45:30 +0000 (18:45 -0800)]
Use the new field init shorthand.
Scott Olson [Sat, 14 Jan 2017 18:59:32 +0000 (10:59 -0800)]
Merge pull request #102 from oli-obk/rustup
rustup to 2017-01-12
Oliver Schneider [Fri, 13 Jan 2017 16:16:19 +0000 (17:16 +0100)]
rustup to 2017-01-12
Scott Olson [Thu, 12 Jan 2017 23:04:59 +0000 (15:04 -0800)]
Merge pull request #101 from oli-obk/small_fixes
various small fixes
Oliver Schneider [Thu, 12 Jan 2017 08:30:18 +0000 (09:30 +0100)]
fix copy pasted code
Oliver Schneider [Wed, 11 Jan 2017 09:04:17 +0000 (10:04 +0100)]
priroda required functions
Oliver Schneider [Mon, 19 Dec 2016 17:08:53 +0000 (18:08 +0100)]
add test for unions and remove needles forced alloc
Oliver Schneider [Thu, 12 Jan 2017 08:26:22 +0000 (09:26 +0100)]
add memrchr libc function
Oliver Schneider [Thu, 15 Dec 2016 17:27:47 +0000 (18:27 +0100)]
more intrinsics
Scott Olson [Thu, 12 Jan 2017 10:35:36 +0000 (02:35 -0800)]
Merge pull request #100 from oli-obk/tuple_struct_constructor_as_fn
allow the use of tuple struct constructors as functions
Oliver Schneider [Thu, 12 Jan 2017 10:27:04 +0000 (11:27 +0100)]
remove old comment
Oliver Schneider [Thu, 12 Jan 2017 10:23:44 +0000 (11:23 +0100)]
also test transmutes to empty enums
Oliver Schneider [Thu, 12 Jan 2017 09:37:14 +0000 (10:37 +0100)]
prevent intrinsics from creating uninhabited types
Oliver Schneider [Thu, 12 Jan 2017 08:59:00 +0000 (09:59 +0100)]
fix ICE when transmuting inhabited types to uninhabited
Oliver Schneider [Thu, 12 Jan 2017 08:41:36 +0000 (09:41 +0100)]
add a test for dereferencing a pointer to a `!`
Scott Olson [Thu, 12 Jan 2017 08:14:41 +0000 (00:14 -0800)]
Merge pull request #99 from oli-obk/travis
various travis cleanups + run miri tests on travis against 4 major targets
Oliver Schneider [Thu, 12 Jan 2017 07:53:03 +0000 (08:53 +0100)]
remove typo
Oliver Schneider [Thu, 12 Jan 2017 07:52:22 +0000 (08:52 +0100)]
allow the use of tuple struct constructors as functions
Oliver Schneider [Thu, 12 Jan 2017 07:45:09 +0000 (08:45 +0100)]
aux tests only run if the host is set
Oliver Schneider [Mon, 19 Dec 2016 14:47:52 +0000 (15:47 +0100)]
msvc has different internals for mutexes and thus fails on a different function
Oliver Schneider [Tue, 10 Jan 2017 11:50:27 +0000 (12:50 +0100)]
travis fix
Oliver Schneider [Tue, 10 Jan 2017 09:45:33 +0000 (10:45 +0100)]
analyze travis
Oliver Schneider [Tue, 10 Jan 2017 09:04:53 +0000 (10:04 +0100)]
test more targets on travis
Oliver Schneider [Tue, 20 Dec 2016 08:58:41 +0000 (09:58 +0100)]
clamp down on hacks in compiletest
Oliver Schneider [Tue, 20 Dec 2016 08:05:46 +0000 (09:05 +0100)]
try to pin down the travis failure
Oliver Schneider [Mon, 19 Dec 2016 14:59:32 +0000 (15:59 +0100)]
fix travis
Scott Olson [Thu, 12 Jan 2017 07:40:37 +0000 (23:40 -0800)]
Merge pull request #98 from oli-obk/rustup
rustup (i128)
Oliver Schneider [Mon, 19 Dec 2016 14:46:03 +0000 (15:46 +0100)]
re-enable auxiliary tests for the host only
Oliver Schneider [Thu, 12 Jan 2017 07:28:42 +0000 (08:28 +0100)]
rustup (i128)
Scott Olson [Thu, 22 Dec 2016 01:26:52 +0000 (17:26 -0800)]
Add test for #95.
Scott Olson [Thu, 22 Dec 2016 01:23:28 +0000 (17:23 -0800)]
Update for changes in rustc.
Scott Olson [Thu, 22 Dec 2016 01:15:03 +0000 (17:15 -0800)]
Clean up useless `pub use`.
Scott Olson [Mon, 19 Dec 2016 07:31:23 +0000 (23:31 -0800)]
Update MIR passes to match rustc.
Scott Olson [Mon, 19 Dec 2016 04:59:01 +0000 (20:59 -0800)]
Change Option<Value> to Value, using ByVal(Undef).
This job isn't quite finished because it caused me to discover bugs
related to reading `ByVal(Undef)` when a `ByValPair` is expected, e.g.
for a fat pointer. This wasn't a problem with the `None` of
`Option<Value>`, but I realized an equivalent bug existed even then,
since you could transmute a `u64` like `ByVal(Bytes(42))` to a fat
pointer type on 32-bit targets.
Likewise, you could transmute a fat pointer to `u64` and get panics
related to expecting `ByVal` but finding `ByValPair`, so the problem
goes both ways.
Scott Olson [Sat, 17 Dec 2016 11:36:22 +0000 (03:36 -0800)]
Reading undef local/globals gets PrimVal::Undef.
This fixes #95.
Scott Olson [Sat, 17 Dec 2016 11:19:24 +0000 (03:19 -0800)]
Rename bits to bytes for consistency.
Scott Olson [Sat, 17 Dec 2016 11:09:57 +0000 (03:09 -0800)]
Refactor PrimVal::bits() out of existence.
Scott Olson [Sat, 17 Dec 2016 09:58:03 +0000 (01:58 -0800)]
Enable an old test that works now!
Scott Olson [Sat, 17 Dec 2016 09:52:26 +0000 (01:52 -0800)]
This test appears to work on 32-bit now.
Scott Olson [Sat, 17 Dec 2016 09:47:24 +0000 (01:47 -0800)]
Refactor PrimVal::relocation out of existence.
Scott Olson [Sat, 17 Dec 2016 09:36:02 +0000 (01:36 -0800)]
Handle writing undefined PrimVals and mask properly.
Scott Olson [Sat, 17 Dec 2016 09:34:19 +0000 (01:34 -0800)]
Add regression test for write_primval bug.
Scott Olson [Sat, 17 Dec 2016 08:54:37 +0000 (00:54 -0800)]
Improve compiletest target detection.
Scott Olson [Sat, 17 Dec 2016 07:57:46 +0000 (23:57 -0800)]
Make layout SizeOverflow test trigger on i686.
Scott Olson [Sat, 17 Dec 2016 07:47:43 +0000 (23:47 -0800)]
Stop before trans so I can test non-x86_64 targets.
I had problems when it tried to link outputs for targets other than my
host.
This re-breaks tests with auxiliary builds. I'm not sure what to do
about those right now.
Scott Olson [Sat, 17 Dec 2016 07:43:58 +0000 (23:43 -0800)]
Allow compiletest to see symlinked targets.
Scott Olson [Sat, 17 Dec 2016 06:11:44 +0000 (22:11 -0800)]
Rename PrimVal::from_{u,}int to from_{u,i}64.
Scott Olson [Sat, 17 Dec 2016 06:01:01 +0000 (22:01 -0800)]
Turn invalid panics into Results and rename fns.
Scott Olson [Fri, 16 Dec 2016 08:07:02 +0000 (00:07 -0800)]
Shorten PrimVal::Undefined to PrimVal::Undef.
Scott Olson [Fri, 16 Dec 2016 08:06:03 +0000 (00:06 -0800)]
Remove potentially wrong PartialEq from PrimVal.
Scott Olson [Fri, 16 Dec 2016 07:55:00 +0000 (23:55 -0800)]
Rename PrimVal::Pointer to PrimVal::Ptr.
Also fill out the PrimVal doc comments.
Scott Olson [Fri, 16 Dec 2016 07:40:45 +0000 (23:40 -0800)]
Turn PrimVal into an enum including Undefined.
This is step 1 of a refactoring to fix #95. The `Undefined` variant is
so far unused and the old `bits` and `relocation` fields are emulated
with two new temporary methods. There should be no functional change due
to this commit.
Scott Olson [Sat, 17 Dec 2016 01:44:40 +0000 (17:44 -0800)]
Merge pull request #97 from solson/revert-94-revert-93-always_encode_mir
Revert "Revert "rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13)""
Scott Olson [Sat, 17 Dec 2016 01:40:24 +0000 (17:40 -0800)]
Update compiletest_rs to 0.2.5.
Scott Olson [Sat, 17 Dec 2016 01:10:16 +0000 (17:10 -0800)]
Revert "Revert "rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13)""
Scott Olson [Thu, 15 Dec 2016 09:20:52 +0000 (01:20 -0800)]
Merge pull request #94 from solson/revert-93-always_encode_mir
Revert "rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13)"
Scott Olson [Thu, 15 Dec 2016 09:16:06 +0000 (01:16 -0800)]
Revert "rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13)"
Scott Olson [Thu, 15 Dec 2016 09:10:58 +0000 (01:10 -0800)]
Merge pull request #93 from oli-obk/always_encode_mir
rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13)
Oliver Schneider [Thu, 15 Dec 2016 08:58:57 +0000 (09:58 +0100)]
improve variable name
Oliver Schneider [Thu, 15 Dec 2016 08:58:41 +0000 (09:58 +0100)]
check that the null terminator is defined and not part of a pointer
Oliver Schneider [Thu, 15 Dec 2016 08:56:40 +0000 (09:56 +0100)]
remove unused import
Oliver Schneider [Wed, 14 Dec 2016 16:02:59 +0000 (17:02 +0100)]
enable auxiliary builds
Oliver Schneider [Wed, 14 Dec 2016 16:02:45 +0000 (17:02 +0100)]
re-use `mir-opt` compiletest instead of rolling our own
Oliver Schneider [Wed, 14 Dec 2016 16:06:23 +0000 (17:06 +0100)]
rustup to rustc 1.15.0-dev (
ace092f56 2016-12-13) (always_encode_mir)
Scott Olson [Sun, 11 Dec 2016 01:03:12 +0000 (17:03 -0800)]
Move binop functions to operator module.
Scott Olson [Sun, 11 Dec 2016 00:58:13 +0000 (16:58 -0800)]
Clean up vtable imports.
Scott Olson [Sun, 11 Dec 2016 00:27:45 +0000 (16:27 -0800)]
Rename intrinsics to intrinsic for consistency.
Scott Olson [Sun, 11 Dec 2016 00:23:07 +0000 (16:23 -0800)]
Split primval into operator and value.
Scott Olson [Thu, 8 Dec 2016 07:25:47 +0000 (23:25 -0800)]
Add support for untagged unions.
Scott Olson [Thu, 8 Dec 2016 06:56:28 +0000 (22:56 -0800)]
Replace some stray `try!`s with `?`.
Scott Olson [Thu, 8 Dec 2016 06:01:11 +0000 (22:01 -0800)]
Move lvalue-related methods to lvalue mod.
Scott Olson [Thu, 8 Dec 2016 06:00:46 +0000 (22:00 -0800)]
Dump allocations within PrimVal pointers.
Scott Olson [Thu, 8 Dec 2016 04:58:48 +0000 (20:58 -0800)]
Move lvalue data structures out of eval_context.
Scott Olson [Thu, 8 Dec 2016 04:30:37 +0000 (20:30 -0800)]
Flatten 'interpreter' mod tree into the root.
Scott Olson [Wed, 7 Dec 2016 09:12:04 +0000 (01:12 -0800)]
Merge pull request #91 from oli-obk/master
rustup and small fixes
Oliver Schneider [Wed, 7 Dec 2016 08:52:22 +0000 (09:52 +0100)]
fix documentation
Oliver Schneider [Wed, 7 Dec 2016 08:19:14 +0000 (09:19 +0100)]
simplify the interpreter locals, since they always must be backed by an allocation
Oliver Schneider [Tue, 6 Dec 2016 14:41:28 +0000 (15:41 +0100)]
rustup
Oliver Schneider [Tue, 6 Dec 2016 17:13:11 +0000 (18:13 +0100)]
stop leaking memory on closure calls
Oliver Schneider [Tue, 6 Dec 2016 15:16:22 +0000 (16:16 +0100)]
supply a real "caller" span to drop calls
Oliver Schneider [Tue, 6 Dec 2016 14:41:28 +0000 (15:41 +0100)]
rustup
Scott Olson [Sat, 3 Dec 2016 03:44:59 +0000 (19:44 -0800)]
Update for changes in rustc.
Scott Olson [Tue, 29 Nov 2016 04:22:21 +0000 (20:22 -0800)]
Introduce try_read_value to avoid allocations.
Attempt reading a primitive value out of any source lvalue and write
that into the destination without making an allocation if possible.
Scott Olson [Mon, 28 Nov 2016 03:09:39 +0000 (19:09 -0800)]
Merge pull request #89 from solson/unkind-primval
Remove PrimValKind field from PrimVal.
Scott Olson [Mon, 28 Nov 2016 03:08:06 +0000 (19:08 -0800)]
Remove useless map.