Ralf Jung
0a4ec5d34e
test for rustup-toolchain-install-master
2019-12-01 10:22:16 +01:00
Ralf Jung
f838410f49
toolchain -> rustup-toolchain
2019-12-01 10:20:16 +01:00
Ralf Jung
c9b3b688d5
add toolchain mgmt script
2019-11-30 10:08:41 +01:00
bors
e1b639afca
Auto merge of #1085 - RalfJung:panic-runtime, r=RalfJung
...
avoid injected_panic_runtime which is going away
Thanks @petrochenkov for suggesting this!
2019-11-29 20:39:05 +00:00
Ralf Jung
4a4886c0f0
avoid injected_panic_runtime which is going away
2019-11-29 21:37:59 +01:00
bors
59eee1a4c8
Auto merge of #1083 - RalfJung:fn-call-helper, r=oli-obk
...
Add and use helper function for calling a machine function and passing it some arguments
2019-11-29 10:27:40 +00:00
Ralf Jung
e5a81c6a2d
fix comment
2019-11-29 11:08:27 +01:00
Ralf Jung
fe76d33506
Add and use helper function for calling a machine function and passing it some arguments
2019-11-29 09:23:29 +01:00
bors
3bf51f591f
Auto merge of #1077 - RalfJung:unwind_to_block, r=RalfJung
...
adjust for goto_block refactoring
The Miri side of https://github.com/rust-lang/rust/pull/66646
2019-11-27 08:13:59 +00:00
Ralf Jung
a04620eb69
only run leak test on clean platforms
2019-11-27 09:13:37 +01:00
Ralf Jung
fbc1fb20ac
bump Rust version
2019-11-27 08:45:24 +01:00
Ralf Jung
824328c6d5
adjust for goto_block refactoring
2019-11-27 08:34:15 +01:00
bors
91cec06f4c
Auto merge of #1078 - RalfJung:uprust, r=RalfJung
...
cargo update
2019-11-26 13:29:38 +00:00
Ralf Jung
e2fd9d83e2
cargo update
2019-11-26 14:28:56 +01:00
bors
24d0b39fc6
Auto merge of #1076 - RalfJung:coercion-test, r=RalfJung
...
test closure-to-fn-ptr coercions a bit more
Also add some commented-out failing tests, Cc https://github.com/rust-lang/rust/issues/66738 https://github.com/rust-lang/miri/issues/1075
2019-11-25 14:12:15 +00:00
Ralf Jung
2152258b04
and another reference
2019-11-25 15:10:39 +01:00
Ralf Jung
66dc939787
rename some more tests
2019-11-25 15:08:47 +01:00
Ralf Jung
d16e12b0a4
rename test and add some references
2019-11-25 15:08:24 +01:00
Ralf Jung
51d47e8dc5
test closure-to-fn-ptr coercions a bit more
2019-11-25 15:01:05 +01:00
bors
29b53f9906
Auto merge of #1072 - RalfJung:locally-built-rustc, r=oli-obk
...
cargo-miri: support locally built rustc
This also removes an odd hack from our `./miri` script.
2019-11-24 17:55:16 +00:00
bors
aeb218afa2
Auto merge of #1073 - RalfJung:catch_panic, r=RalfJung
...
beef up catch_panic test
Do not silence panic msg printing (so we subsume the tests checking those), and check a few different ways of raising a panic.
2019-11-24 09:52:44 +00:00
Ralf Jung
35e1fe1665
also test non-string panic payload
2019-11-24 10:51:48 +01:00
Ralf Jung
ee411c2a74
beef up catch_panic test
2019-11-24 10:24:41 +01:00
Ralf Jung
274e72996e
miri script does not need to handle locally built rustc any more
2019-11-23 10:36:23 +01:00
Ralf Jung
5339d541ef
cargo-miri: also find Rust sources when being run in a locally built, linked toolchain
2019-11-23 10:33:49 +01:00
bors
1541fe80e1
Auto merge of #1069 - RalfJung:typo, r=RalfJung
...
typo
2019-11-22 17:12:47 +00:00
Ralf Jung
6941caf1df
typo
2019-11-22 18:12:10 +01:00
bors
644e2a76a8
Auto merge of #1067 - Aaron1011:feature/inverse-trig, r=RalfJung
...
Add acos, asin, and atan foreign functions
I copied the tests from the docs pages
2019-11-22 09:23:24 +00:00
bors
0fffa97300
Auto merge of #1068 - RalfJung:uprust, r=RalfJung
...
rustup for never stabilization
2019-11-22 08:52:58 +00:00
Ralf Jung
6888555ca9
rustup for never stabilization
2019-11-22 09:50:22 +01:00
Aaron Hill
a328683c4a
Add acos, asin, and atan foreign functions
...
I copied the tests from the docs pages
2019-11-21 17:33:30 -05:00
bors
35e92d9420
Auto merge of #1065 - Aaron1011:fix/start-return, r=RalfJung
...
Propagate the return code from the `start` lang item
Fixes #1064
This ensures that we set the error code properly when a panic unwinds
past `main`.
I'm not sure what the best way to write a test for this is
2019-11-20 19:16:40 +00:00
Aaron Hill
2176bf6cf0
Fix nits
...
Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-11-20 13:52:04 -05:00
bors
613879466a
Auto merge of #1066 - RalfJung:slice-match, r=RalfJung
...
slice matching overflow got fixed
2019-11-20 18:39:31 +00:00
Ralf Jung
f16f891191
slice matching overflow got fixed
2019-11-20 19:38:41 +01:00
Aaron Hill
3102129316
Improve return code propagation.
...
Don't explicitly exit if we reported an evaluation error
2019-11-20 12:43:10 -05:00
Aaron Hill
2532b86a3b
Propagate the return code from the start
lang item
...
Fixes #1064
This ensures that we set the error code properly when a panic unwinds
past `main`.
I'm not sure what the best way to write a test for this is
2019-11-19 17:25:09 -05:00
bors
11603c4657
Auto merge of #1063 - RalfJung:panic-abort, r=RalfJung
...
rename panic=abort tests to panic_abort
2019-11-19 21:47:13 +00:00
Ralf Jung
5cef4666e6
rename panic=abort tests to panic_abort
2019-11-19 22:44:07 +01:00
bors
e588d9535c
Auto merge of #693 - Aaron1011:feature/panic_unwind_final, r=oli-obk
...
Support unwinding after a panic
Fixes #658
This commit adds support for unwinding after a panic. It requires a
companion rustc PR to be merged, in order for the necessary hooks to
work properly.
Currently implemented:
* Selecting between unwind/abort mode based on the rustc Session
* Properly popping off stack frames, unwinding back the caller
* Running 'unwind' blocks in Mir terminators
Not yet implemented:
* 'Abort' terminators
This PR was getting fairly large, so I decided to open it for review without
implementing 'Abort' terminator support. This could either be added on
to this PR, or merged separately.
I've a test to exercise several different aspects of unwind panicking. Ideally, we would run Miri against the libstd panic tests, but I haven't yet figured out how to do that.
This depends on https://github.com/rust-lang/rust/pull/60026
2019-11-19 21:07:26 +00:00
Aaron Hill
6fe89e45f4
Disable #[should_panic] test on Windows
...
We should re-enable this once
https://github.com/rust-lang/miri/issues/1059 is fixed
2019-11-19 15:59:42 -05:00
Aaron Hill
2750f60d4f
Update panic runtime comment
2019-11-19 15:33:14 -05:00
Aaron Hill
e02dc4af4b
Re-add comment
2019-11-19 15:31:37 -05:00
bors
9e13cba07b
Auto merge of #1062 - RalfJung:readme, r=RalfJung
...
generalize readme
We didn't mean any specific date, that was just an example.
2019-11-19 19:40:55 +00:00
Ralf Jung
a4eb34b3e1
generalize readme
2019-11-19 20:40:06 +01:00
Aaron Hill
8936d67e7f
Delegate to the actual panic runtime crate
2019-11-19 10:11:25 -05:00
Ralf Jung
82374ad9bd
comments and slight refactoring
2019-11-19 14:51:08 +01:00
bors
cf65c0cca6
Auto merge of #1060 - RalfJung:compiletest, r=RalfJung
...
bump compiletest; remove unused feature
2019-11-18 14:12:01 +00:00
Ralf Jung
52b18b44f9
bump compiletest; remove unused feature
2019-11-18 15:10:17 +01:00
Aaron Hill
80f9484c86
Disable panic tests on Windows
...
Miri currently does not support `GetProcAddress`
and `GetModuleHandleW`, both of which end up getting invoked by the
libstd panic hook.
2019-11-17 13:49:31 -05:00