Commit Graph

137 Commits

Author SHA1 Message Date
Niko Matsakis
a32498d846 Make ~fn non-copyable, make &fn copyable, split barefn/closure types,
correct handling of moves for struct-record update.

Part of #3678.  Fixes #2828, #3904, #4719.
2013-02-07 05:53:30 -08:00
Tim Chevalier
73a7672b8d std: Stamp out structural records
See #4665
2013-02-04 16:48:52 -08:00
Daniel Micay
319eeb1c79 rename map -> oldmap and mark it as deprecated
LinearMap is quite a bit faster, and is fully owned/sendable without
requiring copies. The older std::map also doesn't use explicit self and
relies on mutable fields.
2013-02-03 15:55:10 -05:00
Daniel Micay
74b317ddc2 modernize smallintmap
* switch to explicit self
* get rid of the @ box
* replace DVec with ~[] (to get rid of the mutable field)
* implement the new container::Map trait
2013-01-31 23:22:51 -05:00
Daniel Micay
70855f5a07 move smallintmap to oldsmallintmap 2013-01-31 23:13:56 -05:00
Patrick Walton
226cd68f13 librustc: De-implicit-self the visitor. r=graydon 2013-01-29 10:43:12 -08:00
Tim Chevalier
31d78b2f07 Add #[legacy_records] crate attribute
In rustc, rustdoc, rusti, syntax, and std.
2013-01-28 19:41:56 -08:00
Tim Chevalier
0274292bed std: Address XXXes in flatpipes 2013-01-10 20:10:10 -08:00
Brian Anderson
2d9b1fee8f Merge remote-tracking branch 'gifnksm/bigint' into kind-names 2013-01-08 11:28:56 -08:00
Patrick Walton
57c599914a librustc: Terminate name searches at the nearest module scope for paths that contain at least two components. r=graydon 2012-12-27 10:02:54 -08:00
gifnksm
c6a8778ef7 Move BigUint and BigDIgit to std::bigint. 2012-12-22 15:14:26 +09:00
gifnksm
ccc1f8d5e8 Implement BigInt and BigUint. 2012-12-22 15:14:26 +09:00
Graydon Hoare
dbd36111fe bump 0.5 => 0.6, redirect some URLs in docs. 2012-12-21 15:35:49 -08:00
Erick Tryzelaar
9c673b246c Remove the old serialization code
Closes #3713.
2012-12-19 18:16:20 -08:00
Erick Tryzelaar
8650c6f683 Switch from serialization to std::serialize. (snapshot) 2012-12-17 20:00:36 -08:00
Brian Anderson
ec9305802b std: Add flatpipes 2012-12-17 18:46:42 -08:00
Daniel Micay
dd2b32be56 add priority queue implementation (binary heap) 2012-12-16 19:27:05 -08:00
Erick Tryzelaar
786c143a70 Begin renaming serialization to std::serialize. (snapshot) 2012-12-13 18:16:31 -08:00
Graydon Hoare
12c32e944d Add license boilerplate to more files. 2012-12-10 17:32:58 -08:00
Graydon Hoare
d783f4d7bb libs: Remove transitionary material on iter_bytes, add workcache to build. 2012-11-30 10:33:16 -08:00
Brian Anderson
16f72df704 Merge remote-tracking branch 'erickt/time'
Conflicts:
	src/libstd/time.rs
2012-11-28 14:49:58 -08:00
Graydon Hoare
dc34fb9219 std: try to fix breakage. 2012-11-22 23:32:30 -08:00
Graydon Hoare
eeb584ccbd std: initial sketch of workcache, barely does anything. 2012-11-22 18:31:12 -08:00
Tim Chevalier
9b6f025eb6 Rename thread_pool to task_pool
Minor change, no review.

Closes #3972
2012-11-15 12:35:14 -08:00
Patrick Walton
70886d314d libstd: Implement a thread pool. r=brson 2012-11-07 12:05:41 -08:00
Brian Anderson
1b0c6665d9 Merge remote-tracking branch 'brson/repl'
Conflicts:
	mk/install.mk
	src/rt/rustrt.def.in
2012-11-04 13:42:39 -08:00
Zack Corr
a450119b0b Move rusti::rl to std::rl 2012-11-04 15:40:57 +10:00
Brian Anderson
d29962f0eb Move futures to std 2012-10-23 14:46:49 -07:00
Graydon Hoare
57b4d10ff6 bump version to 0.5. 2012-10-12 16:41:32 -07:00
Erick Tryzelaar
e325d029d4 Remove old serialization2 vestigial code 2012-10-09 18:03:07 -07:00
Brian Anderson
016875b1b1 std: Silence remaining warnings 2012-10-05 11:59:51 -07:00
Tim Chevalier
8fc60af441 Remove by-copy mode from std, mostly
One instance remains in net_tcp due to a foreign fn. Lots of
instances remain in serialization.rs, but IIRC that is being removed.

I had to do unholy things to task-perf-word-count-generic to get it
to compile after demoding pipes. I may well have messed up its
performance, but it passes.
2012-10-04 19:59:47 -07:00
Graydon Hoare
a06b90322c Finish de-exporting std. Part of #3583. 2012-10-04 13:47:24 -07:00
Graydon Hoare
35598b4595 De-export net::*. Part of #3583. 2012-10-03 17:01:32 -07:00
Tim Chevalier
f33539e446 Remove uses of + mode from libstd
More or less the same as my analogous commit for libcore. Had
to remove the forbid(deprecated_modes) pragma from some files -- will
restore it after the snapshot.
2012-10-03 14:05:51 -07:00
Graydon Hoare
654b4d6987 De-export std::{json, getopts}. Part of #3583. 2012-10-03 13:38:00 -07:00
Graydon Hoare
fb83b40174 De-export std::{ebml, ebml2}. Part of #3583. 2012-10-03 13:36:39 -07:00
Tim Chevalier
f78cdcb636 Removing explicit uses of + mode
This removes most explicit uses of the + argument mode. Pending a
snapshot, I had to remove the forbid(deprecated_modes) pragma from
a bunch of files. I'll put it back!

+ mode still has to be used in a few places for functions that get
moved (see task.rs)

The changes outside core and std are due to the to_bytes trait and
making the compiler (with legacy modes on) agree with the libraries
(with legacy modes off) about modes.
2012-10-02 14:31:39 -07:00
Patrick Walton
9284179311 libstd: Switch off legacy modes in both core and std. 2012-10-02 12:20:06 -07:00
Graydon Hoare
201513e859 De-export std::{fun_treemap, list, map}. Part of #3583. 2012-10-02 12:04:49 -07:00
Graydon Hoare
fa010a6ee4 De-export std::{uv, uv_ll, uv_iotask, uv_global_loop}. Part of #3583. 2012-10-01 18:21:41 -07:00
Graydon Hoare
13979eb7e2 De-export std::test. Part of #3583. 2012-10-01 18:00:14 -07:00
Graydon Hoare
8cc61c816a De-export std::{rope,smallintmap}. Part of #3583. 2012-10-01 14:09:09 -07:00
Graydon Hoare
9e6d3cf3c9 De-export std::c_vec. Part of Part of #3583. 2012-09-28 17:47:36 -07:00
Graydon Hoare
eba5eeaef8 De-export std::deque. Part of #3583. 2012-09-28 17:21:35 -07:00
Graydon Hoare
e17d998e95 De-export std::{time, prettyprint{,2}, arena}. Part of #3583. 2012-09-28 16:26:33 -07:00
Graydon Hoare
1948ddf583 De-mode std::unicode. Part of #3583. 2012-09-28 16:26:18 -07:00
Graydon Hoare
43a9d90b48 De-export std::{arc,comm,sync}. Part of #3583. 2012-09-28 16:05:45 -07:00
Graydon Hoare
70ae3e7bf2 De-export std::{bitv, cell, timer}. Part of #3583. 2012-09-28 14:55:43 -07:00
Brian Anderson
bc9efaad9c std: Eliminate deprecated patterns 2012-09-28 00:22:28 -07:00