We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
T: ?Sized
1 parent 19ac297 commit 6b6e41dCopy full SHA for 6b6e41d
src/projections/non_null.rs
@@ -7,7 +7,7 @@ impl<T: ?Sized> Projectable for NonNull<T> {
7
// Additional safety requirements for `project`:
8
// * The pointer pointed at by `this` must point to an allocated object at least as large as
9
// `size_of::<T>()`.
10
-impl<T, F> Project<F> for NonNull<T>
+impl<T: ?Sized, F> Project<F> for NonNull<T>
11
where
12
F: UnalignedField<Base = T>,
13
F::Type: Sized,
@@ -27,6 +27,6 @@ where
27
28
// Compat
29
30
-unsafe impl<T> compat::ProjectableExt for NonNull<T> {
+unsafe impl<T: ?Sized> compat::ProjectableExt for NonNull<T> {
31
type Safety = compat::Unsafe;
32
}
0 commit comments