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

std::raw::TraitObject does not implement Clone #16311

Closed
metajack opened this issue Aug 6, 2014 · 2 comments
Closed

std::raw::TraitObject does not implement Clone #16311

metajack opened this issue Aug 6, 2014 · 2 comments

Comments

@metajack
Copy link
Contributor

metajack commented Aug 6, 2014

I ran into this today. Seems like maybe it should.

cc @aturon

@aturon
Copy link
Member

aturon commented Sep 23, 2014

All of the std::raw structs, which wrap raw pointers, are Copy since they contain only Copy data. So you should be able to copy the data just by referring to it.

Are you using TraitObject in a context that has an explicit Clone bound?

@steveklabnik
Copy link
Member

Changes like this would require an RFC today, but it's unclear that this is even needed with @aturon 's answer, so I'm giving this a close.

bors added a commit to rust-lang-ci/rust that referenced this issue Jan 15, 2024
internal: Remove `rustc_dependencies ` crate

The crate serves no purpose really
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

No branches or pull requests

3 participants