about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-06-13Remove unused importsSteven Stewart-Gallus-4/+2
I was able to remove unused imports, and fix the following warnings src/libstd/hashmap.rs:23:15: 23:23 warning: unused import [-W unused-imports (default)] src/libstd/task/spawn.rs:95:15: 95:23 warning: unused import [-W unused-imports (default)] src/libstd/rt/uv/mod.rs:42:0: 42:9 warning: unused import [-W unused-imports (default)] src/libstd/rt/uv/mod.rs:45:0: 45:9 warning: unused import [-W unused-imports (default)] src/librustc/middle/trans/meth.rs:26:0: 26:26 warning: unused import [-W unused-imports (default)] src/librustc/back/link.rs:210:20: 210:25 warning: unused import [-W unused-imports (default)] I was unable to fix the following unused import warnings. The code here was weird. src/libextra/std.rc:40:11: 40:14 warning: unused import [-W unused-imports (default)] src/libextra/std.rc:40:16: 40:24 warning: unused import [-W unused-imports (default)]
2013-06-13auto merge of #7100 : thestinger/rust/hashmap, r=pnkfelixbors-7/+1
Not much point in leaving these around. They just get in the way when you actually want to log something else.
2013-06-13hashmap: remove leftover debug!() loggingDaniel Micay-7/+1
2013-06-12auto merge of #7096 : huonw/rust/invalid-null-str, r=thestingerbors-16/+0
A slice of a 'static str is still 'static, but doesn't necessarily have the null terminator.
2013-06-13std: remove the invalid NullTerminatedStr instance for &'static str.Huon Wilson-16/+0
A slice of a 'static str is still 'static, but doesn't necessarily have the null terminator.
2013-06-12auto merge of #7027 : sstewartgallus/rust/dynamic_lib, r=graydonbors-0/+207
I would appreciate if someone could help out with the Windows code on this pull request. I tried to test it using WINE but I couldn't figure out a way to set that up.
2013-06-12Document unstable::atomics fetch_* return valuesBen Blum-0/+6
2013-06-12make util::NonCopyable a unit struct instead of a struct with a unitBen Blum-4/+2
2013-06-12Prototyped a dynamic library facility interfaceSteven Stewart-Gallus-0/+207
2013-06-13std: make all strings Equiv-alent to each other, generalise Path.push_many ↵Huon Wilson-9/+21
to take any type of string.
2013-06-12Added libuv UDP function bindings.Eric Reed-0/+47
2013-06-12added functionality to tell schedulers to refuse to run tasks that are not ↵toddaaro-18/+60
pinned to them
2013-06-12Removing redundant libuv bindingsEric Reed-902/+0
2013-06-12auto merge of #7073 : influenza/rust/iterator-doc-fixes, r=catamorphismbors-3/+3
This commit fixes two typos and an incorrect description.
2013-06-12std::rt: Remove old filesBrian Anderson-902/+0
2013-06-12A basic implementation of pinning tasks to schedulers. No IO interactions ↵toddaaro-42/+496
have been planned for, and no forwarding of tasks off special schedulers is supported.
2013-06-11auto merge of #7072 : thestinger/rust/ptr, r=catamorphismbors-13/+29
I don't think this will even show up in the documentation right now.... but it should still be correct :).
2013-06-12std: fix windowsHuon Wilson-1/+1
2013-06-12std: fix method renaming.Huon Wilson-1/+1
2013-06-12std: generalise .trim_chars to use CharEq.Huon Wilson-42/+74
2013-06-12std: create Str trait for DRY. Use it on StrVector.Huon Wilson-85/+32
The Str trait collects the various strings types and provides a method for coercing to a slice, so that functions and impls can be written for generic types containing strings (e.g. &[~str], &[&str], ...) without having to write one for each string type (assuming that the impl only needs a slice).
2013-06-12std: convert str::escape_* to methods.Huon Wilson-44/+34
2013-06-12std: convert str::replace to a method.Huon Wilson-33/+33
2013-06-12std: methodise str::capacityHuon Wilson-12/+12
2013-06-12std: remove substr & str::count_*, methodise char_len, implement slice_chars.Huon Wilson-77/+48
The confusing mixture of byte index and character count meant that every use of .substr was incorrect; replaced by slice_chars which only uses character indices. The old behaviour of `.substr(start, n)` can be emulated via `.slice_from(start).slice_chars(0, n)`.
2013-06-12std: add a test for HashMap::find_equiv.Huon Wilson-0/+17
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-137/+188
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-12std: convert str::{*shift,pop}* to methods.Huon Wilson-61/+87
2013-06-12std: convert str::repeat to a method.Huon Wilson-28/+30
2013-06-12std: replace str::append with a methodHuon Wilson-10/+30
2013-06-12std: convert {vec,str}::to_owned to methods.Huon Wilson-34/+32
2013-06-11auto merge of #7056 : alexcrichton/rust/issue-4727, r=catamorphismbors-22/+16
Closes #4727
2013-06-11Iterator documentation fixesRon Dahlgren-3/+3
Fixes two typos and one incorrect description.
2013-06-11fix the docstring for copy_nonoverlapping_memoryDaniel Micay-9/+25
2013-06-11fix the ptr::set_memory docstringDaniel Micay-4/+4
2013-06-11Add a finally impl for `extern "Rust" fn()`Alex Crichton-22/+16
2013-06-11fix windows buildDaniel Micay-2/+2
2013-06-11option: remove redundant old_iter implsDaniel Micay-83/+45
2013-06-11add Iterator implementations for OptionDaniel Micay-0/+38
2013-06-11auto merge of #7047 : bblum/rust/bug_triage, r=graydonbors-22/+18
r? anybody
2013-06-11std: convert pow, hypot, atan2, log to take arguments by reference.Huon Wilson-20/+20
2013-06-10std::rt: Work around a dynamic borrowck bugBrian Anderson-3/+2
2013-06-10debugged a compiler ICE when merging local::borrow changes into the main io ↵toddaaro-22/+60
branch and modified the incoming new file lang.rs to be api-compatible
2013-06-10Tag a bunch of destructors that need mutable self with FIXME for #4330. ↵Ben Blum-2/+5
Close #4943.
2013-06-10Replace str::raw::buf_as_slice with c_str_to_static_slice. Close #3843.Ben Blum-20/+13
2013-06-11fix tests, remove some warningsHuon Wilson-12/+1
2013-06-11std: replace str::is_{alphanumeric,whitespace} with the methods.Huon Wilson-25/+7
2013-06-11std: replace str::{starts,ends}_with with the method.Huon Wilson-52/+26
2013-06-11std: replace str::substr with the method.Huon Wilson-13/+3
2013-06-11std: remove str::to_charsHuon Wilson-5/+0