Alexander Regueiro
c1d29ee3c7
Aggregation of cosmetic changes made during work on REPL PRs: librustc
2019-09-07 16:27:19 +01:00
Mazdak Farrokhzad
c358476c1b
Rollup merge of #63075 - RalfJung:deref-checks, r=oli-obk
...
Miri: Check that a ptr is aligned and inbounds already when evaluating `*`
This syncs Miri with what the Nomicon and the Reference say, and resolves https://github.com/rust-lang/miri/issues/447 .
Also this would not have worked without https://github.com/rust-lang/rust/pull/62982 due to new cycles. ;)
r? @oli-obk
2019-08-14 22:56:20 +02:00
Saleem Jaffer
35417e722b
renaming throw_err_* to throw_*
2019-07-30 20:18:50 +05:30
Saleem Jaffer
fc5df1dfbf
renaming err to err_unsup
2019-07-30 16:08:32 +05:30
Saleem Jaffer
69daf844da
adding throw_ and err_ macros for InterpError
2019-07-30 15:25:12 +05:30
Saleem Jaffer
9f8b099846
code review fixes
2019-07-29 20:17:52 +05:30
Saleem Jaffer
8e9d0faff2
adding a err macro for each of the InterpError variants
2019-07-29 13:35:59 +05:30
Saleem Jaffer
307798aa38
fixing fallout due to InterpError refactor
2019-07-29 13:35:09 +05:30
Ralf Jung
e4c39e1bc2
better name for check_in_alloc
2019-07-28 14:19:13 +02:00
Saleem Jaffer
3730ed9e5b
renames EvalErrorPanic to PanicMessage
2019-07-23 16:42:46 +05:30
Saleem Jaffer
90426ed642
moving some variants from InterpError to EvalErrorPanic
2019-07-23 13:37:04 +05:30
Ralf Jung
c12c8a78ea
clean up internals of pointer checks; make get_size_and_align also check for fn allocations
2019-06-23 17:25:58 +02:00
Ralf Jung
dcc8371d4e
move CheckInAllocMsg to more logical place
2019-06-23 16:31:16 +02:00
Eduard-Mihai Burtescu
774724be3c
rustc: deny(unused_lifetimes).
2019-06-11 14:11:58 +03:00
Ralf Jung
8f05ff3e33
rename EvalResult -> InterpResult and EvalError -> InterpErrorInfo
2019-06-08 11:39:48 +02:00
Ralf Jung
77be06b7ed
no longer assume that there is a default tag: give the machine the chance to tag all allocations
2019-06-02 10:36:18 +02:00
Mazdak Farrokhzad
16ef483b79
Rollup merge of #61164 - RalfJung:scalar, r=oli-obk
...
rename Scalar::Bits to Scalar::Raw and bits field to data
Also use this opportunity to seal some abstraction leaks (other modules constructing `Scalar::Bits` directly instead of using a constructor).
r? @oli-obk
2019-05-28 18:15:39 +02:00
bors
1a56ec4dae
Auto merge of #59627 - LooMaclin:issue_57128_improve_miri_error_reporting_in_check_in_alloc, r=RalfJung
...
Improve miri error reporting in check_in_alloc
Fixes https://github.com/rust-lang/rust/issues/57128
r? @RalfJung @oli-obk
2019-05-27 12:46:12 +00:00
Ralf Jung
3defb3f18f
fix overflow error in signed wrapping offset
2019-05-26 14:12:54 +02:00
Ralf Jung
d01ef7d918
improve debug-printing of scalars
...
Before: Immediate(ScalarMaybeUndef(Scalar(Ptr(Pointer { alloc_id: AllocId(3401), offset: Size { raw: 4 }, tag: Tagged(7723) }))))
After: Immediate(Scalar(AllocId(3401).0x4[<7723>]))
Before: Immediate(ScalarMaybeUndef(Scalar(Bits { size: 8, bits: 10 })))
After: Immediate(Scalar(0x000000000000000A))
Before: Immediate(ScalarMaybeUndef(Scalar(Bits { size: 1, bits: 1 })))
After: Immediate(Scalar(0x01))
2019-05-24 16:11:50 +02:00
Vadim Petrochenkov
88fa5c6a45
Improve type size assertions
...
Now they
- Tell what the new size is, when it changes
- Do not require passing an identifier
2019-05-19 13:59:44 +03:00
Ralf Jung
19485cc101
Miri: refactor new allocation tagging
2019-04-16 23:35:39 +02:00
LooMaclin
725199ce65
Improve miri's error reporting in check_in_alloc
2019-04-02 05:58:25 +03:00
John Kåre Alsaker
3936aff216
Use derive macro for HashStable
2019-03-13 00:03:13 +01:00
Mark Mansi
e957ed9d10
move librustc to 2018
2019-02-05 12:45:47 -06:00
Oliver Scherer
2a1748834e
Add some size assertions for const eval types
2019-01-27 21:41:34 +01:00
Oliver Scherer
b853252bcd
Rebase fallout
2018-11-24 11:36:32 +01:00
Oliver Scherer
428af73e7c
Rebase fallout
2018-11-08 14:52:02 +01:00
Oliver Scherer
00e524ce34
Move Pointer to its own module
2018-11-08 14:52:02 +01:00