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

Generalize Trace impls for unsized types #155

Merged
merged 3 commits into from
Dec 19, 2022

Conversation

andersk
Copy link
Collaborator

@andersk andersk commented Dec 19, 2022

  • impl<T: Trace> Trace for Box<[T]>
    impl<T: Trace> Trace for [T]
  • impl Trace for Box<str>
    impl Trace for str
  • impl<T> Trace for PhantomData<T>
    impl<T: ?Sized> Trace for PhantomData<T>

Along with the existing Trace for Box<T>, this implies Trace for
Box<[T]>.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Along with the existing Trace for Box<T>, this implies Trace for
Box<str>.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@Manishearth Manishearth merged commit 3a22816 into Manishearth:master Dec 19, 2022
@andersk andersk deleted the trace-unsized branch December 19, 2022 23:52
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 this pull request may close these issues.

None yet

2 participants