]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agobe explicit about our line endings
Ralf Jung [Mon, 1 Jul 2019 09:05:57 +0000 (11:05 +0200)]
be explicit about our line endings

5 years agoAuto merge of #809 - RalfJung:intptrcast, r=RalfJung
bors [Sun, 30 Jun 2019 21:19:56 +0000 (21:19 +0000)]
Auto merge of #809 - RalfJung:intptrcast, r=RalfJung

use intptrcast for heap_allocator test; then it should work on Windows

5 years agotest even more size-alignment combinations. found a bug in libstd!
Ralf Jung [Sun, 30 Jun 2019 19:23:48 +0000 (21:23 +0200)]
test even more size-alignment combinations. found a bug in libstd!

5 years agofix minimal alignment for system allocation functions
Ralf Jung [Sun, 30 Jun 2019 19:08:17 +0000 (21:08 +0200)]
fix minimal alignment for system allocation functions

5 years agoadd some tracing to intptrcast
Ralf Jung [Sun, 30 Jun 2019 19:06:32 +0000 (21:06 +0200)]
add some tracing to intptrcast

5 years agomove appveyor env var settings to more appropriate section
Ralf Jung [Sun, 30 Jun 2019 19:03:52 +0000 (21:03 +0200)]
move appveyor env var settings to more appropriate section

5 years agofix setting rustc flags
Ralf Jung [Sun, 30 Jun 2019 17:10:09 +0000 (19:10 +0200)]
fix setting rustc flags

5 years agoAuto merge of #806 - varkor:patch-1, r=RalfJung
bors [Sun, 30 Jun 2019 15:07:03 +0000 (15:07 +0000)]
Auto merge of #806 - varkor:patch-1, r=RalfJung

Fix `unused_must_use` inside `Box`

After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail). (This blocks https://github.com/rust-lang/rust/pull/62228.)

5 years agoMiri is not deterministic any more
Ralf Jung [Sun, 30 Jun 2019 15:02:20 +0000 (17:02 +0200)]
Miri is not deterministic any more

5 years agouse intptrcast for heap_allocator test; then it should work on Windows
Ralf Jung [Sun, 30 Jun 2019 14:56:16 +0000 (16:56 +0200)]
use intptrcast for heap_allocator test; then it should work on Windows

5 years agoAuto merge of #807 - RalfJung:test-name, r=RalfJung
bors [Sun, 30 Jun 2019 14:46:03 +0000 (14:46 +0000)]
Auto merge of #807 - RalfJung:test-name, r=RalfJung

better name for a test: threads -> sync

5 years agoimprove comment
Ralf Jung [Sun, 30 Jun 2019 14:45:41 +0000 (16:45 +0200)]
improve comment

5 years agobetter name for a test: threads -> sync
Ralf Jung [Sun, 30 Jun 2019 14:44:25 +0000 (16:44 +0200)]
better name for a test: threads -> sync

5 years agoFix `unused_must_use` inside `Box`
varkor [Sun, 30 Jun 2019 14:31:14 +0000 (15:31 +0100)]
Fix `unused_must_use` inside `Box`

After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail).

5 years agoAuto merge of #805 - RalfJung:shims, r=RalfJung
bors [Sun, 30 Jun 2019 13:38:38 +0000 (13:38 +0000)]
Auto merge of #805 - RalfJung:shims, r=RalfJung

move shims (foreign items and intrinsics) into submodule

This is in preparation for dlsym support, where there will b a third "kind" of shim.

And maybe some day we find a good way to split those long files...

5 years agomove shims (foreign items and intrinsics) into submodule
Ralf Jung [Sun, 30 Jun 2019 13:35:28 +0000 (15:35 +0200)]
move shims (foreign items and intrinsics) into submodule

5 years agoAuto merge of #804 - RalfJung:intptrcast, r=RalfJung
bors [Sun, 30 Jun 2019 09:37:27 +0000 (09:37 +0000)]
Auto merge of #804 - RalfJung:intptrcast, r=RalfJung

fix comparing function pointers with intptrcast

Cc @christianpoveda

5 years agofix comparing function pointers with intptrcast
Ralf Jung [Sun, 30 Jun 2019 08:59:42 +0000 (10:59 +0200)]
fix comparing function pointers with intptrcast

5 years agoAuto merge of #801 - RalfJung:num_cpus, r=RalfJung
bors [Sun, 30 Jun 2019 08:42:25 +0000 (08:42 +0000)]
Auto merge of #801 - RalfJung:num_cpus, r=RalfJung

support num_cpus crate and test that

Also make some magic numbers into proper global constants.

5 years agoAuto merge of #795 - RalfJung:intptrcast, r=RalfJung
bors [Sat, 29 Jun 2019 12:45:14 +0000 (12:45 +0000)]
Auto merge of #795 - RalfJung:intptrcast, r=RalfJung

tweak inttoptr allocation behavior

- Make `align_addr` not offset by `align` for no reason.
- Add some random slack between allocations to give them the chance to not be aligned.

Cc @christianpoveda

Fixes https://github.com/rust-lang/miri/issues/791

5 years agomove constants to machine.rs
Ralf Jung [Sat, 29 Jun 2019 12:37:41 +0000 (14:37 +0200)]
move constants to machine.rs

5 years agocomment on STACK_ADDR
Ralf Jung [Sat, 29 Jun 2019 11:37:38 +0000 (13:37 +0200)]
comment on STACK_ADDR

5 years agosupport num_cpus and test that
Ralf Jung [Sat, 29 Jun 2019 11:33:47 +0000 (13:33 +0200)]
support num_cpus and test that

5 years agomake sure we catch alignment problems even with intrptrcast
Ralf Jung [Fri, 28 Jun 2019 08:27:19 +0000 (10:27 +0200)]
make sure we catch alignment problems even with intrptrcast

5 years agodon't compute residue twice
Ralf Jung [Fri, 28 Jun 2019 08:24:16 +0000 (10:24 +0200)]
don't compute residue twice

5 years agomore sensible slack
Ralf Jung [Fri, 28 Jun 2019 08:23:29 +0000 (10:23 +0200)]
more sensible slack

5 years agotweak inttoptr allocation behavior
Ralf Jung [Fri, 28 Jun 2019 08:16:10 +0000 (10:16 +0200)]
tweak inttoptr allocation behavior

- Make `align_addr` not offset by `align` for no reason.
- Add some random slack between allocations to give them the chance to not be aligned.

5 years agoAuto merge of #802 - RalfJung:machine, r=RalfJung
bors [Sat, 29 Jun 2019 11:52:02 +0000 (11:52 +0000)]
Auto merge of #802 - RalfJung:machine, r=RalfJung

some lib.rs refactoring

Taken out of https://github.com/rust-lang/miri/pull/799 so that we can land it now and resolve merge conflicts instead of dragging them along.

Splits lib.rs into machine.rs for the machine state and trait impl, and eval.rs for the main evaluator loop and setting up the initial stack frame.

5 years agomove most of the stuff from lib.rs into machine.rs, and initialization + main loop...
Ralf Jung [Thu, 27 Jun 2019 21:59:00 +0000 (23:59 +0200)]
move most of the stuff from lib.rs into machine.rs, and initialization + main loop into eval.rs

5 years agoAuto merge of #798 - RalfJung:format-ptr, r=RalfJung
bors [Fri, 28 Jun 2019 18:43:30 +0000 (18:43 +0000)]
Auto merge of #798 - RalfJung:format-ptr, r=RalfJung

test pointer string formatting

5 years agotest pointer string formatting
Ralf Jung [Fri, 28 Jun 2019 18:42:00 +0000 (20:42 +0200)]
test pointer string formatting

5 years agoAuto merge of #796 - RalfJung:rand, r=RalfJung
bors [Fri, 28 Jun 2019 09:31:23 +0000 (09:31 +0000)]
Auto merge of #796 - RalfJung:rand, r=RalfJung

bump rand to released 0.7

5 years agobump rand to released 0.7
Ralf Jung [Fri, 28 Jun 2019 09:29:24 +0000 (11:29 +0200)]
bump rand to released 0.7

5 years agoAuto merge of #794 - RalfJung:alignment-sanity, r=oli-obk
bors [Fri, 28 Jun 2019 07:15:35 +0000 (07:15 +0000)]
Auto merge of #794 - RalfJung:alignment-sanity, r=oli-obk

ptr-to-int alignment sanity check

5 years agoptr-to-int alignment sanity check
Ralf Jung [Fri, 28 Jun 2019 07:12:11 +0000 (09:12 +0200)]
ptr-to-int alignment sanity check

5 years agoAuto merge of #793 - jyn514:master, r=RalfJung
bors [Fri, 28 Jun 2019 06:29:10 +0000 (06:29 +0000)]
Auto merge of #793 - jyn514:master, r=RalfJung

Show usage if run without arguments

Before, running `./miri` without arguments gave
'./miri: 92: shift: can't shift that many' if run with /bin/sh,
or no output at all when run with bash (because of the `set -e` at the top).

Although that gives some indication of the error, it's not as helpful as
showing the usage.

5 years agoShow usage if run without arguments
Joshua Nelson [Fri, 28 Jun 2019 01:46:24 +0000 (21:46 -0400)]
Show usage if run without arguments

Before, running `./miri` without arguments gave
'./miri: 92: shift: can't shift that many' if run with /bin/sh,
or no output at all when run with bash.

Although that gives some indication of the error, it's not as helpful as
showing the usage.

5 years agoAuto merge of #779 - christianpoveda:intptrcast-model, r=RalfJung,oli-obk
bors [Wed, 26 Jun 2019 14:52:03 +0000 (14:52 +0000)]
Auto merge of #779 - christianpoveda:intptrcast-model, r=RalfJung,oli-obk

Implement intptrcast methods

cc https://github.com/rust-lang/miri/issues/224

5 years agoFix alignment of base addresses
Christian Poveda [Tue, 25 Jun 2019 19:07:23 +0000 (14:07 -0500)]
Fix alignment of base addresses

5 years agoAuto merge of #790 - RalfJung:readme, r=oli-obk
bors [Tue, 25 Jun 2019 08:14:59 +0000 (08:14 +0000)]
Auto merge of #790 - RalfJung:readme, r=oli-obk

README: add snippet for running Miri on CI

5 years agoadd snippet for running Miri on CI
Ralf Jung [Tue, 25 Jun 2019 08:05:34 +0000 (10:05 +0200)]
add snippet for running Miri on CI

5 years agoFix merge conflicts
Christian Poveda [Tue, 25 Jun 2019 02:47:37 +0000 (21:47 -0500)]
Fix merge conflicts

5 years agoReorganize MemoryExtra and AllocExtra structures
Christian Poveda [Mon, 24 Jun 2019 21:34:38 +0000 (16:34 -0500)]
Reorganize MemoryExtra and AllocExtra structures

5 years agoAuto merge of #787 - RalfJung:pointer-checks, r=RalfJung
bors [Mon, 24 Jun 2019 21:59:22 +0000 (21:59 +0000)]
Auto merge of #787 - RalfJung:pointer-checks, r=RalfJung

adjust for refactored memory pointer checks

The Miri side of https://github.com/rust-lang/rust/pull/62081.

5 years agobump Rust commit
Ralf Jung [Mon, 24 Jun 2019 21:58:12 +0000 (23:58 +0200)]
bump Rust commit

5 years agoRename new fields and move rng to MemoryExtra
Christian Poveda [Mon, 24 Jun 2019 15:03:16 +0000 (10:03 -0500)]
Rename new fields and move rng to MemoryExtra

5 years agoApply suggestions from code review
Ralf Jung [Mon, 24 Jun 2019 12:50:27 +0000 (14:50 +0200)]
Apply suggestions from code review

Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de>
5 years agoexpand and better explain alignment check tests
Ralf Jung [Mon, 24 Jun 2019 06:40:45 +0000 (08:40 +0200)]
expand and better explain alignment check tests

5 years agode-obfuscate ptr comparison a bit
Ralf Jung [Sun, 23 Jun 2019 18:30:33 +0000 (20:30 +0200)]
de-obfuscate ptr comparison a bit

5 years agoadjust for refactored memory pointer checks
Ralf Jung [Sun, 23 Jun 2019 15:26:12 +0000 (17:26 +0200)]
adjust for refactored memory pointer checks

5 years agoForce intptrcast for binary operations
Christian Poveda [Sat, 22 Jun 2019 14:25:16 +0000 (09:25 -0500)]
Force intptrcast for binary operations

5 years agoAuto merge of #783 - RalfJung:rustup, r=RalfJung
bors [Sat, 22 Jun 2019 09:49:32 +0000 (09:49 +0000)]
Auto merge of #783 - RalfJung:rustup, r=RalfJung

fix compilation with latest rustc

5 years agoAuto merge of #784 - RalfJung:ci, r=RalfJung
bors [Sat, 22 Jun 2019 09:14:48 +0000 (09:14 +0000)]
Auto merge of #784 - RalfJung:ci, r=RalfJung

also run tests for cron jobs

5 years agoalso run tests for cron jobs
Ralf Jung [Sat, 22 Jun 2019 09:13:35 +0000 (11:13 +0200)]
also run tests for cron jobs

5 years agofix compilation with latest rustc
Ralf Jung [Sat, 22 Jun 2019 09:05:12 +0000 (11:05 +0200)]
fix compilation with latest rustc

5 years agoDuplicate compile-fail tests for intptrcast
Christian Poveda [Fri, 21 Jun 2019 21:32:54 +0000 (16:32 -0500)]
Duplicate compile-fail tests for intptrcast

5 years agoImplement intptrcast methods
Christian Poveda [Thu, 20 Jun 2019 19:21:47 +0000 (14:21 -0500)]
Implement intptrcast methods

5 years agoAuto merge of #782 - RalfJung:generator, r=RalfJung
bors [Fri, 21 Jun 2019 19:49:43 +0000 (19:49 +0000)]
Auto merge of #782 - RalfJung:generator, r=RalfJung

add a failing test where an immovable generator gets moved

Test courtesy of @shepmaster

5 years agoadd a failing test where an immovable generator gets moved
Ralf Jung [Fri, 21 Jun 2019 19:48:27 +0000 (21:48 +0200)]
add a failing test where an immovable generator gets moved

5 years agoAuto merge of #780 - RalfJung:ci, r=RalfJung
bors [Fri, 21 Jun 2019 19:03:00 +0000 (19:03 +0000)]
Auto merge of #780 - RalfJung:ci, r=RalfJung

adapt CI for bors

With this, we should run the Travis tests (Linux+macOS) in PRs, and run that plus AppVeyor in bors.

5 years agofix Travis bors branch names
Ralf Jung [Fri, 21 Jun 2019 19:02:30 +0000 (21:02 +0200)]
fix Travis bors branch names

5 years agoAppVeyor: only run on bors branches
Ralf Jung [Fri, 21 Jun 2019 18:55:24 +0000 (20:55 +0200)]
AppVeyor: only run on bors branches

5 years agoTravis: also run on bors branches, and not on master
Ralf Jung [Fri, 21 Jun 2019 18:51:05 +0000 (20:51 +0200)]
Travis: also run on bors branches, and not on master

5 years agoMerge pull request #778 from christianpoveda/master
Ralf Jung [Fri, 21 Jun 2019 11:20:22 +0000 (13:20 +0200)]
Merge pull request #778 from christianpoveda/master

Update tag methods to match Machine changes

5 years agoMerge branch 'master' into master
Oliver Scherer [Fri, 21 Jun 2019 10:37:13 +0000 (12:37 +0200)]
Merge branch 'master' into master

5 years agoUpdate rust-version
Oliver Scherer [Fri, 21 Jun 2019 10:36:19 +0000 (12:36 +0200)]
Update rust-version

5 years agoMerge pull request #777 from RalfJung/rustup
Ralf Jung [Fri, 21 Jun 2019 07:00:21 +0000 (09:00 +0200)]
Merge pull request #777 from RalfJung/rustup

bump Rust

5 years agoMerge branch 'master' into master
Christian Poveda [Fri, 21 Jun 2019 02:38:10 +0000 (21:38 -0500)]
Merge branch 'master' into master

5 years agoUpdate tag methods to match Machine changes
Christian Poveda [Thu, 20 Jun 2019 21:58:57 +0000 (16:58 -0500)]
Update tag methods to match Machine changes

5 years agoMerge branch 'master' into rustup
Ralf Jung [Thu, 20 Jun 2019 19:37:12 +0000 (21:37 +0200)]
Merge branch 'master' into rustup

5 years agoMerge pull request #774 from soc/patch-1
Ralf Jung [Thu, 20 Jun 2019 19:36:59 +0000 (21:36 +0200)]
Merge pull request #774 from soc/patch-1

Fix project dirs path

5 years agoMerge branch 'master' into patch-1
Ralf Jung [Thu, 20 Jun 2019 18:47:27 +0000 (20:47 +0200)]
Merge branch 'master' into patch-1

5 years agouse org.rust-lang.miri folder on macOS
Ralf Jung [Thu, 20 Jun 2019 17:45:39 +0000 (19:45 +0200)]
use org.rust-lang.miri folder on macOS

5 years agoallow some inequality comparisons between pointers and integers
Ralf Jung [Thu, 20 Jun 2019 14:38:55 +0000 (16:38 +0200)]
allow some inequality comparisons between pointers and integers

5 years agobump Rust, no changes needed
Ralf Jung [Thu, 20 Jun 2019 13:35:06 +0000 (15:35 +0200)]
bump Rust, no changes needed

5 years agoMerge pull request #776 from RalfJung/intrinsics
Oliver Scherer [Mon, 17 Jun 2019 09:12:12 +0000 (11:12 +0200)]
Merge pull request #776 from RalfJung/intrinsics

 implement unchecked_{add,sub,mul} intrinsics

5 years agoimplement and test unchecked_{add,sub,mul} intrinsics
Ralf Jung [Sun, 16 Jun 2019 09:10:14 +0000 (11:10 +0200)]
implement and test unchecked_{add,sub,mul} intrinsics

5 years agotest unchecked_rem
Ralf Jung [Sun, 16 Jun 2019 08:53:49 +0000 (10:53 +0200)]
test unchecked_rem

5 years agotest exact_div UB detection
Ralf Jung [Sun, 16 Jun 2019 08:51:08 +0000 (10:51 +0200)]
test exact_div UB detection

5 years agoMerge pull request #771 from kennethbgoodin/foreign_math_functions
Ralf Jung [Sun, 16 Jun 2019 09:10:26 +0000 (11:10 +0200)]
Merge pull request #771 from kennethbgoodin/foreign_math_functions

Add more missing math functions

5 years agoMerge branch 'master' into foreign_math_functions
Ralf Jung [Sun, 16 Jun 2019 08:11:32 +0000 (10:11 +0200)]
Merge branch 'master' into foreign_math_functions

5 years agoMerge pull request #775 from rust-lang/rustup
Ralf Jung [Sun, 16 Jun 2019 08:10:53 +0000 (10:10 +0200)]
Merge pull request #775 from rust-lang/rustup

Rustup

5 years agobump rustc yet again
Ralf Jung [Sun, 16 Jun 2019 07:49:27 +0000 (09:49 +0200)]
bump rustc yet again

5 years agoFix project dirs path
soc [Fri, 14 Jun 2019 21:17:27 +0000 (23:17 +0200)]
Fix project dirs path

    ProjectDirs::from("miri", "miri", "miri")

would get you `miri\miri` on Windows and `miri.miri.miri` on macOS.

I'm assuming here that your intention was to have only a `miri` directory on every OS.

5 years agoFix wrong lifetime of TyCtxt
Lzu Tao [Fri, 14 Jun 2019 19:34:11 +0000 (02:34 +0700)]
Fix wrong lifetime of TyCtxt

Rustup rust-lang/rust#61817

5 years agoMerge pull request #772 from RalfJung/sysroot
Ralf Jung [Fri, 14 Jun 2019 12:28:37 +0000 (14:28 +0200)]
Merge pull request #772 from RalfJung/sysroot

Fix sysroot handling

5 years agofix running a Miri that was built in bootstrap
Ralf Jung [Fri, 14 Jun 2019 10:09:43 +0000 (12:09 +0200)]
fix running a Miri that was built in bootstrap

5 years agochange sysroot check to print the output in case of an error
Ralf Jung [Fri, 14 Jun 2019 09:15:09 +0000 (11:15 +0200)]
change sysroot check to print the output in case of an error

5 years agoFix indentation
Oliver Scherer [Fri, 14 Jun 2019 08:44:08 +0000 (10:44 +0200)]
Fix indentation

5 years agoAdd more missing math functions
Kenny Goodin [Thu, 13 Jun 2019 18:11:35 +0000 (14:11 -0400)]
Add more missing math functions

Add missing functions for atan2, cosh, sinh, and tan.
Also add f32 calls and tests for cbrt and hypot.

5 years agoMerge pull request #769 from RalfJung/rustup
Ralf Jung [Thu, 13 Jun 2019 07:50:54 +0000 (09:50 +0200)]
Merge pull request #769 from RalfJung/rustup

Rustup

5 years agorustup for lifetime refactorings
Ralf Jung [Thu, 13 Jun 2019 06:52:04 +0000 (08:52 +0200)]
rustup for lifetime refactorings

5 years agoREADME: mention to cargo update, mention rustup-toolchain-install-master
Ralf Jung [Thu, 13 Jun 2019 06:43:35 +0000 (08:43 +0200)]
README: mention to cargo update, mention rustup-toolchain-install-master

5 years agoMerge pull request #763 from kennethbgoodin/fix_cmath_functions
Ralf Jung [Wed, 12 Jun 2019 20:56:53 +0000 (22:56 +0200)]
Merge pull request #763 from kennethbgoodin/fix_cmath_functions

[WIP] Implement cbrt and hypot function calls

5 years agoImplement cbrt and hypot function calls
Kenny Goodin [Wed, 5 Jun 2019 05:26:46 +0000 (01:26 -0400)]
Implement cbrt and hypot function calls

Test cases are added to `tests/run-pass/intrinsics-math.rs`

5 years agoMerge pull request #701 from RalfJung/rand
Ralf Jung [Wed, 12 Jun 2019 17:16:08 +0000 (19:16 +0200)]
Merge pull request #701 from RalfJung/rand

test rand a bit more

5 years agobump rand so that the test passes
Ralf Jung [Wed, 12 Jun 2019 16:30:05 +0000 (18:30 +0200)]
bump rand so that the test passes

5 years agotest rand a bit more
Ralf Jung [Wed, 12 Jun 2019 16:19:50 +0000 (18:19 +0200)]
test rand a bit more

5 years agoMerge pull request #764 from RalfJung/minmax
Ralf Jung [Tue, 11 Jun 2019 18:06:00 +0000 (20:06 +0200)]
Merge pull request #764 from RalfJung/minmax

implement min and max floating point intrinsics

5 years agobump Rust version
Ralf Jung [Tue, 11 Jun 2019 17:42:01 +0000 (19:42 +0200)]
bump Rust version