- 23 8月, 2013 4 次提交
-
-
由 Brandon Sanderson 提交于
-
由 bors 提交于
-
由 Alex Crichton 提交于
-
由 bors 提交于
This commit removes the "super_*" functions from typeck::infer::combine, and adds them as default methods on the Combine trait instead, making it possible to remove a lot of boilerplate from the various impls of Combine. I've been wanting to do this for over a year. In fact, it was my original motivation for default methods! It might be possible to tighten things up even more, but this is the bulk of it.
-
- 22 8月, 2013 34 次提交
-
-
由 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.
-
由 bors 提交于
Change the type of crust fns like this one: extern fn foo() { ... } from `*u8` to `extern "C" fn()`. r? @pcwalton (or whomever)
-
由 bors 提交于
Fixes #8615.
-
由 bors 提交于
-
由 bors 提交于
Fixes issue #8612.
-
由 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.
-
由 bors 提交于
Nothing arguable here, as far as I can tell.
-
由 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
-
由 Tim Chevalier 提交于
-
由 Brian Anderson 提交于
-
由 Ben Blum 提交于
-
由 Tim Chevalier 提交于
-
由 bors 提交于
This resolves issue #8569
-
由 Tim Chevalier 提交于
-
由 Tim Chevalier 提交于
Closes #6702
-
由 Tim Chevalier 提交于
-
由 Tim Chevalier 提交于
Closes #4447
-
由 Tim Chevalier 提交于
-
由 Tim Chevalier 提交于
Closes #6132
-
由 Tim Chevalier 提交于
Closes #6702
-
由 Tim Chevalier 提交于
-
由 Tim Chevalier 提交于
-
由 Tim Chevalier 提交于
* Get rid of by-value-self workarounds; it works now * Remove type annotations, they're not needed anymore
-
由 Tim Chevalier 提交于
-
由 bors 提交于
Fixes #8588
-
由 blake2-ppc 提交于
-
由 Ben Blum 提交于
-
由 bors 提交于
Given that bootstrapping and running the testsuite works without exporting discriminant values as global constants, I conclude that they're unused and can be removed.
-
由 Vadim Chugunov 提交于
-
由 bors 提交于
This adds support for performing Unicode Normalization Forms D and KD on strings. To enable this the decomposition and canonical combining class properties are added to std::unicode. On my system this increases libstd's size by ~250KiB.
-
由 Lindsey Kuper 提交于
This commit removes the "super_*" functions from typeck::infer::combine, and adds them as default methods on the Combine trait instead, making it possible to remove a lot of boilerplate from the various impls of Combine. I've been wanting to do this for over a year. In fact, it was my original motivation for default methods! It might be possible to tighten things up even more, but this is the bulk of it.
-
由 Andreas Martens 提交于
-
由 bors 提交于
`mod_floor()` was incorrectly defined for uint types as `a / b` instead of `a % b`.
-
- 21 8月, 2013 2 次提交
-
-
由 Andreas Martens 提交于
-
由 bors 提交于
Implement `size_hint()` on the new std::vec Iterators. Add or update `size_hint()` on std::iterator Iterators where appropriate. r? @thestinger
-