]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoget rid of serde rc3 dependencies through `cargo update`
Oliver Schneider [Mon, 30 Jan 2017 08:45:21 +0000 (09:45 +0100)]
get rid of serde rc3 dependencies through `cargo update`

7 years agoimplement packed struct field access
Oliver Schneider [Mon, 30 Jan 2017 08:44:52 +0000 (09:44 +0100)]
implement packed struct field access

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

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

7 years agotravis cargo doesn't support custom subcommands
Oliver Schneider [Sat, 28 Jan 2017 15:14:32 +0000 (16:14 +0100)]
travis cargo doesn't support custom subcommands

7 years agocorrectly implement pointers to enum variant constructors
Oliver Schneider [Sat, 28 Jan 2017 14:46:46 +0000 (15:46 +0100)]
correctly implement pointers to enum variant constructors

7 years agofix some ICEs
Oliver Schneider [Sat, 28 Jan 2017 14:28:24 +0000 (15:28 +0100)]
fix some ICEs

7 years agodrive-by rust update
Oliver Schneider [Sat, 28 Jan 2017 14:27:20 +0000 (15:27 +0100)]
drive-by rust update

7 years agoadd tests for cargo miri and run them on travis
Oliver Schneider [Tue, 24 Jan 2017 16:55:42 +0000 (17:55 +0100)]
add tests for cargo miri and run them on travis

7 years agoadd `cargo miri test` sub sub command
Oliver Schneider [Tue, 24 Jan 2017 14:33:51 +0000 (15:33 +0100)]
add `cargo miri test` sub sub command

7 years agoadd cargo-miri subcommand to directly interpret the main binary of a crate
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

7 years agoallow using tuple variant names as function handles in presence of NonZero optimizations
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

7 years agoallow using tuple variant names as function handles
Oliver Schneider [Mon, 19 Dec 2016 16:26:47 +0000 (17:26 +0100)]
allow using tuple variant names as function handles

7 years agoMake clippy-suggested fixes.
Scott Olson [Sun, 22 Jan 2017 08:19:35 +0000 (00:19 -0800)]
Make clippy-suggested fixes.

7 years agoUpdate for changes in rustc.
Scott Olson [Tue, 17 Jan 2017 03:37:53 +0000 (19:37 -0800)]
Update for changes in rustc.

7 years agoUse the new field init shorthand.
Scott Olson [Tue, 17 Jan 2017 02:45:30 +0000 (18:45 -0800)]
Use the new field init shorthand.

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

7 years agorustup to 2017-01-12
Oliver Schneider [Fri, 13 Jan 2017 16:16:19 +0000 (17:16 +0100)]
rustup to 2017-01-12

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

7 years agofix copy pasted code
Oliver Schneider [Thu, 12 Jan 2017 08:30:18 +0000 (09:30 +0100)]
fix copy pasted code

7 years agopriroda required functions
Oliver Schneider [Wed, 11 Jan 2017 09:04:17 +0000 (10:04 +0100)]
priroda required functions

7 years agoadd test for unions and remove needles forced alloc
Oliver Schneider [Mon, 19 Dec 2016 17:08:53 +0000 (18:08 +0100)]
add test for unions and remove needles forced alloc

7 years agoadd memrchr libc function
Oliver Schneider [Thu, 12 Jan 2017 08:26:22 +0000 (09:26 +0100)]
add memrchr libc function

7 years agomore intrinsics
Oliver Schneider [Thu, 15 Dec 2016 17:27:47 +0000 (18:27 +0100)]
more intrinsics

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

7 years agoremove old comment
Oliver Schneider [Thu, 12 Jan 2017 10:27:04 +0000 (11:27 +0100)]
remove old comment

7 years agoalso test transmutes to empty enums
Oliver Schneider [Thu, 12 Jan 2017 10:23:44 +0000 (11:23 +0100)]
also test transmutes to empty enums

7 years agoprevent intrinsics from creating uninhabited types
Oliver Schneider [Thu, 12 Jan 2017 09:37:14 +0000 (10:37 +0100)]
prevent intrinsics from creating uninhabited types

7 years agofix ICE when transmuting inhabited types to uninhabited
Oliver Schneider [Thu, 12 Jan 2017 08:59:00 +0000 (09:59 +0100)]
fix ICE when transmuting inhabited types to uninhabited

7 years agoadd a test for dereferencing a pointer to a `!`
Oliver Schneider [Thu, 12 Jan 2017 08:41:36 +0000 (09:41 +0100)]
add a test for dereferencing a pointer to a `!`

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

7 years agoremove typo
Oliver Schneider [Thu, 12 Jan 2017 07:53:03 +0000 (08:53 +0100)]
remove typo

7 years agoallow the use of tuple struct constructors as functions
Oliver Schneider [Thu, 12 Jan 2017 07:52:22 +0000 (08:52 +0100)]
allow the use of tuple struct constructors as functions

7 years agoaux tests only run if the host is set
Oliver Schneider [Thu, 12 Jan 2017 07:45:09 +0000 (08:45 +0100)]
aux tests only run if the host is set

7 years agomsvc has different internals for mutexes and thus fails on a different function
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

7 years agotravis fix
Oliver Schneider [Tue, 10 Jan 2017 11:50:27 +0000 (12:50 +0100)]
travis fix

7 years agoanalyze travis
Oliver Schneider [Tue, 10 Jan 2017 09:45:33 +0000 (10:45 +0100)]
analyze travis

7 years agotest more targets on travis
Oliver Schneider [Tue, 10 Jan 2017 09:04:53 +0000 (10:04 +0100)]
test more targets on travis

7 years agoclamp down on hacks in compiletest
Oliver Schneider [Tue, 20 Dec 2016 08:58:41 +0000 (09:58 +0100)]
clamp down on hacks in compiletest

7 years agotry to pin down the travis failure
Oliver Schneider [Tue, 20 Dec 2016 08:05:46 +0000 (09:05 +0100)]
try to pin down the travis failure

7 years agofix travis
Oliver Schneider [Mon, 19 Dec 2016 14:59:32 +0000 (15:59 +0100)]
fix travis

7 years agoMerge pull request #98 from oli-obk/rustup
Scott Olson [Thu, 12 Jan 2017 07:40:37 +0000 (23:40 -0800)]
Merge pull request #98 from oli-obk/rustup

rustup (i128)

7 years agore-enable auxiliary tests for the host only
Oliver Schneider [Mon, 19 Dec 2016 14:46:03 +0000 (15:46 +0100)]
re-enable auxiliary tests for the host only

7 years agorustup (i128)
Oliver Schneider [Thu, 12 Jan 2017 07:28:42 +0000 (08:28 +0100)]
rustup (i128)

7 years agoAdd test for #95.
Scott Olson [Thu, 22 Dec 2016 01:26:52 +0000 (17:26 -0800)]
Add test for #95.

7 years agoUpdate for changes in rustc.
Scott Olson [Thu, 22 Dec 2016 01:23:28 +0000 (17:23 -0800)]
Update for changes in rustc.

7 years agoClean up useless `pub use`.
Scott Olson [Thu, 22 Dec 2016 01:15:03 +0000 (17:15 -0800)]
Clean up useless `pub use`.

7 years agoUpdate MIR passes to match rustc.
Scott Olson [Mon, 19 Dec 2016 07:31:23 +0000 (23:31 -0800)]
Update MIR passes to match rustc.

7 years agoChange Option<Value> to Value, using ByVal(Undef).
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.

7 years agoReading undef local/globals gets PrimVal::Undef.
Scott Olson [Sat, 17 Dec 2016 11:36:22 +0000 (03:36 -0800)]
Reading undef local/globals gets PrimVal::Undef.

This fixes #95.

7 years agoRename bits to bytes for consistency.
Scott Olson [Sat, 17 Dec 2016 11:19:24 +0000 (03:19 -0800)]
Rename bits to bytes for consistency.

7 years agoRefactor PrimVal::bits() out of existence.
Scott Olson [Sat, 17 Dec 2016 11:09:57 +0000 (03:09 -0800)]
Refactor PrimVal::bits() out of existence.

7 years agoEnable an old test that works now!
Scott Olson [Sat, 17 Dec 2016 09:58:03 +0000 (01:58 -0800)]
Enable an old test that works now!

7 years agoThis test appears to work on 32-bit now.
Scott Olson [Sat, 17 Dec 2016 09:52:26 +0000 (01:52 -0800)]
This test appears to work on 32-bit now.

7 years agoRefactor PrimVal::relocation out of existence.
Scott Olson [Sat, 17 Dec 2016 09:47:24 +0000 (01:47 -0800)]
Refactor PrimVal::relocation out of existence.

7 years agoHandle writing undefined PrimVals and mask properly.
Scott Olson [Sat, 17 Dec 2016 09:36:02 +0000 (01:36 -0800)]
Handle writing undefined PrimVals and mask properly.

7 years agoAdd regression test for write_primval bug.
Scott Olson [Sat, 17 Dec 2016 09:34:19 +0000 (01:34 -0800)]
Add regression test for write_primval bug.

7 years agoImprove compiletest target detection.
Scott Olson [Sat, 17 Dec 2016 08:54:37 +0000 (00:54 -0800)]
Improve compiletest target detection.

7 years agoMake layout SizeOverflow test trigger on i686.
Scott Olson [Sat, 17 Dec 2016 07:57:46 +0000 (23:57 -0800)]
Make layout SizeOverflow test trigger on i686.

7 years agoStop before trans so I can test non-x86_64 targets.
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.

7 years agoAllow compiletest to see symlinked targets.
Scott Olson [Sat, 17 Dec 2016 07:43:58 +0000 (23:43 -0800)]
Allow compiletest to see symlinked targets.

7 years agoRename PrimVal::from_{u,}int to from_{u,i}64.
Scott Olson [Sat, 17 Dec 2016 06:11:44 +0000 (22:11 -0800)]
Rename PrimVal::from_{u,}int to from_{u,i}64.

7 years agoTurn invalid panics into Results and rename fns.
Scott Olson [Sat, 17 Dec 2016 06:01:01 +0000 (22:01 -0800)]
Turn invalid panics into Results and rename fns.

7 years agoShorten PrimVal::Undefined to PrimVal::Undef.
Scott Olson [Fri, 16 Dec 2016 08:07:02 +0000 (00:07 -0800)]
Shorten PrimVal::Undefined to PrimVal::Undef.

7 years agoRemove potentially wrong PartialEq from PrimVal.
Scott Olson [Fri, 16 Dec 2016 08:06:03 +0000 (00:06 -0800)]
Remove potentially wrong PartialEq from PrimVal.

7 years agoRename PrimVal::Pointer to PrimVal::Ptr.
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.

7 years agoTurn PrimVal into an enum including Undefined.
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.

7 years agoMerge pull request #97 from solson/revert-94-revert-93-always_encode_mir
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)""

7 years agoUpdate compiletest_rs to 0.2.5.
Scott Olson [Sat, 17 Dec 2016 01:40:24 +0000 (17:40 -0800)]
Update compiletest_rs to 0.2.5.

7 years agoRevert "Revert "rustup to rustc 1.15.0-dev (ace092f56 2016-12-13)""
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)""

7 years agoMerge pull request #94 from solson/revert-93-always_encode_mir
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)"

7 years agoRevert "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)"

7 years agoMerge pull request #93 from oli-obk/always_encode_mir
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)

7 years agoimprove variable name
Oliver Schneider [Thu, 15 Dec 2016 08:58:57 +0000 (09:58 +0100)]
improve variable name

7 years agocheck that the null terminator is defined and not part of a pointer
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

7 years agoremove unused import
Oliver Schneider [Thu, 15 Dec 2016 08:56:40 +0000 (09:56 +0100)]
remove unused import

7 years agoenable auxiliary builds
Oliver Schneider [Wed, 14 Dec 2016 16:02:59 +0000 (17:02 +0100)]
enable auxiliary builds

7 years agore-use `mir-opt` compiletest instead of rolling our own
Oliver Schneider [Wed, 14 Dec 2016 16:02:45 +0000 (17:02 +0100)]
re-use `mir-opt` compiletest instead of rolling our own

7 years agorustup to rustc 1.15.0-dev (ace092f56 2016-12-13) (always_encode_mir)
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)

7 years agoMove binop functions to operator module.
Scott Olson [Sun, 11 Dec 2016 01:03:12 +0000 (17:03 -0800)]
Move binop functions to operator module.

7 years agoClean up vtable imports.
Scott Olson [Sun, 11 Dec 2016 00:58:13 +0000 (16:58 -0800)]
Clean up vtable imports.

7 years agoRename intrinsics to intrinsic for consistency.
Scott Olson [Sun, 11 Dec 2016 00:27:45 +0000 (16:27 -0800)]
Rename intrinsics to intrinsic for consistency.

7 years agoSplit primval into operator and value.
Scott Olson [Sun, 11 Dec 2016 00:23:07 +0000 (16:23 -0800)]
Split primval into operator and value.

7 years agoAdd support for untagged unions.
Scott Olson [Thu, 8 Dec 2016 07:25:47 +0000 (23:25 -0800)]
Add support for untagged unions.

7 years agoReplace some stray `try!`s with `?`.
Scott Olson [Thu, 8 Dec 2016 06:56:28 +0000 (22:56 -0800)]
Replace some stray `try!`s with `?`.

7 years agoMove lvalue-related methods to lvalue mod.
Scott Olson [Thu, 8 Dec 2016 06:01:11 +0000 (22:01 -0800)]
Move lvalue-related methods to lvalue mod.

7 years agoDump allocations within PrimVal pointers.
Scott Olson [Thu, 8 Dec 2016 06:00:46 +0000 (22:00 -0800)]
Dump allocations within PrimVal pointers.

7 years agoMove lvalue data structures out of eval_context.
Scott Olson [Thu, 8 Dec 2016 04:58:48 +0000 (20:58 -0800)]
Move lvalue data structures out of eval_context.

7 years agoFlatten 'interpreter' mod tree into the root.
Scott Olson [Thu, 8 Dec 2016 04:30:37 +0000 (20:30 -0800)]
Flatten 'interpreter' mod tree into the root.

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

7 years agofix documentation
Oliver Schneider [Wed, 7 Dec 2016 08:52:22 +0000 (09:52 +0100)]
fix documentation

7 years agosimplify the interpreter locals, since they always must be backed by an allocation
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

7 years agorustup
Oliver Schneider [Tue, 6 Dec 2016 14:41:28 +0000 (15:41 +0100)]
rustup

7 years agostop leaking memory on closure calls
Oliver Schneider [Tue, 6 Dec 2016 17:13:11 +0000 (18:13 +0100)]
stop leaking memory on closure calls

7 years agosupply a real "caller" span to drop calls
Oliver Schneider [Tue, 6 Dec 2016 15:16:22 +0000 (16:16 +0100)]
supply a real "caller" span to drop calls

7 years agorustup
Oliver Schneider [Tue, 6 Dec 2016 14:41:28 +0000 (15:41 +0100)]
rustup

7 years agoUpdate for changes in rustc.
Scott Olson [Sat, 3 Dec 2016 03:44:59 +0000 (19:44 -0800)]
Update for changes in rustc.

7 years agoIntroduce try_read_value to avoid allocations.
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.

7 years agoMerge pull request #89 from solson/unkind-primval
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.

7 years agoRemove useless map.
Scott Olson [Mon, 28 Nov 2016 03:08:06 +0000 (19:08 -0800)]
Remove useless map.