Ralf Jung
00429dfba5
field_check macro; propagate parent type through span_of
2019-07-13 17:23:47 +02:00
Ralf Jung
8966c23338
use the same base_ptr macro for span_of
2019-07-13 17:18:07 +02:00
Ralf Jung
7e33517281
share the common code between the two offset_of implementations
2019-07-13 17:08:50 +02:00
Ralf Jung
e2ce9187d0
offset_of: test packed and not-packed separately; not-packed passes on Miri
2019-07-13 16:32:43 +02:00
Ralf Jung
f4e1759d76
try to fix old macro
2019-07-07 11:01:31 +02:00
Ralf Jung
cb9a42ca25
switch to nicer deref-coercion-protection; make two macros more similar
2019-07-07 10:52:52 +02:00
Gilad Naaman
9e67d272b3
Fixed MaybeUninit for 1.36
2019-07-04 19:33:22 +03:00
Gilad Naaman
d0bc87f11a
Fixed soundness issues and removed nested member access.
2019-07-02 20:56:30 +03:00
Gilad Naaman
9174130890
Added dual support for 1.33 and 1.19
2019-03-15 11:38:46 +02:00
Gilad Naaman
f4a28ed95a
Added travis configuration
2019-03-13 22:57:42 +02:00
Unknown
ad90bb13b6
Remove arbitrary expr
2019-03-12 23:41:22 -07:00
Unknown
f90b11c30c
Support const expr (but not const fns) and arbitrary expressions
...
Parse `expr`s using lambda like syntax to avoid recursion.
2019-03-12 22:37:47 -07:00
Josh Stone
a5cc37c558
Add #[allow(const_err)] on test offset_index_out_of_bounds
...
The compiler now raises a deny-by-default `const_err` lint on this test,
which doesn't let it get to the expected `#[should_panic]`. We can
allow that lint in order to let the test hit the error it wants.
2018-09-07 15:40:11 -07:00
Gilad Naaman
2337b1df25
Fixed unsafe/packing related warnings
2018-01-15 23:32:02 +02:00
Gilad Naaman
f402a6f370
Bumped version to 0.2
2018-01-13 19:37:05 +02:00
Jeehoon Kang
3faf536944
Support Rust 1.12.1
2018-01-13 23:13:21 +09:00
Gilad Naaman
8f0b20382e
Doc: Fixed incorrect calim about "..="
2017-10-17 20:20:29 +03:00
Gilad Naaman
8d2818c039
More readme examples
2017-10-17 09:08:07 +03:00
Gilad Naaman
16fca9241f
doc+disclaimer
2017-10-17 09:04:17 +03:00
Gilad Naaman
e96f43aa32
RustFmt run
2017-10-17 09:00:53 +03:00
Gilad Naaman
14acc5cb29
Improved span_of! implementation
2017-10-17 08:50:12 +03:00
Gilad Naaman
fc9c50ca3f
Switched back into using uninitialized memory instead of nullptr
2017-10-17 08:41:26 +03:00
Gilad Naaman
c2d4432de7
Switched to the MIT license
2017-10-17 08:37:35 +03:00
Gilad Naaman
057a247d25
Cleanup. Macors no longer thoretically allocate.
2017-10-16 22:51:37 +03:00
Gilad Naaman
32cbbb79ac
Changed name offset->memoffset
2017-10-16 06:22:58 +03:00
Gilad Naaman
2946b7e5f5
Initial Commit
2017-10-15 23:38:00 +03:00