Jordi Boggiano
3db9dc1dfd
Document rand module with more emphasis on cryptographic security
2013-08-07 22:41:13 -04:00
Sangeun Kim
a9b7bec2e7
Change const to static
2013-08-07 22:41:13 -04:00
Sangeun Kim
19d0eb9060
Change Freeze to Static
2013-08-07 22:41:13 -04:00
Alex Crichton
ffd80aa276
Fix unit structs in cross-crate situtations
2013-08-07 22:41:13 -04:00
darkf
cc160a0028
extra: add internal
to {de,in}flate_bytes_ naming to address nit
2013-08-07 22:41:13 -04:00
darkf
dd5e8b218f
add extra::flate::deflate_bytes_zlib and a test
2013-08-07 22:41:13 -04:00
darkf
9b221f56f1
add inflate_bytes_zlib to exra::flate
2013-08-07 22:41:13 -04:00
Jordi Boggiano
a8f3f038c0
Turn OptGroups into a main opt and a main and an aliased opts
...
This way opt_present("apple") will match no matter if the user passed -a or --apple
2013-08-07 22:41:13 -04:00
Jordi Boggiano
a7f008bc39
Add missing getopts::groups::optflagmulti function
2013-08-07 22:41:13 -04:00
Alex Crichton
e99eff172a
Forbid priv
where it has no effect
...
This is everywhere except struct fields and enum variants.
2013-08-07 22:41:12 -04:00
Kevin Ballard
8964fcc5ac
Implement DoubleEndedIterator on Range
...
Range is now invertable as long as its element type conforms to Integer.
Remove int::range_rev() et al in favor of range().invert().
2013-08-07 22:41:09 -04:00
blake2-ppc
8523f6d643
rustc: Fix for-range loops that can use iterators
...
Transform range loops that can be regular iterator loops.
2013-08-07 22:39:57 -04:00
blake2-ppc
e7d4a9c7f2
Bugfix .each_edge in middle/graph.rs
...
Edge iterator used the length of the nodes vector, must be a mistake.
2013-08-07 22:39:57 -04:00
blake2-ppc
40bdbf0f5d
std: Fix for-range loops that can use iterators
...
Fix inappropriate for-range loops to use for-iterator constructs (or
other appropriate solution) instead.
2013-08-07 22:39:57 -04:00
blake2-ppc
026c1ae311
extra: Remove all .each methods in smallintmap
2013-08-07 22:39:57 -04:00
Alex Crichton
ffb670ffcd
Add initial support for a new formatting syntax
...
The new macro is available under the name ifmt! (only an intermediate name)
2013-08-07 19:21:43 -07:00
bors
9db698a81b
auto merge of #8358 : brson/rust/newrt, r=brson
2013-08-07 16:47:15 -07:00
Brian Anderson
85aaa44bec
Turn on the new runtime
2013-08-07 16:32:20 -07:00
Brian Anderson
52a37b63f4
rusti: Disable tests
...
Segfaulted on one of the bots. Maybe out of stack?
2013-08-07 16:32:20 -07:00
Brian Anderson
ce95b01014
Disable linked failure tests
...
The implementation currently contains a race that leads to segfaults.
2013-08-07 16:32:20 -07:00
Brian Anderson
b735e6b104
doc: Fix deadlocks in tutorial due to yield bustage
2013-08-07 16:32:20 -07:00
Brian Anderson
ad8010fdf2
xfail debug-info/option-like-enum
...
Don't understand why this broke.
2013-08-07 15:40:27 -07:00
Brian Anderson
b240524e5a
test: Fix deadlock in task-perf-linked-failure
2013-08-07 15:40:27 -07:00
Brian Anderson
44403f77d1
test: xfail a bunch of tests that are incorrectly reading os::args()[1]
2013-08-07 15:40:27 -07:00
Brian Anderson
84d17445f8
rustpkg: Disable test_uninstall
...
Seems to not work
2013-08-07 15:40:27 -07:00
Brian Anderson
0929eb4ac8
rustc: Use 4MB stacks. Needed for unoptimized builds apparently.
2013-08-07 15:40:27 -07:00
Brian Anderson
ae1ed4fd78
std: Allow spawners to specify stack size
2013-08-07 15:40:27 -07:00
Brian Anderson
f82da818a7
std::rt: Pull RUST_MIN_STACK from the environment
2013-08-07 15:40:27 -07:00
Brian Anderson
eb6143257d
std::rt: 2MB stacks again
2013-08-07 15:40:26 -07:00
bors
a85f9acbfc
auto merge of #8320 : mihneadb/rust/freq_count, r=cmr
2013-08-07 15:02:19 -07:00
Erick Tryzelaar
a54476b0aa
Merge remote-tracking branch 'remotes/origin/master' into remove-str-trailing-nulls
2013-08-07 14:10:39 -07:00
Erick Tryzelaar
aababbba8e
std: fix a bad type cast for in str.to_c_str()
2013-08-07 14:06:50 -07:00
Erick Tryzelaar
72688eaa13
std: Make CString::new unsafe b/c it can mutate a *T ptr
2013-08-07 14:06:50 -07:00
Erick Tryzelaar
d6257b315b
std: remove unnecessary test from c_str.drop and use safer transmute
2013-08-07 14:06:50 -07:00
Erick Tryzelaar
e053bff5d0
std: Fix c_str.iter() and add test
2013-08-07 14:06:45 -07:00
bors
98ec79c957
auto merge of #8294 : erickt/rust/map-move, r=bblum
...
According to #7887 , we've decided to use the syntax of `fn map<U>(f: &fn(&T) -> U) -> U`, which passes a reference to the closure, and to `fn map_move<U>(f: &fn(T) -> U) -> U` which moves the value into the closure. This PR adds these `.map_move()` functions to `Option` and `Result`.
In addition, it has these other minor features:
* Replaces a couple uses of `option.get()`, `result.get()`, and `result.get_err()` with `option.unwrap()`, `result.unwrap()`, and `result.unwrap_err()`. (See #8268 and #8288 for a more thorough adaptation of this functionality.
* Removes `option.take_map()` and `option.take_map_default()`. These two functions can be easily written as `.take().map_move(...)`.
* Adds a better error message to `result.unwrap()` and `result.unwrap_err()`.
2013-08-07 13:23:07 -07:00
bors
cdba212e72
auto merge of #8326 : thestinger/rust/iterator, r=alexcrichton
...
The `extra::iter` module wasn't actually included in `extra.rs` when it was moved from `std`... I assume no one is going to miss it.
2013-08-07 10:32:20 -07:00
Mihnea Dobrescu-Balaur
17c12bbd1b
Add frequency count to extra::stat. #8281
2013-08-07 09:46:09 -07:00
bors
29ffbbaaa8
auto merge of #8373 : alexcrichton/rust/disable-rusti, r=cmr
...
These are causing problems on the linux bots, I'll investigate soon.
2013-08-07 08:53:20 -07:00
Erick Tryzelaar
19e17f54a0
std: removed option.take_map{,_default}
2013-08-07 08:52:09 -07:00
Erick Tryzelaar
1e490813b0
core: option.map_consume -> option.map_move
2013-08-07 08:52:09 -07:00
Alex Crichton
0927d62275
Revert "Re-enable rusti tests"
...
This reverts commit d5de801cc1
.
2013-08-07 08:29:49 -07:00
Erick Tryzelaar
9218aaa00e
std: add result.map_move, result.map_err_move
2013-08-07 08:23:55 -07:00
Erick Tryzelaar
5c08237456
option.get -> option.unwrap
2013-08-07 08:16:37 -07:00
bors
597b3fd03f
auto merge of #8305 : huonw/rust/triage-fixes, r=cmr
...
The two deletions are because the test cases are very old (still using `class` and modes!), and, as far as I can tell (since they are so old), the areas they test are well tested by other rpass tests.
2013-08-07 06:56:19 -07:00
Huon Wilson
1ce5effac2
testsuite: add explanation to a Note, and remove duplicated code.
...
Fixes #7302 .
2013-08-07 23:17:52 +10:00
Huon Wilson
e5fb4c4359
testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.)
...
Fixes #7304 .
2013-08-07 23:17:52 +10:00
Huon Wilson
1016e8b8f7
testsuite: remove 2 very outdated testcases; functionality is tested by other class-*.rs tests.
...
Fixes #7305 , #7307 .
2013-08-07 23:17:52 +10:00
Huon Wilson
c57fde2b5f
std: adjust str::test_add so that the macro expands to all 3 items ( #8012 ).
...
Closes #3682 .
2013-08-07 23:17:52 +10:00
Young-il Choi
d463f4cb10
mk: test.mk fix to specify ADB variables not adb
2013-08-07 20:43:46 +09:00