Commit Graph

1788 Commits

Author SHA1 Message Date
Aaron Hill cf5b53e52f Rustup for panic changes
This gets Miri working again, but doesn't actually implement unwinding
2019-11-12 19:52:15 -05:00
Ralf Jung 2c55a508e9 rustup 2019-11-11 21:25:57 +01:00
Ralf Jung 37b1190def rustup 2019-11-08 22:07:52 +01:00
Ralf Jung 9ca277f2e9 bump minimal xargo version so that it honors the lockfile 2019-11-08 16:36:57 +01:00
bors 0740a2040f Auto merge of #1037 - JOE1994:master, r=RalfJung
error code E0080 is no longer printed with MIRI error message

Thanks to help from @bjorn3, @RalfJung, and @oli-obk on issue #1035 , I fixed the miri code so that error code **E0080** is no longer printed out for MIRI evaluation errors. I tested my code in my Linux machine as below.
![image](https://user-images.githubusercontent.com/10286488/68264744-e71e6c80-0017-11ea-9028-f83e19164ea2.png)

Remaining concern is whether the variable name `new_tcx` which I used is misleading or not.

Fixes https://github.com/rust-lang/miri/issues/1035
2019-11-06 13:39:22 +00:00
YOUNGSUK KIM e5675ab0fc follow-up to review 2019-11-06 08:25:00 -05:00
Ralf Jung 8b0c14f9f6 ptr_offset: handle negative offsets 2019-11-06 10:51:06 +01:00
Ralf Jung 4b9a7d8cff fix error message details 2019-11-06 09:24:26 +01:00
Ralf Jung 9eb4e00f6f refactor ptr_offset_inbounds: it can be reduced to check_ptr_access, after all! 2019-11-06 09:24:26 +01:00
YOUNGSUK KIM 2661295cdf error code E0080 is no longer printed with MIRI error message 2019-11-05 21:56:18 -05:00
Ralf Jung 955a26fb08 calling panic_if_uninhabited is not actually UB 2019-11-03 15:39:03 +01:00
bors 4f7171585f Auto merge of #961 - rust-lang:exact_div_reuse, r=RalfJung
Use the upstream `exact_div` implementation

introduced in https://github.com/rust-lang/rust/pull/63810
2019-11-03 09:16:55 +00:00
Ralf Jung 5a5fa15382 style 2019-11-03 10:03:30 +01:00
Oliver Scherer 7a39460e24 Use the upstream exact_div implementation 2019-11-03 09:34:48 +01:00
Ralf Jung ddb1fc9205 store scalars where appropriate 2019-11-02 11:50:21 +01:00
Ralf Jung 1e0b398cb6 Windows cmdline: avoid accessing allocations directly 2019-11-02 11:48:28 +01:00
Ralf Jung 90634121b3 fix typo 2019-10-30 15:05:44 +01:00
Ralf Jung 15ae234a42 rustup for span in intrinsic emulation 2019-10-30 10:16:58 +01:00
Ralf Jung d8a3a1f09c rustup for projection interning 2019-10-26 09:33:24 +02:00
Ralf Jung c87f106cac update comments and some tweaks 2019-10-24 10:27:14 +02:00
Ralf Jung cf9340113e rustup: more flexible write_bytes avoids allocations and removes itertools dependency 2019-10-24 10:15:30 +02:00
bors a05f2aa3ab Auto merge of #993 - christianpoveda:os_string_helper, r=RalfJung
Add OsString from/to bytes helper functions

Related issue: https://github.com/rust-lang/miri/issues/989

r? @RalfJung
2019-10-23 16:52:52 +00:00
Ralf Jung 354de02c24 rustup; fix debugging 2019-10-23 16:33:54 +02:00
Christian Poveda de12cbcb32 Fix documentation 2019-10-23 08:58:25 -05:00
Christian Poveda fb4cb5bf4a Make size error distinguishable from other errors 2019-10-22 16:57:07 -05:00
Christian Poveda be415dbeda Use new write_bytes method 2019-10-22 11:44:49 -05:00
Ralf Jung db949af8ed fix field index 2019-10-22 10:43:16 +02:00
Ralf Jung 2690f5948a rustup: fix for write_bytes and new union rules 2019-10-22 10:13:11 +02:00
Christian Poveda 72bd25de83 Fix merge conflicts 2019-10-21 08:49:49 -05:00
Ralf Jung d9aa20fb31 add some missing trailing full stops that slipped through review 2019-10-21 13:24:56 +02:00
bors af3923bebc Auto merge of #991 - christianpoveda:errno-place, r=RalfJung
Change the last OS error location to a place

r? @RalfJung
2019-10-21 09:15:51 +00:00
bors f912a8b054 Auto merge of #1010 - RalfJung:xargo, r=RalfJung
when xargo is manually specified, don't try to upgrade it
2019-10-21 08:45:54 +00:00
Ralf Jung ebdb6d4df7 when xargo is manually specified, don't try to upgrade it 2019-10-21 10:25:47 +02:00
Christian Poveda 283a130dda Add docs for the new helper functions 2019-10-20 17:40:21 -05:00
Christian Poveda 9d50c5e758 Small corrections to docs 2019-10-20 07:55:26 -05:00
Christian Poveda 8a8fa53a5d Transform the last error place to an immediate instead 2019-10-20 07:55:26 -05:00
Christian Poveda 619ccf3834 Rename set_last_error_from_io_result 2019-10-20 07:55:25 -05:00
Christian Poveda 5c3c738c4b Make transformation to OS error explicit 2019-10-20 07:53:56 -05:00
Christian Poveda 338e51aa48 Rename consume_result 2019-10-20 07:53:55 -05:00
Christian Poveda ed776f67ba Change last_error to a place 2019-10-20 07:42:59 -05:00
Christian Poveda 4232939319 Move last error functions to helpers 2019-10-20 07:42:59 -05:00
Ralf Jung 88c88530ec use expect_none and unwrap_none where it makes sense 2019-10-20 12:20:48 +02:00
Christian Poveda f7c6e0efbe Do additional bounds checks 2019-10-19 15:49:00 -05:00
Christian Poveda ab059671cb Change comparison order for clarity 2019-10-19 14:13:49 -05:00
Ralf Jung 324fed316f print sysroot without any escaping 2019-10-19 16:38:37 +02:00
Ralf Jung e574c77aa2 audit our bounds checks 2019-10-19 12:39:02 +02:00
Christian Poveda 0201cc5587 Fix writing errors 2019-10-18 15:28:06 -05:00
Christian Poveda 85941c7249 Rename write/read os string functions 2019-10-18 09:49:56 -05:00
Christian Poveda 68fec4b3fe Use conditional compilation properly and work with OsStrs instead 2019-10-18 09:49:56 -05:00
Christian Poveda 1241abbec4 Change helper functions to read/write 2019-10-18 09:49:55 -05:00