about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-06-25xfail test hitting a codegen bug (issue #7385)Daniel Micay-1/+2
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-210/+95
2013-06-25container: remove internal iterators from MapDaniel Micay-137/+104
the maps are being migrated to external iterators
2013-06-25remove the redundant `each` method from OptVecDaniel Micay-26/+19
2013-06-25auto merge of #7371 : alexcrichton/rust/trying, r=cmrbors-2/+42
This is an attempt at a smaller request than #7113, it's just the first two commits
2013-06-25Add the `warnings` lint attributeAlex Crichton-2/+42
2013-06-25Rename all files with the 'rc' extensionAlex Crichton-0/+0
2013-06-25auto merge of #7317 : Aatch/rust/no-drop-flag, r=thestingerbors-19/+112
This adds a `#[no_drop_flag]` attribute. This attribute tells the compiler to omit the drop flag from the struct, if it has a destructor. When the destructor is run, instead of setting the drop flag, it instead zeroes-out the struct. This means the destructor can run multiple times and therefore it is up to the developer to use it safely. The primary usage case for this is smart-pointer types like `Rc<T>` as the extra flag caused the struct to be 1 word larger because of alignment. This closes #7271 and #7138
2013-06-25auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmrbors-654/+565
This sets the `get_tydesc()` return type correctly and removes the intrinsic module. See #3730, #3475. Update: this now also removes the unused shape fields in tydescs.
2013-06-25auto merge of #7291 : alexcrichton/rust/static-mut, r=huonwbors-109/+358
This adds both `static mut` items and `static mut` foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional. I'm more than willing to write more tests, so suggestions are welcome! Closes #553
2013-06-24auto merge of #7370 : Aatch/rust/snapshot, r=huonwbors-68/+13
I also cleaned up the warnings.
2013-06-25Add missing import to testsJames Miller-1/+1
2013-06-25Warning policeJames Miller-10/+4
2013-06-25Remove stage0 cfgsJames Miller-57/+0
2013-06-25Update snapshots fileJames Miller-0/+8
2013-06-25Zero the struct in the take glue, not the drop glueJames Miller-6/+17
2013-06-25Set #[no_drop_flag] on Rc<T> and AtomicOption. Add TestJames Miller-9/+39
2013-06-25Add support for #[no_drop_flag] attributeJames Miller-11/+63
2013-06-24libc: (u)int => c_(u)int for constsFedor Indutny-750/+785
2013-06-24Fix test failure on windowsPhilipp Brueschweiler-3/+1
This patch ensures that the multiple extern definitions of `free` in the run-pass tests have the same declaration, working around #7352.
2013-06-24libc: add POSIX-compatible sysconf constsFedor Indutny-0/+254
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-24libc: support functions from sys/mman.hFedor Indutny-2/+269
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-24Fix 'static mut' testsAlex Crichton-2/+2
2013-06-24auto merge of #7193 : Thiez/rust/fixbench, r=cmrbors-56/+62
This PR fixes a few problems with the benchmark, mentioned in #2913. Since I do not have a 4GB RAM machine (I run rust on a puny 2GB RAM VM) I can't test binarytrees with N=20. If it works we can close #2913. Fixes: 1) binarytrees prints "long lived trees of depth" instead of "long lived tree of depth" Fixes: 2) chameneosredux -- the whitespace printed by show_number should be the same as printed by show_color Already fixed: 3) spectralnorm prints an extra Fixes: 4) threadring prints an extra Fixes: 5) fasta -- strangely, output stops half-way through line 169 -- with another 8166 lines still to do. Could not test: 6) the latest binarytrees fails with input N=20 on a 4GB machine. r?
2013-06-24auto merge of #7334 : thestinger/rust/old_iter, r=Aatchbors-799/+257
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-24work around ICE from default methodDaniel Micay-2/+2
issue #7341
2013-06-24xfail-pretty on un-xfailed testDaniel Micay-0/+1
2013-06-24iterator: implement `collect` with FromIteratorDaniel Micay-5/+16
This makes it take advantage of the size hint for pre-allocation.
2013-06-24implement Clone for slicesDaniel Micay-0/+12
2013-06-24deal with windowsDaniel Micay-1/+5
2013-06-24xfail tests again for now (issues #7336, #7340)Daniel Micay-0/+7
2013-06-24Fix/annotate a variety of xfailsCorey Richardson-246/+98
2013-06-24remove old_iterDaniel Micay-549/+120
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-24Implement the fixed output size versions of the SHA-2 digest functions.Palmer Cox-0/+1127
2013-06-24Create a Digest trait for common methods on digests and convert the SHA-1 ↵Palmer Cox-37/+119
implementation to use it. The DigestUtil trait was created for helper methods since default methods still have issues.
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