Use a consistent name for the "owns T" marker

pull/363/head
Daniel Henry-Mantilla 3 years ago committed by GitHub
parent 7e595329c3
commit ff4bfe56f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -119,7 +119,7 @@ standard library uses an unstable and `unsafe` attribute to opt back into the ol
This section can be skipped if you are only writing your own library code; but if you are
curious about what the standard library does with the actual `Vec` definition, you'll notice
that it still needs to use a `_marker: PhantomData<T>` field for soundness.
that it still needs to use a `_owns_T: PhantomData<T>` field for soundness.
<details><summary>Click here to see why</summary>

Loading…
Cancel
Save