1. 03 11月, 2014 3 次提交
    • A
      refactor libcollections as part of collection reform · 112c8a96
      Alexis Beingessner 提交于
      * Moves multi-collection files into their own directory, and splits them into seperate files
      * Changes exports so that each collection has its own module
      * Adds underscores to public modules and filenames to match standard naming conventions
      
      (that is, treemap::{TreeMap, TreeSet} => tree_map::TreeMap, tree_set::TreeSet)
      
      * Renames PriorityQueue to BinaryHeap
      * Renames SmallIntMap to VecMap
      * Miscellanious fallout fixes
      
      [breaking-change]
      112c8a96
    • B
      auto merge of #18406 : thestinger/rust/oom, r=cmr · a294b350
      bors 提交于
      This makes the low-level allocation API suitable for use cases where
      out-of-memory conditions need to be handled.
      
      Closes #18292
      
      [breaking-change]
      a294b350
    • B
      auto merge of #18481 : sfackler/rust/enum-namespace, r=pcwalton · 0c126845
      bors 提交于
      After a snapshot, everything can be switched over and the small bit of hackery in resolve dealing with `ENUM_STAGING_HACK` can be removed.
      
      cc #18478
      0c126845
  2. 02 11月, 2014 6 次提交
    • D
      bubble up out-of-memory errors from liballoc · fea985a0
      Daniel Micay 提交于
      This makes the low-level allocation API suitable for use cases where
      out-of-memory conditions need to be handled.
      
      Closes #18292
      
      [breaking-change]
      fea985a0
    • B
      auto merge of #17595 : danburkert/rust/tuple-index-deserialization, r=alexcrichton · 3327ecca
      bors 提交于
      Currently `Decoder` implementations are not provided the tuple arity as
      a parameter to `read_tuple`. This forces all encoder/decoder combos to
      serialize the arity along with the elements. Tuple-arity is always known
      statically at the decode site, because it is part of the type of the
      tuple, so it could instead be provided as an argument to `read_tuple`,
      as it is to `read_struct`.
      
      The upside to this is that serialized tuples could become smaller in
      encoder/decoder implementations which choose not to serialize type
      (arity) information. For example, @TyOverby's
      [binary-encode](https://github.com/TyOverby/binary-encode) format is
      currently forced to serialize the tuple-arity along with every tuple,
      despite the information being statically known at the decode site.
      
      A downside to this change is that the tuple-arity of serialized tuples
      can no longer be automatically checked during deserialization. However,
      for formats which do serialize the tuple-arity, either explicitly (rbml)
      or implicitly (json), this check can be added to the `read_tuple` method.
      
      The signature of `Deserialize::read_tuple` and
      `Deserialize::read_tuple_struct` are changed, and thus binary
      backwards-compatibility is broken. This change does *not* force
      serialization formats to change, and thus does not break decoding values
      serialized prior to this change.
      
      [breaking-change]
      3327ecca
    • B
      auto merge of #18474 : alexcrichton/rust/no-more-traits, r=aturon · 39f90aea
      bors 提交于
      As part of the collections reform RFC, this commit removes all collections
      traits in favor of inherent methods on collections themselves. All methods
      should continue to be available on all collections.
      
      This is a breaking change with all of the collections traits being removed and
      no longer being in the prelude. In order to update old code you should move the
      trait implementations to inherent implementations directly on the type itself.
      
      Note that some traits had default methods which will also need to be implemented
      to maintain backwards compatibility.
      
      [breaking-change]
      cc #18424
      39f90aea
    • A
      collections: Remove all collections traits · 21ac985a
      Alex Crichton 提交于
      As part of the collections reform RFC, this commit removes all collections
      traits in favor of inherent methods on collections themselves. All methods
      should continue to be available on all collections.
      
      This is a breaking change with all of the collections traits being removed and
      no longer being in the prelude. In order to update old code you should move the
      trait implementations to inherent implementations directly on the type itself.
      
      Note that some traits had default methods which will also need to be implemented
      to maintain backwards compatibility.
      
      [breaking-change]
      cc #18424
      21ac985a
    • D
      Tuple deserialization should not fail · 05f6bdae
      Dan Burkert 提交于
      05f6bdae
    • D
      libserialize: tuple-arity should be provided to `Decoder::read_tuple` · ca6b082c
      Dan Burkert 提交于
      Currently `Decoder` implementations are not provided the tuple arity as
      a parameter to `read_tuple`. This forces all encoder/decoder combos to
      serialize the arity along with the elements. Tuple-arity is always known
      statically at the decode site, because it is part of the type of the
      tuple, so it could instead be provided as an argument to `read_tuple`,
      as it is to `read_struct`.
      
      The upside to this is that serialized tuples could become smaller in
      encoder/decoder implementations which choose not to serialize type
      (arity) information. For example, @TyOverby's
      [binary-encode](https://github.com/TyOverby/binary-encode) format is
      currently forced to serialize the tuple-arity along with every tuple,
      despite the information being statically known at the decode site.
      
      A downside to this change is that the tuple-arity of serialized tuples
      can no longer be automatically checked during deserialization. However,
      for formats which do serialize the tuple-arity, either explicitly (rbml)
      or implicitly (json), this check can be added to the `read_tuple` method.
      
      The signature of `Deserialize::read_tuple` and
      `Deserialize::read_tuple_struct` are changed, and thus binary
      backwards-compatibility is broken. This change does *not* force
      serialization formats to change, and thus does not break decoding values
      serialized prior to this change.
      
      [breaking-change]
      ca6b082c
  3. 01 11月, 2014 15 次提交
  4. 31 10月, 2014 16 次提交