Brian Anderson
3fbea16107
Update man page
2013-06-28 00:31:58 -04:00
Daniel Micay
659cd55e75
add a tutorial on containers and iterators
2013-06-28 00:24:09 -04:00
Daniel Micay
c45af01351
fix stage0 build
2013-06-28 00:23:38 -04:00
Daniel Micay
5fccce4051
rc: add missing #[unsafe_no_drop_flag]
...
The destructors were updated in d9f6dd263c
but this was accidentally left out.
2013-06-27 23:21:40 -04:00
Young-il Choi
6b2297d118
std: unused import fix for android
2013-06-27 23:21:40 -04:00
Young-il Choi
aabeba3d63
extra: unused import fix for android
2013-06-27 23:21:40 -04:00
Tim Chevalier
d805859ff5
rustpkg: Update manual
2013-06-27 23:20:43 -04:00
Tim Chevalier
b854d6ea1c
docs: Mention rustpkg in release notes
2013-06-27 23:20:42 -04:00
Birunthan Mohanathas
dcf1dc060a
Rename #[no_drop_flag] to #[unsafe_no_drop_flag]
2013-06-27 23:20:42 -04:00
Daniel Micay
779ee2a2dd
util: make NonCopyable 0 size (instead of 1 byte)
...
this also adds a derived Eq, TotalEq, Ord and TotalOrd along with
removing the useless constructor
2013-06-27 23:20:42 -04:00
bors
927f454ac1
auto merge of #7432 : michaelwoerister/rust/WP3, r=jdm
2013-06-27 17:22:42 -07:00
bors
63afb8ccc8
auto merge of #7430 : huonw/rust/vec-kill, r=thestinger
2013-06-27 15:01:58 -07:00
bors
4c86a0431b
auto merge of #7418 : brson/rust/0.7-pre, r=cmr
...
There's a reason we didn't update this after 0.6 but I don't know
what it is. Let's see what breaks.
2013-06-27 12:52:43 -07:00
bors
9b6dfb8578
auto merge of #7414 : gifnksm/rust/max_by, r=catamorphism
...
`max_by` method returns the element that gives the maximum value from the specfied function.
`max_by`/`min_by` are convenient when you want to get the value which has greatest/smallest scores.
Inspired by [ruby's Enumerable module](http://ruby-doc.org/core-2.0/Enumerable.html ).
2013-06-27 10:37:36 -07:00
Michael Woerister
2f5e33d02f
debuginfo: Some corrections after review.
2013-06-27 19:28:37 +02:00
Michael Woerister
42dbae7f2a
debuginfo: Formatting cleanup.
2013-06-27 19:28:37 +02:00
Michael Woerister
4fb471ab78
debuginfo: Added test case for function arguments.
2013-06-27 19:28:37 +02:00
Michael Woerister
074e0fa2a9
debuginfo: Added test case for local variables declared with destructuring.
2013-06-27 19:28:37 +02:00
Michael Woerister
9102ad035c
debuginfo: Added more tests for region pointers (tuples, structs).
2013-06-27 19:28:37 +02:00
Michael Woerister
6a3094159f
debuginfo: Fixed some instances of gdb wrongly printing u8/i8 values as chars.
2013-06-27 19:28:37 +02:00
Michael Woerister
fb3e17b93a
debuginfo: Added test cases for region pointers into heap boxes for basic types.
2013-06-27 19:28:37 +02:00
Michael Woerister
751f0fba6f
debuginfo: Added test case for region pointers pointing to stack values with basic type.
2013-06-27 19:28:37 +02:00
Michael Woerister
6af78610e7
debuginfo: Added support for region pointers.
2013-06-27 19:28:37 +02:00
Michael Woerister
46d28c874c
debuginfo: Replaced many instances of @ with &.
2013-06-27 19:28:17 +02:00
Michael Woerister
168eba9201
debuginfo: Added test case for structs with destructor.
2013-06-27 19:28:17 +02:00
Michael Woerister
0b5fef3b26
debuginfo: Added test case for local variable scopes.
2013-06-27 19:28:17 +02:00
Michael Woerister
1dc8e76d3a
debuginfo: Made test cases use correct naming convention for variables.
2013-06-27 19:28:17 +02:00
Michael Woerister
4d8f2fd871
debuginfo: Many little formatting improvements.
2013-06-27 19:28:17 +02:00
Michael Woerister
5f97a6e951
debuginfo: Added test cases for tuples contained in structs.
2013-06-27 19:28:17 +02:00
Michael Woerister
36aa04b9ab
debuginfo: Added test cases for tuples.
2013-06-27 19:28:17 +02:00
Michael Woerister
7bb189e56c
Fixed debug information bug regarding struct padding.
2013-06-27 19:28:17 +02:00
Michael Woerister
fda193de24
Extended test cases for struct debug information.
...
Added test cases for different kinds of padding (simple-struct.rs)
Added test cases for nested structs (struct-in-struct.rs)
2013-06-27 19:28:17 +02:00
Huon Wilson
366ca44cc8
std: silence some test warnings.
2013-06-28 01:45:24 +10:00
bors
36527360a6
auto merge of #7429 : Blei/rust/delete-shared, r=huonw
...
Mostly just low-haning fruit, i.e. function arguments that were @ even
though & would work just as well.
Reduces librustc.so size by 200k when compiling without -O, by 100k when
compiling with -O.
2013-06-27 08:28:37 -07:00
Huon Wilson
d8087cae44
extra: silence some test warnings.
2013-06-28 00:50:48 +10:00
Huon Wilson
32d655916f
Convert vec::{reserve, reserve_at_least, capacity} to methods.
2013-06-28 00:40:47 +10:00
Huon Wilson
ae2f185349
Convert vec::{partition, partitioned} to methods.
2013-06-28 00:20:43 +10:00
Huon Wilson
206d4f00dc
Convert vec::retain to a method.
2013-06-28 00:20:42 +10:00
Huon Wilson
4470d14388
Convert vec::truncate to a method.
2013-06-28 00:20:42 +10:00
Huon Wilson
29b0649a6a
Convert vec::{push, push_all, push_all_move} to methods.
2013-06-28 00:20:42 +10:00
Huon Wilson
1cb0a567d1
Convert vec::{pop, shift, unshift, insert, remove, swap_remove} to methods.
2013-06-28 00:20:42 +10:00
Philipp Brüschweiler
7295a6da92
Remove many shared pointers
...
Mostly just low-haning fruit, i.e. function arguments that were @ even
though & would work just as well.
Reduces librustc.so size by 200k when compiling without -O, by 100k when
compiling with -O.
2013-06-27 15:06:19 +02:00
bors
c440743dcc
auto merge of #7403 : catamorphism/rust/package-scripts, r=brson
...
r? @brson (or @graydon if available) rustpkg/api.rs provides functions intended for package scripts to call.
It will probably need more functionality added to it later, but this is
a start.
Added a test case checking that a package script can use the API.
Closes #6401
2013-06-27 06:01:30 -07:00
Huon Wilson
d2e3e1e52b
Convert vec::{head, tail, init, last} (and similar fns) to methods.
2013-06-27 22:37:00 +10:00
Huon Wilson
d0512b1055
Convert vec::[mut_]slice to methods, remove vec::const_slice.
2013-06-27 22:36:09 +10:00
bors
0bad3e62b4
auto merge of #7395 : yichoi/rust/android_dummy, r=brson
...
add android dummy functions which does not exist in boinic.
after #7257 , some mman related functions are needed for android.
2013-06-27 03:07:31 -07:00
bors
a28f9ba526
auto merge of #7361 : brson/rust/incoming, r=brson
2013-06-27 01:04:33 -07:00
bors
f1e09d6f1f
auto merge of #7420 : mozilla/rust/rollup, r=thestinger
2013-06-26 23:07:41 -07:00
Corey Richardson
ab428b6480
Fix deque tests
2013-06-26 23:42:20 -04:00
bors
eda5e40b79
auto merge of #7111 : brson/rust/stack, r=brson
...
... through yields
This avoids the following pathological scenario that makes threadring OOM:
1) task calls C using fast_ffi, borrowing a big stack from the scheduler.
2) task returns from C and places the big stack on the task-local stack segment list
3) task calls further Rust functions that require growing the stack, and for this reuses the big stack
4) task yields, failing to return the big stack to the scheduler.
5) repeat 500+ times and OOM
(reopening after incoming fallout. *do not r+*. broken)
2013-06-26 20:40:31 -07:00