1. 11 4月, 2016 7 次提交
  2. 09 4月, 2016 9 次提交
  3. 08 4月, 2016 16 次提交
  4. 07 4月, 2016 8 次提交
    • B
      Auto merge of #32794 - Manishearth:rollup, r=Manishearth · 470ca1c3
      bors 提交于
      Rollup of 7 pull requests
      
      - Successful merges: #32674, #32699, #32711, #32745, #32748, #32757, #32789
      - Failed merges:
      470ca1c3
    • M
      Rollup merge of #32789 - jseyfried:fix_duplicate_resolve_errors, r=eddyb · b0f81a35
      Manish Goregaokar 提交于
      resolve: Avoid emitting redundant path resolution errors
      
      This PR avoids emitting redundant path resolution errors in `resolve` (fixes #32760).
      
      r? @EddyB
      b0f81a35
    • M
      Rollup merge of #32757 - taralx:patch-1, r=brson · 2a88ca44
      Manish Goregaokar 提交于
      Fix typos in atomic compare_exchange.
      
      Failure ordering can't be Release, not (not) Acquire. Seems like a typo copy-pasted all over.
      2a88ca44
    • M
      Rollup merge of #32748 - aturon:simplified-spec, r=nikomatsakis · c0ea2adb
      Manish Goregaokar 提交于
      Reinstate fast_reject for overlap checking
      
      The initial implementation of specialization did not use the
      `fast_reject` mechanism when checking for overlap, which caused a
      serious performance regression in some cases.
      
      This commit modifies the specialization graph to use simplified types
      for fast rejection when possible, and along the way refactors the logic
      for building the specialization graph.
      
      Closes #32499
      
      r? @nikomatsakis
      c0ea2adb
    • M
      Rollup merge of #32745 - Amanieu:arc_fix, r=alexcrichton · ffd1450c
      Manish Goregaokar 提交于
      Fix infinite loop in Arc::downgrade
      ffd1450c
    • M
      Rollup merge of #32699 - bluss:slice-memcmp, r=alexcrichton · 684e2aac
      Manish Goregaokar 提交于
      Specialize equality for [T] and comparison for [u8] to use memcmp when possible
      
      Specialize equality for [T] and comparison for [u8] to use memcmp when possible
      
      Where T is a type that can be compared for equality bytewise, we can use
      memcmp. We can also use memcmp for PartialOrd, Ord for [u8].
      
      Use specialization to call memcmp in PartialEq for slices for certain element types. This PR does not change the user visible API since the implementation uses an intermediate trait. See commit messages for more information.
      
      The memcmp signature was changed from `*const i8` to `*const u8` which is in line with how the memcmp function is defined in C (taking const void * arguments, interpreting the values as unsigned bytes for purposes of the comparison).
      684e2aac
    • M
      Rollup merge of #32674 - jseyfried:1422_groundwork, r=nikomatsakis · 76e2349c
      Manish Goregaokar 提交于
      Lay groundwork for RFC 1422  and improve `PrivateItemsInPublicInterfacesVisitor`
      
      This PR lays groundwork for RFC 1422 (cc #32409) and improves `PrivateItemsInPublicInterfacesVisitor`. More specifically, it
       - Refactors away `hir::Visibility::inherit_from`, the semantics of which are obsolete.
       - Makes `hir::Visibility` non-`Copy` so that we will be able to add new variants to represent `pub(restricted)` (for example, `Visibility::Restricted(Path)`).
       - Adds a new `Copy` type `ty::Visibility` that represents a visibility value, i.e. a characterization of where an item is accessible. This is able to represent `pub(restricted)` visibilities.
       - Improves `PrivateItemsInPublicInterfacesVisitor` so that it checks for items in an interface that are less visible than the interface. This fixes #30079 but doesn't change any other behavior.
      
      r? @nikomatsakis
      76e2349c
    • B
      Auto merge of #32583 - arielb1:need-a-bound, r=nikomatsakis · 444a118a
      bors 提交于
      Suggest adding a where-clause when that can help
      
      Suggest adding a where-clause when there is an unmet trait-bound that can be satisfied if some type can implement it.
      
      r? @nikomatsakis
      444a118a