bors
957251817b
auto merge of #6389 : sonwow/rust/issue-3356, r=bstrie
...
Fix for #3356
2013-05-11 12:55:49 -07:00
Alex Crichton
998fececd6
Stop using the '<->' operator
2013-05-10 22:51:06 -04:00
Alex Crichton
b05aae2d41
test: Use the new for
protocol
2013-05-10 19:20:20 -04:00
Youngsoo Son
b7da975049
renamed vec::from_slice to vec::to_owned
2013-05-10 18:38:54 +09:00
Alex Crichton
28256052a4
core: Use the new for
protocol
2013-05-10 02:46:18 -04:00
bors
7675856253
auto merge of #6354 : Aatch/rust/uninit-intrinsic, r=graydon
...
Adds an `uninit` intrinsic.
It's just an empty function, so llvm optimizes it down to nothing.
I changed all of the `init` intrinsic usages to `uninit` where it seemed appropriate to.
2013-05-09 12:37:00 -07:00
James Miller
57509709b4
Make staged versions of the functions that use uninit
2013-05-09 23:05:17 +12:00
bors
ca95e7f94e
auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiyn
...
Hi there,
Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes.
Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`.
Thanks!
Sean
2013-05-09 03:51:32 -07:00
James Miller
f5ab112e6b
Replace init() with uninit() where appropriate
2013-05-09 22:41:54 +12:00
bors
3bbbb314ee
auto merge of #6327 : z0w0/rust/rm-notest, r=brson
...
Makes it more consistent, imo.
2013-05-08 18:15:41 -07:00
Patrick Walton
49a66a5c5a
librustc: Stop parsing modes and remove them entirely from the language
2013-05-08 17:04:01 -07:00
Sean Moon
bd4ee7c7d2
Fix typos
2013-05-09 02:34:47 +09:00
Zack Corr
cb66d8948a
Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]
2013-05-08 21:11:23 +10:00
bors
45ae3402e0
auto merge of #6294 : sonwow/rust/renamed-test, r=thestinger
...
Renamed test
2013-05-07 13:57:42 -07:00
bors
19d2ba3383
auto merge of #6254 : alexcrichton/rust/issues-5311-4490-better-foldl, r=graydon
...
Closes #5311 and #4490 .
This doesn't change `vec.foldl` because that's still part of `old_iter`, although I could change that as well if necessary.
2013-05-07 10:12:40 -07:00
Youngsoo Son
dfe608dc99
renamed tests
2013-05-07 14:07:56 +09:00
Alex Crichton
44c1e46ef5
Improve lifetimes on foldl/foldr and lift the Copy requirement
2013-05-06 02:21:01 -04:00
Niko Matsakis
4300d4d2fa
Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freeze
...
Conflicts:
src/libcore/core.rc
src/libcore/hashmap.rs
src/libcore/num/f32.rs
src/libcore/num/f64.rs
src/libcore/num/float.rs
src/libcore/num/int-template.rs
src/libcore/num/num.rs
src/libcore/num/strconv.rs
src/libcore/num/uint-template.rs
src/libcore/ops.rs
src/libcore/os.rs
src/libcore/prelude.rs
src/libcore/rt/mod.rs
src/libcore/unstable/lang.rs
src/librustc/driver/session.rs
src/librustc/middle/astencode.rs
src/librustc/middle/borrowck/check_loans.rs
src/librustc/middle/borrowck/gather_loans.rs
src/librustc/middle/borrowck/loan.rs
src/librustc/middle/borrowck/preserve.rs
src/librustc/middle/liveness.rs
src/librustc/middle/mem_categorization.rs
src/librustc/middle/region.rs
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/inline.rs
src/librustc/middle/trans/reachable.rs
src/librustc/middle/typeck/check/_match.rs
src/librustc/middle/typeck/check/regionck.rs
src/librustc/util/ppaux.rs
src/libstd/arena.rs
src/libstd/ebml.rs
src/libstd/json.rs
src/libstd/serialize.rs
src/libstd/std.rc
src/libsyntax/ast_map.rs
src/libsyntax/parse/parser.rs
src/test/compile-fail/borrowck-uniq-via-box.rs
src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs
src/test/run-pass/borrowck-nested-calls.rs
2013-05-05 15:11:04 -04:00
Brian Anderson
8081e8debf
Register snapshots
2013-05-04 15:43:51 -07:00
Niko Matsakis
418f991118
allover: numerous unused muts etc
2013-04-30 14:10:21 -04:00
Niko Matsakis
a896440ca1
new borrow checker (mass squash)
2013-04-30 06:59:32 -04:00
Niko Matsakis
202b8dcdc4
adapt to snapshot
2013-04-30 06:43:02 -04:00
Sangeun Kim
84e97d5596
I modified the doc of from_elem, from_fn, I think it returns an owned vector
2013-04-30 18:39:16 +09:00
Patrick Walton
b0522a497c
librustc: Remove ptr::addr_of
.
2013-04-29 14:30:53 -07:00
Daniel Micay
46f91a0fa9
make way for a new iter module
2013-04-28 22:31:39 -04:00
bors
7c1696b529
auto merge of #6057 : cmr/rust/map_zip, r=graydon
...
I think the name is more clear, and fits with filter_map etc.
2013-04-26 17:42:36 -07:00
Corey Richardson
d53e686f4f
Rename vec::mod2 to vec::mod_zip
2013-04-25 01:38:44 -04:00
Corey Richardson
91fb7b282d
Move documentation for vec::windowed where it will be generated
2013-04-24 22:33:48 -04:00
Corey Richardson
92bf9b68da
Add basic documentation for with_capacity
2013-04-24 22:33:13 -04:00
Alex Crichton
13537d2e0c
core: remove unused 'mut' variables
2013-04-20 21:02:38 -04:00
Matthijs Hofstra
51a68eb9b1
Replaced many instances of reinterpret_cast with transmute
2013-04-20 22:05:50 +02:00
bors
ce4f73a243
auto merge of #5945 : graydon/rust/fix-unicode-tables, r=pcwalton
...
This switches the unicode functions in core to use static character-range tables and a binary search helper rather than open-coded switch statements. It adds about 50k of read only data to the libcore binary but cuts out a similar amount of compiled IR. Would have done it this way in the first place but we didn't have structured statics for a long time.
2013-04-19 23:03:52 -07:00
bors
e67f1c0fd2
auto merge of #5968 : gifnksm/rust/windowed, r=brson
...
vec::windowed fails if given window size is greater than vector length + 1.
```rust
for vec::windowed(7, &[1,2,3,4,5,6]) |vs| { fail!(); } // => do nothing
for vec::windowed(8, &[1,2,3,4,5,6]) |vs| { fail!(); } // => assertion failure in vec::slice
```
2013-04-19 22:12:52 -07:00
gifnksm
a1a9326c6d
libcore: Fix assertion failure in vec::windowe.
...
vec::windowed fails if given window size is greater than vector length + 1.
2013-04-20 11:15:25 +09:00
Patrick Walton
dcea717208
librustc: Fix botched merge. rs=merge
2013-04-19 15:57:31 -07:00
Patrick Walton
c995a62d44
librustc: WIP patch for using the return value.
2013-04-19 12:00:08 -07:00
Patrick Walton
10aa1c3c05
test: Add fannkuch-redux and fasta-redux shootout benchmarks
2013-04-19 11:56:52 -07:00
Patrick Walton
9738c2a45c
test: Rewrite nbody and spectralnorm shootout benchmarks
2013-04-19 11:56:52 -07:00
Patrick Walton
f903ae9e72
librustc: Implement fast-ffi and use it in various places
2013-04-19 11:53:31 -07:00
Daniel Micay
ae1c9ebf3c
move iterator adaptor tests to iterator module
2013-04-19 09:01:40 -04:00
Daniel Micay
0f85cf180a
iterator: add skip and take
2013-04-19 07:22:20 -04:00
Graydon Hoare
5a3d26f271
core: replace unicode match exprs with bsearch in const arrays, minor perf win.
2013-04-18 14:39:40 -07:00
Graydon Hoare
14b7277c4f
core: add vec::bsearch.
2013-04-18 14:39:40 -07:00
Daniel Micay
a523abd75c
add dropwhile and takewhile iterators
2013-04-18 13:22:38 -04:00
Huon Wilson
0ff568a3c1
libcore: add an EnumerateIterator, like Python's enumerate
.
2013-04-18 20:37:27 +10:00
Daniel Micay
c98f0cb362
vec: add an external iterator
2013-04-17 21:53:23 -04:00
Huon Wilson
21723d5bdc
libcore: vec::windowed iterates, not allocates.
2013-04-16 23:07:46 +10:00
Niko Matsakis
61b9e0ebfa
core: changes in response to #5656
2013-04-10 17:32:03 -07:00
Alex Crichton
255193cc1a
Removing no longer needed unsafe blocks
2013-04-08 17:50:25 -04:00
Matthijs Hofstra
c16919d3a8
Removing mut fields from vec.rs, at_vec.rs, str.rs, unstable.rs, and cell.rs.
2013-04-03 16:33:23 +02:00