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
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
Erick Tryzelaar
0de7635f53
Merge remote-tracking branch 'remotes/origin/incoming' into serial
2013-03-29 17:48:44 -07:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Erick Tryzelaar
31563f53d9
Merge remote-tracking branch 'remotes/origin/incoming' into serial
2013-03-29 09:06:36 -07:00
Erick Tryzelaar
ed62f6dfe0
core: add consume_reverse
2013-03-29 09:04:26 -07:00
Alex Crichton
be57d745d2
Removing unused imports
2013-03-28 23:56:46 -04:00
Daniel Micay
d2b267bcb5
add a TotalEq trait
2013-03-27 17:29:10 -04:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Patrick Walton
142dbd65da
librustc: Remove all uses of the old [T * N] fixed-length vector syntax
2013-03-26 21:29:34 -07:00
Patrick Walton
0d52b22e7b
libcore: Change [const T] to const [T] everywhere
2013-03-26 21:29:33 -07:00
Felix S. Klock II
afaa48cfb5
Spelling fixes; replaced size with capacity in few places.
2013-03-26 14:18:48 +01:00