Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite "Implementing Vec" chapter - Unique is permanently unstable #160

Closed
tesuji opened this issue Aug 24, 2019 · 2 comments · Fixed by #223
Closed

Rewrite "Implementing Vec" chapter - Unique is permanently unstable #160

tesuji opened this issue Aug 24, 2019 · 2 comments · Fixed by #223

Comments

@tesuji
Copy link
Contributor

tesuji commented Aug 24, 2019

This chapter use Unique to demonstrate how to implement a Vec. But it is
permanently unstable and can only be used by std. Also in
https://github.com/rust-lang/rust/blob/478464570e60523adc6d303577d1782229ca1f93/src/libcore/ptr/unique.rs#L28-L34
it recommends that we should use NonNull instead and consider PhantomData<T>.

@eisterman
Copy link

What is the pattern to use instead of Unique? With NonNull?

@Coder-256
Copy link

I think this is a duplicate of #83.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants