1. 26 5月, 2016 4 次提交
    • B
      Auto merge of #33699 - alexcrichton:stabilize-1.10, r=aturon · d5759a34
      bors 提交于
      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 #27717
      Closes #27720
      Closes #30014
      Closes #30425
      Closes #30449
      Closes #31190
      Closes #31399
      Closes #31767
      Closes #32111
      Closes #32281
      Closes #32312
      Closes #32551
      Closes #33018
      d5759a34
    • B
      Auto merge of #33732 - nikomatsakis:incr-comp-empty-cgu, r=mw · 267cde25
      bors 提交于
      always make at least one codegen-unit
      
      this allows us to remove the dummy `foo` fn
      
      r? @michaelwoerister
      267cde25
    • B
      Auto merge of #33667 - pnkfelix:fixes-to-mir-dataflow, r=arielb1 · 34fd6866
      bors 提交于
      Fixes to mir dataflow
      
      Fixes to mir dataflow
      
      This collects a bunch of changes to `rustc_borrowck::borrowck::dataflow` (which others have pointed out should probably migrate to some crate that isn't tied to the borrow-checker -- but I have not attempted that here, especially since there are competing approaches to dataflow that we should also evaluate).
      
      These changes:
       1. Provide a family of related analyses: MovingOutStatements (which is what the old AST-based dataflo computed), as well as MaybeInitialized, MaybeUninitalized, and DefinitelyInitialized.
         * (The last two are actually inverses of each other; we should pick one and drop the other.)
       2. Fix bugs in the pre-existing analysis implementation, which was untested and thus some obvious bugs went unnoticed, which brings us to the third point:
       3. Add a unit test infrastructure for the MIR dataflow analysis.
         * The tests work by adding a new intrinsic that is able to query the analysis state for a particular expression (technically, a particular L-value).
         * See the examples in compile-fail/mir-dataflow/inits-1.rs and compile-fail/mir-dataflow/uninits-1.rs
         * These tests are only checking the results for MaybeInitialized, MaybeUninitalized, and DefinitelyInitialized; I am not sure if it will be feasible to generalize this testing strategy to the MovingOutStatements dataflow operator.
      34fd6866
    • B
      Auto merge of #33713 - LeoTestard:macro-rules-invalid-lhs, r=pnkfelix · da66f2fd
      bors 提交于
      Make sure that macros that didn't pass LHS checking are not expanded.
      
      This avoid duplicate errors for things like invalid fragment specifiers, or
      parsing errors for ambiguous macros.
      da66f2fd
  2. 25 5月, 2016 24 次提交
  3. 24 5月, 2016 12 次提交