1. 07 7月, 2013 11 次提交
    • J
      De-share trait_ref · 97c5a44d
      James Miller 提交于
      Also, makes the pretty-printer use & instead of @ as much as possible,
      which will help with later changes, though in the interim has produced
      some... interesting constructs.
      97c5a44d
    • J
      De-manage Lifetime · 62c83bb1
      James Miller 提交于
      62c83bb1
    • J
      De-managed ast::Path · cd1b6c89
      James Miller 提交于
      cd1b6c89
    • J
      Stop allocating view_items with @ · a69eb952
      James Miller 提交于
      a69eb952
    • B
      auto merge of #7582 : mitsuhiko/rust/doc-fixes, r=huonw · 63f78576
      bors 提交于
      Drop is no longer a keyword, removed it from the intro docs.
      63f78576
    • B
      auto merge of #7557 : michaelwoerister/rust/enum_structs, r=pcwalton · 88487d82
      bors 提交于
      After getting an ICE trying to use the `Repr` enum from middle::trans::adt (see issue #7527), I tried to implement the missing case for struct-like enum variants in `middle::ty::enum_variants()`. It seems to work now (and passes make check) but there are still some uncertainties that bother me:
      + I'm not sure I did everything, right. Especially getting the variant constructor function from the variant node id is just copied from the tuple-variant case. Someone with more experience in the code base should be able to see rather quickly whether this OK so.
      + It is kind of strange that I could not reproduce the ICE with a smaller test case. The unimplemented code path never seems to be hit in most cases, even when using the exact same `Repr` enum, just with `ty::t` replaced by an opaque pointer. Also, within the `adt` module, `Repr` and matching on it is used multiple times, again without running into problems. Can anyone explain why this is the case? That would be much appreciated. 
      
      Apart from that, I hope this PR is useful.
      88487d82
    • B
      auto merge of #7581 : alexcrichton/rust/better-rusti, r=pcwalton · b1682521
      bors 提交于
      This is more future-proof
      b1682521
    • B
      auto merge of #7572 : Dretch/rust/missing-trait-message-followup, r=pcwalton · d243e004
      bors 提交于
      This a followup to #7510. @catamorphism requested a test - so I have created one, but in doing so I noticed some inconsistency in the error messages resulting from referencing nonexistent traits, so I changed the messages to be more consistent.
      d243e004
    • B
      auto merge of #7570 : kballard/rust/iterator-size-hint, r=thestinger · a9f178c1
      bors 提交于
      Change the signature of Iterator.size_hint() to always have a lower bound.
      
      Implement .size_hint() on all remaining iterators (if it differs from the default).
      a9f178c1
    • K
      Implement size_hint() on all remaining Iterators · e6f9b086
      Kevin Ballard 提交于
      Add size_hint() to the Iterators in libextra and the Iterator in
      libsyntax.
      
      Skip deque for the moment, as it's being worked on elsewhere.
      e6f9b086
    • B
      auto merge of #7562 : blake2-ppc/rust/deque, r=cmr · c1c7768b
      bors 提交于
      Fix an assertion in grow when using add_front.
      
      Speeds up grow (and the functions that use it) by a lot. We retain the vector instead of creating it anew for each grow. 
      
      The struct field hi is removed since it is redundant, and all iterators are updated to use a representation closer to the Deque itself, it should make it work even if deque sizes are not powers of two.
      
      Deque::with_capacity is also implemented, but .reserve() is not yet done.
      c1c7768b
  2. 06 7月, 2013 15 次提交
  3. 05 7月, 2013 14 次提交