Smitty
e9d69d9f8e
Allocation failure in constprop panics right away
2021-07-02 16:06:12 -04:00
Smitty
524e575bb4
Support allocation failures when interperting MIR
...
Note that this breaks Miri.
Closes #79601
2021-06-29 19:08:26 -04:00
Charles Lew
654e3345e5
Change miri to use tcx allocated allocations.
2021-06-27 19:34:34 +08:00
Ralf Jung
585141b219
support creating mutable allocations from byte slices
2021-05-23 12:37:16 +02:00
Ralf Jung
c3005e85da
avoid redundant immutability check
2021-05-23 11:55:31 +02:00
Ralf Jung
3bcba11c35
reject deallocation of read-only allocations
2021-05-23 11:53:23 +02:00
Ralf Jung
96ae300889
CTFE get_alloc_extra_mut: also provide ref to MemoryExtra
2021-05-22 15:20:20 +02:00
Ralf Jung
50a9f008f2
CTFE Machine: do not expose Allocation
2021-05-19 16:37:57 +02:00
Ralf Jung
563ab4a106
add Align::ONE; add methods to access alloc.extra
2021-05-18 19:33:55 +02:00
Ralf Jung
74995c4292
reduce number of allocation lookups during copy
2021-05-18 19:33:55 +02:00
Ralf Jung
46c2286395
CTFE core engine allocation & memory API improvemenets
...
- make Allocation API offset-based (no more Pointer)
- make Memory API higher-level (combine checking for access and getting access into one operation)
2021-05-18 19:33:55 +02:00
Ralf Jung
a28be5cbe8
Rollup merge of #85412 - RalfJung:c_str, r=oli-obk
...
remove some functions that were only used by Miri
and Miri does not need them any more with https://github.com/rust-lang/miri/pull/1805 .
r? ``@oli-obk``
2021-05-17 18:52:17 +02:00
Ralf Jung
cb5533cff2
remove some functions that were only used by Miri
2021-05-17 14:43:16 +02:00
Ralf Jung
7962b5ae45
remove size field from Allocation
2021-05-17 13:30:16 +02:00
Brent Kerby
6679f5ceb1
Change 'NULL' to 'null'
2021-05-02 17:46:00 -06:00
Mara Bos
cfb4ad4f2a
Remove unwrap_none/expect_none from compiler/.
2021-03-18 14:25:54 +01:00
Vishnunarayan K I
ff0ebd27a4
move interpret::MemoryKind::Heap to const eval
2020-12-03 21:42:11 +05:30
Vishnunarayan K I
bc6eb6fa5d
move intrinsic to CTFE, add FIXME
2020-12-03 12:21:47 +05:30
Vishnunarayan K I
899a59e7ca
rename MemoryKind::Heap to ConstHeap; bless test
2020-12-02 17:45:11 +05:30
Vishnunarayan K I
b5b811aab4
review comments
2020-12-01 19:48:09 +05:30
Vishnunarayan K I
528355c541
add const_allocate intrisic
2020-12-01 15:39:25 +05:30
Ralf Jung
731113b8ee
Miri: more informative deallocation error messages
2020-09-22 09:05:12 +02:00
Oliver Scherer
182ed8544d
Address review comments
2020-09-19 10:36:36 +02:00
Oliver Scherer
69a6be73e6
Rename const eval queries to reflect the validation changes
2020-09-19 10:36:36 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00