summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2013-06-24Improve the SHA-1 implementationPalmer Cox-237/+206
* Rename struct Sha1State to Sha1 * Remove all use of @ types * Use fixed length vectors * Move all of the inner functions from inside sha1() to top level, private functions * Sha1 instances are now created via Sha1::new() * Update all constant names to uppercase * Remove unecessary assert_eq!s * Remove check_vec_eq() helper function; use vec::eq() instead
2013-06-23Create a crypto submodule and move the SHA-1 implementation into it.Palmer Cox-1/+4
2013-06-23Support foreign 'static mut' variables as wellAlex Crichton-40/+129
2013-06-23Add 'static mut' items to the languageAlex Crichton-70/+230
2013-06-23auto merge of #7279 : hanny24/rust/master, r=msullivanbors-0/+17
This commit adds filtered method for Option type. It is not exactly necessary (chain method can be used instead), however I believe that this approach using extra filtered method is more convinient.
2013-06-24Changed Arena API to make it usable once more.Matthijs Hofstra-11/+11
2013-06-23auto merge of #7314 : bblum/rust/trait-bounds2, r=nikomatsakisbors-180/+583
Fixed a merge conflict, some tests, some bitrotting, etc., from #7248.
2013-06-23Fix pretty-printing builtin bounds on closures and traitsBen Blum-2/+6
2013-06-23Check existential type contents against destination trait bounds.Ben Blum-25/+31
2013-06-23Allow ~fn:Copy() to be copied.Ben Blum-7/+73
2013-06-23Updated shootout-fasta.rs copyright years, removed stuff that caused lint to ↵Matthijs Hofstra-18/+12
complain.
2013-06-23Fixed shootout-fasta.rs outputMatthijs Hofstra-10/+14
2013-06-23Added missing copyright notice to shootout-spectralnorm.Matthijs Hofstra-0/+10
2013-06-23Changed shootout-chameneos-redux output to conform to the 'official' output ↵Matthijs Hofstra-1/+1
format.
2013-06-23Updated copyright year on shootout-binarytrees.rsMatthijs Hofstra-21/+17
2013-06-23Fixed os:: and int:: not being in scope, changed io::println to printlnMatthijs Hofstra-4/+6
2013-06-23compiletest: Shorten test namesBrian Anderson-1/+9
2013-06-23Add basic test cases for closure bounds. (#3569)Ben Blum-1/+96
2013-06-23Check closure freevar kinds against destination environment bounds (#3569)Ben Blum-21/+56
2013-06-23Add tests for not-kind-checked trait bounds.Ben Blum-0/+109
2013-06-23Parse and typecheck (not kindcheck) bounds on trait paths.Ben Blum-121/+197
2013-06-24abi: remove dead codeRamkumar Ramachandra-8/+0
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-06-23auto merge of #7319 : thestinger/rust/hashmap-iterator, r=thestingerbors-29/+109
#7277
2013-06-23Fix error messages in test cases, since fns/traits now pretty-print with a ↵Ben Blum-8/+8
bounds list
2013-06-23Add rules for assert, fail, and deriving to vim syntax file. Also highlight ↵Ben Blum-6/+18
the mod path in "use module;" properly.
2013-06-23Fix reflect-visit-type for iterator changesPhilipp Brüschweiler-1/+1
2013-06-23auto merge of #7267 : luqmana/rust/issue-5792, r=cmrbors-9/+28
Fixes #5792
2013-06-23auto merge of #7258 : huonw/rust/7256, r=bstriebors-0/+3
2013-06-23Remove unused TyDesc parameter from the glue functionsPhilipp Brüschweiler-37/+66
To remove the environment pointer, support for function pointers without an environment argument is needed (i.e. a fixed version of #6661).
2013-06-23syntax: Remove unused tokensPhilipp Brüschweiler-105/+99
TyDesc, TyVisitor and intrinsic are not used anymore.
2013-06-23Remove rust_call_tydesc_gluePhilipp Brüschweiler-82/+17
Towards #4812. Also includes some minor cleanups.
2013-06-23Small cleanupsPhilipp Brüschweiler-8/+3
2013-06-23Remove unused shape fields from typedescsPhilipp Brüschweiler-27/+11
2013-06-23Fix and reenable the reflect-visit-type testPhilipp Brüschweiler-85/+96
2013-06-23Remove intrinsic modulePhilipp Brüschweiler-357/+298
To achieve this, the following changes were made: * Move TyDesc, TyVisitor and Opaque to std::unstable::intrinsics * Convert TyDesc, TyVisitor and Opaque to lang items instead of specially handling the intrinsics module * Removed TypeDesc, FreeGlue and get_type_desc() from sys Fixes #3475.
2013-06-23Fix get_tydesc() return typePhilipp Brüschweiler-15/+39
This fixes part of #3730, but not all. Also changes the TyDesc struct to be equivalent with the generated code, with the hope that the above issue may one day be closed for good, i.e. that the TyDesc type can completely be specified in the Rust sources and not be generated.
2013-06-23hashmap: add FIXME numberDaniel Micay-1/+1
2013-06-23std::to_str: Use .iter() for HashMap and HashSetblake2-ppc-2/+3
2013-06-23std::hashmap: Remove BaseIter impl for HashSetblake2-ppc-7/+6
Remove the BaseIter impl, while keeping the .each method until callers are converted.
2013-06-23std::hashmap: Use .iter() instead of .each and similarblake2-ppc-8/+7
2013-06-23std::hashmap: Add test_iterate for HashSetblake2-ppc-0/+14
2013-06-23std::hashmap: Implement external iterator for HashMap and HashSetblake2-ppc-12/+79
2013-06-22auto merge of #7274 : thestinger/rust/size_hint, r=huonwbors-884/+886
I ran into a weird lifetime bug blocking updating the `collect` method to use `FromIterator`, but everything here works fine.
2013-06-23vec: remove BaseIter implementationDaniel Micay-876/+796
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22Cleaned up middle a bit.Steven Stewart-Gallus-163/+128
The only really tricky change is that a long chain of ifs, and elses was turned into a single if, and a match in astencode.rs. Some methods can only be called in certain cases, and so have to come after the if.
2013-06-22auto merge of #7204 : alexcrichton/rust/deriving-to-string, r=pcwaltonbors-45/+102
Closes #7180 and #7179. Before, the `deriving(ToStr)` attribute was essentially `fmt!("%?")`. This changes it to recursively invoke `to_str()` on fields instead of relying on `fmt!`-style things. This seems more natural to me and what should actually be expected.
2013-06-22auto merge of #7214 : Blei/rust/fix-owned-traits, r=pcwaltonbors-10/+52
This finishes the incomplete conversion of unique traits as two-word allocations started in 211d038abc05c77785f72a31840016517cf218c2. Fixes #5882, #6717, #7153, #7208.
2013-06-22iterator: add a FromIterator traitDaniel Micay-2/+20
This is able to take advantage of the lower bound from the size hint.
2013-06-22iterator: add a size_hint default methodDaniel Micay-6/+70
also adds an implementation for the vector iterators
2013-06-22Merge pull request #7227 from alexcrichton/issue-7218Daniel Micay-0/+8
Fix compiling empty fmt! strings