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

Backport API stabilizations and an FFI fix #33883

Merged
merged 8 commits into from
May 26, 2016

Commits on May 26, 2016

  1. std: Stabilize APIs for the 1.10 release

    This commit applies the FCP decisions made by the libs team for the 1.10 cycle,
    including both new stabilizations and deprecations. Specifically, the list of
    APIs is:
    
    Stabilized:
    
    * `os::windows::fs::OpenOptionsExt::access_mode`
    * `os::windows::fs::OpenOptionsExt::share_mode`
    * `os::windows::fs::OpenOptionsExt::custom_flags`
    * `os::windows::fs::OpenOptionsExt::attributes`
    * `os::windows::fs::OpenOptionsExt::security_qos_flags`
    * `os::unix::fs::OpenOptionsExt::custom_flags`
    * `sync::Weak::new`
    * `Default for sync::Weak`
    * `panic::set_hook`
    * `panic::take_hook`
    * `panic::PanicInfo`
    * `panic::PanicInfo::payload`
    * `panic::PanicInfo::location`
    * `panic::Location`
    * `panic::Location::file`
    * `panic::Location::line`
    * `ffi::CStr::from_bytes_with_nul`
    * `ffi::CStr::from_bytes_with_nul_unchecked`
    * `ffi::FromBytesWithNulError`
    * `fs::Metadata::modified`
    * `fs::Metadata::accessed`
    * `fs::Metadata::created`
    * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
    * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
    * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
    * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
    * `SocketAddr::is_unnamed`
    * `SocketAddr::as_pathname`
    * `UnixStream::connect`
    * `UnixStream::pair`
    * `UnixStream::try_clone`
    * `UnixStream::local_addr`
    * `UnixStream::peer_addr`
    * `UnixStream::set_read_timeout`
    * `UnixStream::set_write_timeout`
    * `UnixStream::read_timeout`
    * `UnixStream::write_Timeout`
    * `UnixStream::set_nonblocking`
    * `UnixStream::take_error`
    * `UnixStream::shutdown`
    * Read/Write/RawFd impls for `UnixStream`
    * `UnixListener::bind`
    * `UnixListener::accept`
    * `UnixListener::try_clone`
    * `UnixListener::local_addr`
    * `UnixListener::set_nonblocking`
    * `UnixListener::take_error`
    * `UnixListener::incoming`
    * RawFd impls for `UnixListener`
    * `UnixDatagram::bind`
    * `UnixDatagram::unbound`
    * `UnixDatagram::pair`
    * `UnixDatagram::connect`
    * `UnixDatagram::try_clone`
    * `UnixDatagram::local_addr`
    * `UnixDatagram::peer_addr`
    * `UnixDatagram::recv_from`
    * `UnixDatagram::recv`
    * `UnixDatagram::send_to`
    * `UnixDatagram::send`
    * `UnixDatagram::set_read_timeout`
    * `UnixDatagram::set_write_timeout`
    * `UnixDatagram::read_timeout`
    * `UnixDatagram::write_timeout`
    * `UnixDatagram::set_nonblocking`
    * `UnixDatagram::take_error`
    * `UnixDatagram::shutdown`
    * RawFd impls for `UnixDatagram`
    * `{BTree,Hash}Map::values_mut`
    * `<[_]>::binary_search_by_key`
    
    Deprecated:
    
    * `StaticCondvar` - this, and all other static synchronization primitives
                        below, are usable today through the lazy-static crate on
                        stable Rust today. Additionally, we'd like the non-static
                        versions to be directly usable in a static context one day,
                        so they're unlikely to be the final forms of the APIs in any
                        case.
    * `CONDVAR_INIT`
    * `StaticMutex`
    * `MUTEX_INIT`
    * `StaticRwLock`
    * `RWLOCK_INIT`
    * `iter::Peekable::is_empty`
    
    Closes rust-lang#27717
    Closes rust-lang#27720
    cc rust-lang#27784 (but encode methods still exist)
    Closes rust-lang#30014
    Closes rust-lang#30425
    Closes rust-lang#30449
    Closes rust-lang#31190
    Closes rust-lang#31399
    Closes rust-lang#31767
    Closes rust-lang#32111
    Closes rust-lang#32281
    Closes rust-lang#32312
    Closes rust-lang#32551
    Closes rust-lang#33018
    alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    a2141e2 View commit details
    Browse the repository at this point in the history
  2. Fix handling of C arguments

    nagisa authored and alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    ee22947 View commit details
    Browse the repository at this point in the history
  3. Add a regression test

    nagisa authored and alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    c612b83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11c30fa View commit details
    Browse the repository at this point in the history
  5. Fix nit/Refine the datum construction

    nagisa authored and alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    219e69d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    edb1fb0 View commit details
    Browse the repository at this point in the history
  7. Fix stores codegen pass

    nagisa authored and alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    6adfc79 View commit details
    Browse the repository at this point in the history
  8. Bump beta version to .2

    alexcrichton committed May 26, 2016
    Configuration menu
    Copy the full SHA
    39b428b View commit details
    Browse the repository at this point in the history