You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't special-case zero-sized values in Vec.ptr(). Doing that prevents
the following from working:
// v is a Vec<T>
let newv = Vec::from_raw_parts(v.len(), v.cap(), v.mut_ptr());
mem::forget(v);
Instead, teach slice::Items/MutItems to handle zero-sized values better.
0 commit comments