vcombey / fallible_collections

impl fallible collections in rust, quite as describe in RFC 2116
Apache License 2.0
31 stars 14 forks source link

[Fixed compilation error] Unique did not implement from<NonNull<_>>, … #6

Closed sclolus closed 4 years ago

sclolus commented 4 years ago

…constructed it using Unique::new_unchecked() instead. Compilation was broken when feature unstable was enabled. This commit hopefully fixes the issue without breaking any of the invariants. I haven't read the codebase though. However we're currently updating Turbofish to the current nightly rust, and we wanted to update the faillible_collections dependency to the 1.2.0 version, so we need this fix to pass.