summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-08-23rt: Memory regions are never synchronized nowBrian Anderson-5/+2
2013-08-23Document the task watching / exit code propagation implementation.Ben Blum-1/+85
2013-08-23fix performance regression from invalid IRDaniel Micay-1/+1
Monomorphize's normalization results in a 2% decrease in non-optimized code size for libstd, so there's a negligible cost to removing it. This also fixes several visit glue bugs because normalize wasn't considering the differences in visit glue between types. Closes #8720
2013-08-23Fix some vector function failure tests. Closes #8698Brian Anderson-8/+4
2013-08-23Fix two small warningsAndrew Dunham-1/+1
2013-08-23Rename {Reader,Writer}ByteConversions methodsSteven Fackler-123/+122
The method names in std::rt::io::extensions::WriterByteConversions are the same as those in std::io::WriterUtils and a resolve error causes rustc to fail after trying to find an impl of io::Writer instead of trying to look for rt::io::Writer as well. Same goes for ReaderByteConversions.
2013-08-23auto merge of #8691 : anasazi/rust/fix-timer-interface, r=brsonbors-7/+2
Resolves #8687.
2013-08-23auto merge of #8686 : kmcallister/rust/doc, r=catamorphismbors-1/+4
2013-08-23auto merge of #8681 : mrordinaire/rust/remove-set_args, r=brsonbors-25/+6
2013-08-23auto merge of #8677 : bblum/rust/scratch, r=alexcrichtonbors-51/+82
r anybody; there isn't anything complicated here
2013-08-22auto merge of #8671 : kballard/rust/range_inclusive-size-hint, r=thestingerbors-0/+15
r? @thestinger
2013-08-22auto merge of #8596 : vadimcn/rust/master, r=alexcrichtonbors-78/+29
This resolves issue #908. Notable changes: - On Windows, LLVM integrated assembler emits bad stack unwind tables when segmented stacks are enabled. However, unwind info directives in the assembly output are correct, so we generate assembly first and then run it through an external assembler, just like it is already done for Android builds. - Linker is invoked via "g++" command instead of "gcc": g++ passes the appropriate magic parameters to the linker, which ensure correct registration of stack unwind tables in dynamic libraries.
2013-08-22Disabled broken tests in std::vec.Vadim Chugunov-0/+4
2013-08-22Enabled unit tests in std and extra.Vadim Chugunov-78/+25
2013-08-23removed os::set_args, closing #8325Do Nhat Minh-25/+6
removed pub on real_args, changed test to use args
2013-08-22fix 32bit mac build errorJeff Olson-2/+2
2013-08-22make check appeasementJeff Olson-1/+2
2013-08-22std: put FileMode/Access->whence-mask in uvio, open/unlink as fns in file::Jeff Olson-100/+109
2013-08-22std: slight refactor on UvFilestream seek behavior, pre-seek-refactorJeff Olson-38/+34
2013-08-22std: all of the calls in rt::uv::file take a &LoopJeff Olson-44/+43
2013-08-22std: moved static file actions (open,unlink) to FsRequestJeff Olson-63/+63
2013-08-22std: reform fn sigs of FileDescriptor methods (better result signalling)Jeff Olson-42/+46
2013-08-22std: rename tmp file paths to go into ./tmp folder in builddirJeff Olson-10/+10
2013-08-22change FileDescriptor instance methods to use &mut selfJeff Olson-11/+11
2013-08-22std: more seek testsJeff Olson-1/+71
2013-08-22std: naive stdio print test in uvioJeff Olson-0/+20
2013-08-22std: UvFileStream implements HomingIO + .home_for_io() wrapper usageJeff Olson-39/+60
2013-08-22std: writing to stdout only works when using -1 offset..Jeff Olson-1/+1
2013-08-22std: lint appeasement for unused param in condition handlerJeff Olson-1/+1
2013-08-22std: rework file io.. support [p]read,[p]write, impl seek/tell + more testsJeff Olson-53/+214
2013-08-22std: adding #[fixed_stack_segment] as needed in new uvll callsJeff Olson-0/+16
2013-08-22std: add FileStream::unlink + more testsJeff Olson-2/+52
2013-08-22std: rt::io::file::FileStream fleshed out.. needs more work.. see extendedJeff Olson-40/+127
- change all uses of Path in fn args to &P - FileStream.read assumptions were wrong (libuv file io is non-positional) - the above will mean that we "own" Seek impl info .. should probably push it in UvFileDescriptor.. - needs more tests
2013-08-22std: CRUD file io bindings in uvio, fs_open()/unlink() in IoFactory + testJeff Olson-0/+190
2013-08-22std: remove fcntl const bindings + making valgrind clean w/ no owned vecsJeff Olson-142/+68
2013-08-22std: support async/threadpool & sync paths in uv_fs_* calls + add sync testJeff Olson-35/+169
2013-08-22std: add read and unlink to low-level FileDescriptor + end-to-end CRUD testJeff Olson-53/+119
2013-08-22std: working tests for low-level libuv open, write and close operationsJeff Olson-27/+126
2013-08-22std: bootstrapping libuv-based fileio in newrt... open & closeJeff Olson-14/+222
the test "touch"es a new file
2013-08-22Implement size_hint() on RangeInclusiveKevin Ballard-0/+15
2013-08-22doc: Fix transmute exampleKeegan McAllister-1/+4
2013-08-22auto merge of #8666 : nikomatsakis/rust/issue-3678-extern-fn-types, r=pcwaltonbors-22/+153
Change the type of crust fns like this one: extern fn foo() { ... } from `*u8` to `extern "C" fn()`. r? @pcwalton (or whomever)
2013-08-21auto merge of #8590 : blake2-ppc/rust/std-str, r=alexcrichtonbors-131/+254
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.
2013-08-21std/extra: changing XXX to FIXME; cleanupTim Chevalier-42/+40
* Get rid of by-value-self workarounds; it works now * Remove type annotations, they're not needed anymore
2013-08-21Don't fail in port.try_recv() the second time. Close #7800.Ben Blum-6/+13
2013-08-22std::str: Add test for CharIterator .clone()blake2-ppc-0/+8
2013-08-21auto merge of #8445 : Florob/rust/unicode, r=graydonbors-1/+2406
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.
2013-08-21auto merge of #8610 : kballard/rust/mod_floor, r=alexcrichtonbors-2/+15
`mod_floor()` was incorrectly defined for uint types as `a / b` instead of `a % b`.
2013-08-21auto merge of #8604 : kballard/rust/iter-size-hint, r=graydonbors-11/+100
Implement `size_hint()` on the new std::vec Iterators. Add or update `size_hint()` on std::iterator Iterators where appropriate. r? @thestinger
2013-08-21Adjust callbacks in the libraries for the new type of extern fnsNiko Matsakis-22/+153
cc #3678