1. 23 8月, 2013 29 次提交
  2. 22 8月, 2013 11 次提交
    • B
      auto merge of #8642 : sanxiyn/rust/arm-test, r=catamorphism · 5003f607
      bors 提交于
      `stdtest` and `extratest` expects to be able to write to `tmp` directory under the current working directory, so the first commit creates `tmp` directory and changes the directory before running tests.
      
      The second commit adds `--bench` argument to test runs and copies metrics from the remote device.
      5003f607
    • B
      auto merge of #8666 : nikomatsakis/rust/issue-3678-extern-fn-types, r=pcwalton · 4e3dbf95
      bors 提交于
      Change the type of crust fns like this one:
      
          extern fn foo() { ... }
      
      from `*u8` to `extern "C" fn()`.
      
      r? @pcwalton (or whomever)
      4e3dbf95
    • B
      auto merge of #8627 : kballard/rust/fix-rusti, r=catamorphism · 3f6f79b7
      bors 提交于
      Commit 0932ab33 accidentally broke rusti by making it parse the binary
      name as the input, instead of parsing what the user typed.
      3f6f79b7
    • B
      auto merge of #8626 : kballard/rust/issue-8615, r=catamorphism · 7e50260f
      bors 提交于
      Fixes #8615.
      7e50260f
    • B
      auto merge of #8620 : brson/rust/issue-7563, r=alexcrichton · b95c1356
      bors 提交于
      b95c1356
    • B
      auto merge of #8616 : kballard/rust/url-parse-errors, r=catamorphism · f51d30d7
      bors 提交于
      Fixes issue #8612.
      f51d30d7
    • B
      auto merge of #8590 : blake2-ppc/rust/std-str, r=alexcrichton · f1132496
      bors 提交于
      Implement CharIterator as a separate struct, so that it can be .clone()'d. Fix `.char_range_at_reverse` so that it performs better, closer to the forwards version. This makes the reverse iterators and users like `.rfind()` perform better.
      
          Before
          test str::bench::char_iterator ... bench: 146 ns/iter (+/- 0)
          test str::bench::char_iterator_ascii ... bench: 397 ns/iter (+/- 49)
          test str::bench::char_iterator_rev ... bench: 576 ns/iter (+/- 8)
          test str::bench::char_offset_iterator ... bench: 128 ns/iter (+/- 2)
          test str::bench::char_offset_iterator_rev ... bench: 425 ns/iter (+/- 59)
          
          After
          test str::bench::char_iterator ... bench: 130 ns/iter (+/- 1)
          test str::bench::char_iterator_ascii ... bench: 307 ns/iter (+/- 5)
          test str::bench::char_iterator_rev ... bench: 185 ns/iter (+/- 8)
          test str::bench::char_offset_iterator ... bench: 131 ns/iter (+/- 13)
          test str::bench::char_offset_iterator_rev ... bench: 183 ns/iter (+/- 2)
      
      To be able to use a string slice to represent the CharIterator, a function `slice_unchecked` is added, that does the same as `slice_bytes` but without any boundary checks.
      
      It would be possible to implement CharIterator with pointer arithmetic to make it *much more efficient*, but since vec iterator is still improving, it's too early to attempt to re-implement it in other places. Hopefully CharIterator can be implemented on top of vec iterator without any unsafe code later.
      
      Additional changes fix the documentation about null termination.
      f1132496
    • B
      auto merge of #8570 : catamorphism/rust/2013-08-16-rollup, r=catamorphism · 8e776c75
      bors 提交于
      Nothing arguable here, as far as I can tell.
      8e776c75
    • B
      auto merge of #8562 : bblum/rust/superkinds, r=nikomatsakis · 3ddfb725
      bors 提交于
      For #7083.
      
      The metadata issue with the old version is now fixed. Ready for review.
      
      This is also not the full solution to #7083, because this is not supported yet:
      ```
      trait Foo : Send { }
      
      impl <T: Send> Foo for T { }
      
      fn foo<T: Foo>(val: T, chan: std::comm::Chan<T>) {
          chan.send(val);
      }
      ```
      
      cc @nikomatsakis
      3ddfb725
    • T
      rustpkg: Add test for #7348. Closes #7348 · a9aa4ad2
      Tim Chevalier 提交于
      a9aa4ad2
    • B
      test: Add test for #7563. Closes #7563 · a02a759f
      Brian Anderson 提交于
      a02a759f