| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-09-16 | std::os: Use unicode for last_os_error() on Win32 | klutzy | -10/+9 | |
| FormatMessageA may return non-ascii message, which is encoded as system code page, not utf8. This may cause `assert!(is_utf8(v))` failure on some non-English machines. This patch replaces it with FormatMessageW, which returns utf-16 message. Fixes `make check-stage2-std` failure on my machine. :) | ||||
| 2013-09-15 | rm some uses of the `advance` iterator method | Daniel Micay | -2/+2 | |
| 2013-09-13 | std: Fix another windows problem with the unwrap_or_default rename | Erick Tryzelaar | -1/+1 | |
| 2013-09-13 | std: rename Option.chain to Option.and_then on windows | Erick Tryzelaar | -1/+1 | |
| 2013-09-12 | std: rename Option::unwrap_or_default() to unwrap_or() | Erick Tryzelaar | -1/+1 | |
| 2013-09-09 | rename `std::iterator` to `std::iter` | Daniel Micay | -1/+1 | |
| The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general. | ||||
| 2013-09-05 | Replace os::glob with extra::glob, which is written in rust, | Gareth Smith | -84/+0 | |
| fixing issue #6100. | ||||
| 2013-09-04 | libstd/os: set tmp dir to /data/tmp on Android | adridu59 | -1/+7 | |
| Android has no /tmp partition, return /data/tmp instead. Cf. #8511. | ||||
| 2013-08-30 | std: Add a file-renaming function to std::os | Tim Chevalier | -0/+12 | |
| 2013-08-28 | Fixed MemoryMap on Windows. | Vadim Chugunov | -25/+42 | |
| 2013-08-27 | librustc: Remove `&const` and `*const` from the language. | Patrick Walton | -1/+1 | |
| They are still present as part of the borrow check. | ||||
| 2013-08-26 | std: Add Win64 support | klutzy | -2/+36 | |
| Some extern blobs are duplicated without "stdcall" abi, since Win64 does not use any calling convention. (Giving any abi to them causes llvm producing wrong bytecode.) | ||||
| 2013-08-23 | auto merge of #8681 : mrordinaire/rust/remove-set_args, r=brson | bors | -25/+6 | |
| 2013-08-22 | Enabled unit tests in std and extra. | Vadim Chugunov | -2/+0 | |
| 2013-08-23 | removed os::set_args, closing #8325 | Do Nhat Minh | -25/+6 | |
| removed pub on real_args, changed test to use args | ||||
| 2013-08-19 | Add externfn macro and correctly label fixed_stack_segments | Niko Matsakis | -6/+92 | |
| 2013-08-18 | auto merge of #8551 : huonw/rust/speling, r=alexcrichton | bors | -1/+1 | |
| (This doesn't add/remove `u`s or change `ize` to `ise`, or anything like that.) | ||||
| 2013-08-16 | doc: convert remaining uses of core:: to std::. | Huon Wilson | -1/+1 | |
| 2013-08-15 | Add ToCStr method .with_c_str() | Kevin Ballard | -24/+24 | |
| .with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str(). | ||||
| 2013-08-10 | std: merge Iterator and IteratorUtil | Erick Tryzelaar | -1/+1 | |
| 2013-08-10 | Mass rename of .consume{,_iter}() to .move_iter() | Erick Tryzelaar | -1/+1 | |
| cc #7887 | ||||
| 2013-08-09 | auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=erickt | bors | -104/+114 | |
| This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null | ||||
| 2013-08-09 | Merge remote-tracking branch 'remotes/origin/master' into ↵ | Erick Tryzelaar | -2/+2 | |
| remove-str-trailing-nulls | ||||
| 2013-08-09 | Remove the C++ runtime. Sayonara | Brian Anderson | -24/+4 | |
| 2013-08-09 | std: more windows fixes to os.rs and run.rs | Erick Tryzelaar | -3/+5 | |
| 2013-08-09 | std: Fix perf of local allocations in newsched | Brian Anderson | -2/+2 | |
| Mostly optimizing TLS accesses to bring local heap allocation performance closer to that of oldsched. It's not completely at parity but removing the branches involved in supporting oldsched and optimizing pthread_get/setspecific to instead use our dedicated TCB slot will probably make up for it. | ||||
| 2013-08-08 | Merge remote-tracking branch 'remotes/origin/master' into ↵ | Erick Tryzelaar | -3/+1 | |
| remove-str-trailing-nulls | ||||
| 2013-08-08 | std: more fixes for os.rs for windows | Erick Tryzelaar | -2/+3 | |
| 2013-08-07 | std: import HANDLE for os::list_dir for windows | Erick Tryzelaar | -0/+1 | |
| 2013-08-07 | core: option.map_consume -> option.map_move | Erick Tryzelaar | -3/+1 | |
| 2013-08-06 | Merge remote-tracking branch 'remotes/origin/master' into ↵ | Erick Tryzelaar | -3/+3 | |
| remove-str-trailing-nulls | ||||
| 2013-08-05 | std: fix a typo where .to_c_str wasn't being called on android | Erick Tryzelaar | -1/+1 | |
| 2013-08-05 | Updated std::Option, std::Either and std::Result | Marvin Löbel | -3/+3 | |
| - Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead | ||||
| 2013-08-04 | Merge remote-tracking branch 'remotes/origin/master' into str-remove-null | Erick Tryzelaar | -8/+8 | |
| 2013-08-04 | std: remove use of cast module from os. | Erick Tryzelaar | -13/+6 | |
| 2013-08-04 | std: merge str::raw::from_buf and str::raw::from_c_str | Erick Tryzelaar | -1/+1 | |
| 2013-08-04 | std and rustc: explicitly pass c strings to c functions | Erick Tryzelaar | -42/+52 | |
| When strings lose their trailing null, this pattern will become dangerous: let foo = "bar"; let foo_ptr: *u8 = &foo[0]; Instead we should use c_strs to handle this correctly. | ||||
| 2013-08-04 | std: replace str::as_c_str with std::c_str | Erick Tryzelaar | -30/+33 | |
| 2013-08-04 | std: cleanup os and str tests | Erick Tryzelaar | -28/+28 | |
| 2013-08-04 | std: add str.to_c_str() | Erick Tryzelaar | -1/+1 | |
| 2013-08-03 | remove obsolete `foreach` keyword | Daniel Micay | -8/+8 | |
| this has been replaced by `for` | ||||
| 2013-08-02 | librustc: Disallow "unsafe" for external functions | Patrick Walton | -22/+28 | |
| 2013-08-02 | replace `range` with an external iterator | Daniel Micay | -4/+3 | |
| 2013-08-01 | std: Replace `for` with `do { .. }` expr where internal iterators are used | blake2-ppc | -1/+2 | |
| 2013-08-01 | migrate many `for` loops to `foreach` | Daniel Micay | -6/+6 | |
| 2013-08-01 | make `in` and `foreach` get treated as keywords | Daniel Micay | -17/+17 | |
| 2013-07-30 | implement pointer arithmetic with GEP | Daniel Micay | -3/+3 | |
| Closes #8118, #7136 ~~~rust extern mod extra; use std::vec; use std::ptr; fn bench_from_elem(b: &mut extra::test::BenchHarness) { do b.iter { let v: ~[u8] = vec::from_elem(1024, 0u8); } } fn bench_set_memory(b: &mut extra::test::BenchHarness) { do b.iter { let mut v: ~[u8] = vec::with_capacity(1024); unsafe { let vp = vec::raw::to_mut_ptr(v); ptr::set_memory(vp, 0, 1024); vec::raw::set_len(&mut v, 1024); } } } fn bench_vec_repeat(b: &mut extra::test::BenchHarness) { do b.iter { let v: ~[u8] = ~[0u8, ..1024]; } } ~~~ Before: test bench_from_elem ... bench: 415 ns/iter (+/- 17) test bench_set_memory ... bench: 85 ns/iter (+/- 4) test bench_vec_repeat ... bench: 83 ns/iter (+/- 3) After: test bench_from_elem ... bench: 84 ns/iter (+/- 2) test bench_set_memory ... bench: 84 ns/iter (+/- 5) test bench_vec_repeat ... bench: 84 ns/iter (+/- 3) | ||||
| 2013-07-23 | std: remove a malloc from os::fill_charp_buf | Erick Tryzelaar | -3/+2 | |
| 2013-07-23 | std: move StrUtil::as_c_str into StrSlice | Erick Tryzelaar | -12/+11 | |
| 2013-07-23 | std: remove os::as_c_charp | Erick Tryzelaar | -30/+26 | |
