1. 09 5月, 2013 35 次提交
  2. 08 5月, 2013 5 次提交
    • B
      auto merge of #6323 : brson/rust/nullary, r=thestinger · b21f37c8
      bors 提交于
      There's no need to delegate to C to call the Rust main function.
      b21f37c8
    • B
      auto merge of #6267 : huonw/rust/syntax-deriving-generaliseder, r=nikomatsakis · 8f94ac61
      bors 提交于
      This "finishes" the generic deriving code (which I started in #5640), in the sense it supports everything that I can think of being useful. (Including lifetimes and type parameters on methods and traits, arguments and return values of (almost) any type, static methods.)
      
      It closes #6149, but met with #6257, so the following doesn't work:
      ```rust
      #[deriving(TotalEq)]
      struct Foo<'self>(&'self int);
      ```
      (It only fails for `TotalOrd`, `TotalEq` and `Clone`, since they are the only ones that call a method directly on sub-elements of the type, which means that the auto-deref interferes with the pointer.)
      
      It also makes `Rand` (chooses a random variant, fills the fields with random values, including recursively for recursive types) and `ToStr` (`x.to_str()` is the same as `fmt!("%?", x)`) derivable, as well as converting IterBytes to the generic code (which made the code 2.5x shorter, more robust and added support for tuple structs).
      
      ({En,De}codable are trickier, so I'll convert them over later.)
      8f94ac61
    • H
      testsuite: xfail tests for windows · 08c80544
      Huon Wilson 提交于
      08c80544
    • B
      auto merge of #6321 : ILyoan/rust/test4350, r=z0w0 · 37becd88
      bors 提交于
      37becd88
    • B
      auto merge of #6317 : brson/rust/durable, r=z0w0 · b6f92956
      bors 提交于
      #6312
      b6f92956