1. 19 1月, 2016 5 次提交
  2. 18 1月, 2016 16 次提交
  3. 17 1月, 2016 19 次提交
    • K
      Move zst test from libcollections to src/test · 706e9f5e
      Keith Yeung 提交于
      706e9f5e
    • G
      Add E0507 error explanation · f15512e7
      Guillaume Gomez 提交于
      f15512e7
    • B
      Auto merge of #30975 - Manishearth:rollup, r=Manishearth · bff52927
      bors 提交于
      - Successful merges: #30938, #30940, #30943, #30949, #30952, #30957, #30959
      - Failed merges:
      bff52927
    • N
      add fixme number into code · fcb3d1e7
      Niko Matsakis 提交于
      fcb3d1e7
    • M
      Rollup merge of #30959 - bluss:bench-resolution, r=Gankro · 00a4eead
      Manish Goregaokar 提交于
      test: Increase resolution of MB/s stat for bench runs close to 1 second
      
      MB/s was based on the number of iterations performed in a second, when
      the iteration duration nears 1 second (1e9 ns), the resolution of the
      MB/s stat decreases.
      00a4eead
    • M
      Rollup merge of #30957 - GuillaumeGomez:patch-3, r=apasel422 · 3ba057b0
      Manish Goregaokar 提交于
      r? @Manishearth
      3ba057b0
    • M
      Rollup merge of #30952 - jonastepe:nomicon_vec_zst_code_fix, r=Gankro · dbca9897
      Manish Goregaokar 提交于
      * Moved semicolon to the right place in the `let` statement in the ZST section.
      * Fixed the missing ZST additions for `RawValIter<T>` from this section in the final code section.
      dbca9897
    • M
      Rollup merge of #30949 - MrMormon:patch-1, r=alexcrichton · a993669a
      Manish Goregaokar 提交于
      ‌ ‌▲
      ▲‌ ▲
      a993669a
    • M
      Rollup merge of #30943 - alexcrichton:stabilize-1.7, r=aturon · 80e21d19
      Manish Goregaokar 提交于
      This commit stabilizes and deprecates the FCP (final comment period) APIs for
      the upcoming 1.7 beta release. The specific APIs which changed were:
      
      Stabilized
      
      * `Path::strip_prefix` (renamed from `relative_from`)
      * `path::StripPrefixError` (new error type returned from `strip_prefix`)
      * `Ipv4Addr::is_loopback`
      * `Ipv4Addr::is_private`
      * `Ipv4Addr::is_link_local`
      * `Ipv4Addr::is_multicast`
      * `Ipv4Addr::is_broadcast`
      * `Ipv4Addr::is_documentation`
      * `Ipv6Addr::is_unspecified`
      * `Ipv6Addr::is_loopback`
      * `Ipv6Addr::is_unique_local`
      * `Ipv6Addr::is_multicast`
      * `Vec::as_slice`
      * `Vec::as_mut_slice`
      * `String::as_str`
      * `String::as_mut_str`
      * `<[T]>::clone_from_slice` - the `usize` return value is removed
      * `<[T]>::sort_by_key`
      * `i32::checked_rem` (and other signed types)
      * `i32::checked_neg` (and other signed types)
      * `i32::checked_shl` (and other signed types)
      * `i32::checked_shr` (and other signed types)
      * `i32::saturating_mul` (and other signed types)
      * `i32::overflowing_add` (and other signed types)
      * `i32::overflowing_sub` (and other signed types)
      * `i32::overflowing_mul` (and other signed types)
      * `i32::overflowing_div` (and other signed types)
      * `i32::overflowing_rem` (and other signed types)
      * `i32::overflowing_neg` (and other signed types)
      * `i32::overflowing_shl` (and other signed types)
      * `i32::overflowing_shr` (and other signed types)
      * `u32::checked_rem` (and other unsigned types)
      * `u32::checked_shl` (and other unsigned types)
      * `u32::saturating_mul` (and other unsigned types)
      * `u32::overflowing_add` (and other unsigned types)
      * `u32::overflowing_sub` (and other unsigned types)
      * `u32::overflowing_mul` (and other unsigned types)
      * `u32::overflowing_div` (and other unsigned types)
      * `u32::overflowing_rem` (and other unsigned types)
      * `u32::overflowing_neg` (and other unsigned types)
      * `u32::overflowing_shl` (and other unsigned types)
      * `u32::overflowing_shr` (and other unsigned types)
      * `ffi::IntoStringError`
      * `CString::into_string`
      * `CString::into_bytes`
      * `CString::into_bytes_with_nul`
      * `From<CString> for Vec<u8>`
      * `From<CString> for Vec<u8>`
      * `IntoStringError::into_cstring`
      * `IntoStringError::utf8_error`
      * `Error for IntoStringError`
      
      Deprecated
      
      * `Path::relative_from` - renamed to `strip_prefix`
      * `Path::prefix` - use `components().next()` instead
      * `os::unix::fs` constants - moved to the `libc` crate
      * `fmt::{radix, Radix, RadixFmt}` - not used enough to stabilize
      * `IntoCow` - conflicts with `Into` and may come back later
      * `i32::{BITS, BYTES}` (and other integers) - not pulling their weight
      * `DebugTuple::formatter` - will be removed
      * `sync::Semaphore` - not used enough and confused with system semaphores
      
      Closes #23284
      cc #27709 (still lots more methods though)
      Closes #27712
      Closes #27722
      Closes #27728
      Closes #27735
      Closes #27729
      Closes #27755
      Closes #27782
      Closes #27798
      80e21d19
    • M
    • M
      Rollup merge of #30938 - dotdash:zst_void, r=eddyb · 48a76510
      Manish Goregaokar 提交于
      The only way to get a value for a zero-sized type is `undef`, so
      there's really no point in actually having a return type other than
      void for such types. Also, while the comment in return_type_is_void
      mentioned something about aiding C ABI support, @EddyB correctly
      pointed out on IRC that there is no such thing as a zero-sized type in
      C. And even with clang, which allows empty structs, those get
      translated as void return types as well.
      
      Fixes #28766
      48a76510
    • B
      Auto merge of #30931 - oli-obk:trans_disr_newtype, r=arielb1 · 0b524edb
      bors 提交于
      This is groundwork for #30587 (typestrong constant integrals), but imo it's a change that in itself is good, too, since we don't just juggle `u64`s around anymore.
      
      `ty::Disr` will be changed to a `ConstInt` in #30587
      0b524edb
    • S
      Fix SocketAddrV6::flowinfo docs · f09bcc10
      Simon Sapin 提交于
      I don’t understand what the "flow information" of an IPv6 address is, but it looks separate from the scope ID. This was probably a copy/paste error.
      f09bcc10
    • B
      Auto merge of #30928 - sfackler:any-unsized, r=aturon · 87608746
      bors 提交于
      This is a bit weird since unsized types can't be used in trait objects,
      but Any is *also* used as pure marker trait since Reflect isn't stable.
      There are many cases (e.g. TypeMap) where all you need is a TypeId.
      
      r? @aturon
      87608746
    • B
      Auto merge of #30426 - gereeter:btree-rewrite, r=Gankro · 88463364
      bors 提交于
      Despite being over 700 lines shorter, this implementation should use less memory than the previous one and is faster on at least insertions and iteration, the latter improving approximately 5x.
      
      Technically a [breaking-change] due to removal of deprecated functions.
      
      cc @apasel422 @Gankro @goyox86
      
      Fixes #27865.
      
      <!-- Reviewable:start -->
      [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/30426)
      <!-- Reviewable:end -->
      88463364
    • J
      BTreeMap: Add a test for clone · be4128d1
      Jonathan S 提交于
      be4128d1
    • J
      Rewrite BTreeMap to use parent pointers. · cd639d89
      Jonathan S 提交于
      cd639d89
    • J
      Fix typo in std::fmt docs · 46c23e8f
      Jørn Lode 提交于
      46c23e8f
    • B
      Auto merge of #30567 - steffengy:master, r=alexcrichton · 077f4eeb
      bors 提交于
      Add support to use functions exported using vectorcall.
      This essentially only allows to pass a new LLVM calling convention
      from rust to LLVM.
      
      ```rust
      extern "vectorcall" fn abc(param: c_void);
      ```
      
      references
      ----
      http://llvm.org/docs/doxygen/html/CallingConv_8h_source.html
      https://msdn.microsoft.com/en-us/library/dn375768.aspx
      077f4eeb