next.js
ddd625d4 - chore: Use from_raw_parts for ResolvedVc::deref_vec and ResolvedVc::deref_slice (#92749)

Commit
10 days ago
chore: Use from_raw_parts for ResolvedVc::deref_vec and ResolvedVc::deref_slice (#92749) In reality, I expect this to compile to the same code, but using `from_raw_parts` is technically more correct here as there are no guarantees about the memory layout of `Vec<T>` or `[T]` for any two different values of `T`, even if both values of `T` have the same size and alignment.
Author
bgw bgw
Parents
Loading