Amanieu / intrusive-rs

Intrusive collections for Rust
Apache License 2.0
412 stars 48 forks source link

Use std's into_raw/from_raw. #29

Closed jrmuizel closed 5 years ago

jrmuizel commented 5 years ago

This removes the hack implementation that was needed before these functions were stabilized in 1.17. This also fixes a pointer out-of-bounds error when running the tests under miri.

Amanieu commented 5 years ago

Why is the rand stuff commented out? It should work fine on miri since it uses new_unseeded, which uses a constant seed and should not use the OS random number generator.

jrmuizel commented 5 years ago

I didn't mean to include the rand stuff. I haven't investigated why it's not working with miri yet. I've pushed a new version that doesn't have it.

Amanieu commented 5 years ago

There seems to be a build failure on 1.17. Ignore the failure on nightly, that's a different issue.

Amanieu commented 5 years ago

You'll want to bump the minimum Rust version to 1.22 in .travis.yml.

Amanieu commented 5 years ago

Thanks!