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

Added From<Vec<NonZeroU8>> for CString #64069

Commits on Feb 4, 2020

  1. Added From<Vec<NonZeroU8>> for CString

    Updated tracking issue number
    
    Added safeguards for transmute_vec potentially being factored out elsewhere
    
    Clarified comment about avoiding mem::forget
    
    Removed unneeded unstable guard
    
    Added back a stability annotation for CI
    
    Minor documentation improvements
    
    Thanks to @Centril's code review
    
    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    
    Improved layout checks, type annotations and removed unaccurate comment
    
    Removed unnecessary check on array layout
    
    Adapt the stability annotation to the new 1.41 milestone
    
    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    
    Simplify the implementation.
    
    Use `Vec::into_raw_parts` instead of a manual implementation of
    `Vec::transmute`.
    
    If `Vec::into_raw_parts` uses `NonNull` instead, then the code here
    will need to be adjusted to take it into account (issue rust-lang#65816)
    
    Reduce the whitespace of safety comments
    danielhenrymantilla committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    60274a9 View commit details
    Browse the repository at this point in the history