Commit Graph

159 Commits

Author SHA1 Message Date
Ralf Jung
3da754e54b run CI in Miri 2019-08-16 11:56:46 +02:00
Gilad Naaman
51b48e1407
Merge pull request #20 from RalfJung/comment
explain why we do not have deref coercion problems
2019-08-16 11:56:13 +03:00
Ralf Jung
28021da8ec explain why we do not have deref coercion problems 2019-08-10 15:11:59 +02:00
Gilad Naaman
6843496a4b
Merge pull request #19 from RalfJung/readme
Fix README and lower minimum Rust version
2019-08-10 15:20:54 +03:00
Ralf Jung
564d4a6c11 fmt 2019-08-10 11:59:57 +02:00
Ralf Jung
a614a209ab no need to use NonNull 2019-08-10 11:59:47 +02:00
Ralf Jung
2931fc3024 test README only on nightly, so that it can be a dev-dependency 2019-08-10 11:43:04 +02:00
Ralf Jung
c9990c0ae1 explain why 1.25 is the oldest supported 2019-08-10 11:32:07 +02:00
Ralf Jung
f0bfe5be0a it's not a preview any more 2019-08-10 11:17:11 +02:00
Ralf Jung
d35991b1fd fix redundant key in travis.yml 2019-08-10 11:17:09 +02:00
Ralf Jung
5abf873462 fix testing README and fix README tests 2019-08-10 11:12:48 +02:00
Ralf Jung
b35ec98360 Merge commit 'refs/pull/8/head' of https://github.com/Gilnaa/memoffset 2019-08-10 11:05:56 +02:00
Ralf Jung
4f2fb3fded update version info in README 2019-08-10 11:05:08 +02:00
Gilad Naaman
eeacd4253c v0.5.1 2019-07-15 21:54:34 +03:00
Gilad Naaman
2e1f3374f8
Merge pull request #16 from RalfJung/local_inner_macros
use local_inner_macros
2019-07-15 21:54:03 +03:00
Ralf Jung
b8d3d2d131 use local_inner_macros 2019-07-15 18:38:02 +02:00
Gilad Naaman
fe0dce0d46 v0.5.0 2019-07-14 20:54:55 +03:00
Gilad Naaman
0cf565702d
Merge pull request #14 from RalfJung/span_of
Fix span_of
2019-07-14 11:02:33 +03:00
Ralf Jung
b26ea242f3 explain let_base_ptr 2019-07-14 09:19:18 +02:00
Ralf Jung
1783d533f3 old rust compat 2019-07-14 01:19:05 +02:00
Ralf Jung
bf0b7494bd rustfmt 2019-07-14 01:17:16 +02:00
Ralf Jung
c332f10a24 improve doctest 2019-07-14 01:10:18 +02:00
Ralf Jung
6b03fc34b6 span_of: test packed and not-packed separately; not-packed passes on Miri 2019-07-14 00:58:23 +02:00
Ralf Jung
18860381cd deref coercion protection for span_of 2019-07-14 00:54:41 +02:00
Ralf Jung
ad161aca54 field_check macro; propagate parent type through span_of 2019-07-13 17:23:47 +02:00
Ralf Jung
b1051ccce9 use the same base_ptr macro for span_of 2019-07-13 17:18:07 +02:00
Ralf Jung
ae01598991 share the common code between the two offset_of implementations 2019-07-13 17:08:50 +02:00
Ralf Jung
e4c2fe6edd offset_of: test packed and not-packed separately; not-packed passes on Miri 2019-07-13 16:32:43 +02:00
Gilad Naaman
d92d4a11bf
Merge pull request #12 from RalfJung/deref
add deref-coercion-check to old version of macro; improve comments
2019-07-12 14:28:14 +03:00
Ralf Jung
45e4b2763e try to fix old macro 2019-07-07 11:01:31 +02:00
Ralf Jung
b47902ae68 switch to nicer deref-coercion-protection; make two macros more similar 2019-07-07 10:52:52 +02:00
Gilad Naaman
fa2cce2358
Merge pull request #11 from Gilnaa/bugfix/soundness
Fixed soundness issues and removed nested member access.
2019-07-04 19:42:18 +03:00
Gilad Naaman
9a7d4664aa Fixed MaybeUninit for 1.36 2019-07-04 19:33:22 +03:00
Gilad Naaman
31a8de9c2f Fixed soundness issues and removed nested member access. 2019-07-02 20:56:30 +03:00
Guillaume Gomez
2f6bb9c370 Add tests for README file 2019-05-20 15:12:50 +02:00
Gilad Naaman
ee03d7a6d2
Merge pull request #7 from Gilnaa/fix_constant_for_old_version
Added dual support for 1.33 and 1.19
2019-03-15 11:46:10 +02:00
Gilad Naaman
2d96bfe695 Added dual support for 1.33 and 1.19 2019-03-15 11:38:46 +02:00
Gilad Naaman
2870d9d965
Merge pull request #6 from Gilnaa/ci
Added travis configuration
2019-03-13 23:07:44 +02:00
Gilad Naaman
d3e25ebe1f Added travis configuration 2019-03-13 22:57:42 +02:00
Gilad Naaman
5ec649913b
Merge pull request #5 from Popog/master
Support const expr (but not const fns) and arbitrary expressions
2019-03-13 21:27:43 +02:00
Unknown
9e06907285 Remove arbitrary expr 2019-03-12 23:41:22 -07:00
Unknown
b243bc1e89 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
Gilad Naaman
fbbf6f5eee
Merge pull request #3 from cuviper/allow-const_err
Add #[allow(const_err)] on test offset_index_out_of_bounds
2018-09-08 11:19:40 +03:00
Josh Stone
0437fd69c1 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
468249a069 Fixed unsafe/packing related warnings 2018-01-15 23:32:02 +02:00
Gilad Naaman
a9cc05526c Bumped version to 0.2 2018-01-13 19:37:05 +02:00
Gilad Naaman
03cc3186d2
Merge pull request #2 from jeehoonkang/rust-1.12.1
Support Rust 1.12.1
2018-01-13 19:17:16 +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
745368a41f Cargo.toml update 2017-10-17 09:15:37 +03:00