Patrick Walton
04497ea7b9
rustc: Implement simple uses of &trait
2012-10-05 16:57:13 -07:00
Tim Chevalier
f8bc0d2545
Revert "wip"
...
This reverts commit ca49fd402a
.
2012-10-05 16:10:08 -07:00
Tim Chevalier
ca49fd402a
wip
2012-10-05 15:39:12 -07:00
Tim Chevalier
e16dbb7888
Demode some code using by-mutbl-ref; warn about by-mutbl-ref
...
The parser now warns about use of mutbl-ref mode, though it's kind
of a lie since this commit doesn't remove support for the mode.
Changed move_val_init to have stage0 and stage1/2 versions, the latter of
which is demoded.
Changed the type that the typechecker expects the move_val_init
intrinsic to have. After this is pushed, I can make a new snapshot,
which will remove the need for the stage0 versions.
2012-10-05 15:37:01 -07:00
Brian Anderson
016875b1b1
std: Silence remaining warnings
2012-10-05 11:59:51 -07:00
Brian Anderson
e46e97fc9a
Silence most of the remaining warnings
2012-10-05 11:53:24 -07:00
Patrick Walton
1b732145ec
rustc: Implement simple trait inheritance.
...
Generic trait inheritance, cross-crate trait inheritance, and vtable-based
trait inheritance don't work yet.
2012-10-05 11:52:08 -07:00
Brian Anderson
f8179b6d4d
Hack around llvm 14013
2012-10-05 11:32:28 -07:00
Brian Anderson
ba75a3e14c
std: Revert demoding of uv_ll. It can't be done without FFI changes
2012-10-05 11:32:00 -07:00
Brian Anderson
8574766033
Update src/README.txt
2012-10-05 04:18:11 -06:00
Brian Anderson
2f6f0b55fc
core: Correct description of cast::forget
...
'managed' means something different now
2012-10-05 01:59:37 -06: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
Tim Chevalier
4155a60c75
Fix FIXME that's no longer blocked by #2611
2012-10-04 19:43:32 -07:00
Simon BD
74246d47fd
Finish up tests, uncomment when ICE is fixed.
2012-10-04 21:35:03 -05:00
Tim Chevalier
2dfd822962
Fix snapshots.txt date
2012-10-04 17:04:14 -07:00
Tim Chevalier
677c7cd7f5
Register snapshots
2012-10-04 17:01:15 -07:00
Tim Chevalier
202c8fd0eb
Kill bootstrapping code in ptr
2012-10-04 16:48:57 -07:00
Tim Chevalier
65c96f849f
Forbid deprecated modes again in core
...
Sadly, there's only one file that requires deprecated modes
(stackwalk)... So, forbid them everywhere else.
2012-10-04 16:48:57 -07:00
Tim Chevalier
fe12da0864
De-mode comm::Chan
2012-10-04 16:48:57 -07:00
Tim Chevalier
777baeb298
Remove code that was waiting for a snapshot
...
extfmt is now demoded
2012-10-04 16:48:56 -07:00
Graydon Hoare
c37c243e95
Remove some residue, core is effectively de-exported now. Close #3583 .
2012-10-04 16:08:08 -07:00
Brian Anderson
2d5cac960d
rt: Remove check_claims from the export list
2012-10-04 15:41:14 -07:00
Brian Anderson
c83218de12
core: Improve option docs a little
2012-10-04 15:15:09 -07:00
Brian Anderson
edc317b821
Remove arg vectors from main functions. Stop supporting them.
2012-10-04 15:07:49 -07:00
Brian Anderson
738cd00f1d
rt: Remove CHECK_CLAIMS
2012-10-04 14:10:45 -07:00
Graydon Hoare
f05bf26f85
Fix long line.
2012-10-04 14:08:59 -07:00
Graydon Hoare
6ffce1a1c3
De-export extfmt. Part of #3583 .
2012-10-04 13:50:02 -07:00
Graydon Hoare
a06b90322c
Finish de-exporting std. Part of #3583 .
2012-10-04 13:47:24 -07:00
Simon BD
7bd48b92d9
Get tim_sort working, add test for double-freeing elements in tmp
2012-10-04 11:24:55 -05:00
Simon BD
455591d026
Fix my merge
2012-10-04 11:24:38 -05:00
Brian Anderson
83fdeddb91
xfail-pretty reexport-star
2012-10-03 22:10:52 -07:00
Brian Anderson
ae42318bef
core: Make some parts of task private
2012-10-03 22:07:11 -07:00
Patrick Walton
c2fc7316a9
test: Fix error message in vtable-res-trait-param
2012-10-03 21:13:58 -07:00
Simon BD
efcd2385ea
Merge remote-tracking branch 'original/incoming' into incoming
...
Conflicts:
src/libstd/json.rs
src/libstd/sort.rs
2012-10-03 21:47:09 -05:00
Simon BD
44f8a4401a
Backup changes before pull from incoming
2012-10-03 21:41:53 -05:00
Patrick Walton
1c3bfa4550
libstd: Make vec_from_set pure
2012-10-03 19:40:25 -07:00
Patrick Walton
82fd71137a
libcore: De-export core.rc and core.rs
2012-10-03 19:40:25 -07:00
Brian Anderson
3ccf6f5932
std: Fix double free in uv
2012-10-03 19:23:34 -07:00
Patrick Walton
d4351c9d39
rustc: Fix ICE when de-exporting rt
2012-10-03 18:15:33 -07:00
Orphée Lafond-Lummis
ae4f8fb87a
rustc man page and usage text update.
...
* Mark --static as experimental;
* Remove --stats, as the option isn't implemented.
* Bold and surround by pointy brackets (<>) all the URLs of rustc man page, for
consistency.
2012-10-03 20:19:20 -04:00
Patrick Walton
f885205b1b
rustc: Unbreak old-style boxed traits
2012-10-03 17:18:24 -07:00
Patrick Walton
b34327be0d
rustc: Implement "@Foo as @Bar" for boxed traits
2012-10-03 17:03:29 -07:00
Patrick Walton
d936773e56
test: Add a test case for "pub use a::*"
2012-10-03 17:03:29 -07:00
Graydon Hoare
35598b4595
De-export net::*. Part of #3583 .
2012-10-03 17:01:32 -07:00
Tim Chevalier
53906bb4fb
Change default mode for fns to be by-copy, except for fn&
2012-10-03 16:34:36 -07:00
Graydon Hoare
a1ab0cd6a8
Sub-uses from libc should be pub.
2012-10-03 15:14:56 -07:00
Graydon Hoare
365f174838
Attempt to fix os::args errors on various platforms.
2012-10-03 15:02:22 -07:00
Brian Anderson
72b7a7707f
test: Use println instead of debug in hello.rs
2012-10-03 14:29:59 -07:00
Tim Chevalier
c73e3320f8
Remove crud
2012-10-03 14:28:47 -07:00
Tim Chevalier
b6692500ff
Register snapshots
2012-10-03 14:26:50 -07:00
Tim Chevalier
9516e7b4b3
Revert "rustc: Don't error out early when constructing a boxed trait."
...
This reverts commit 5e7ff924b5
.
2012-10-03 14:05:51 -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
Simon BD
0ec5c9af9b
Add cleanup code so the the array remains in a valid state if a comparison fails
2012-10-03 09:51:05 -05:00
Patrick Walton
2f451a7bd7
rustc: Only allow imports marked with "pub" to be imported from other modules
2012-10-02 18:15:19 -07:00
Graydon Hoare
8a5545e9cd
Fix long line.
2012-10-02 16:32:45 -07:00
Graydon Hoare
c31a88c7f4
De-export the submodules of task. Part of #3583 .
2012-10-02 16:32:00 -07:00
Patrick Walton
4101d8c22d
rustc: Add a side table for legacy boxed traits, not filled in.
...
This is part of the transition to "@int as @Trait".
2012-10-02 16:19:03 -07:00
Patrick Walton
2df168812d
libcore: Implement os::args() on Windows
2012-10-02 15:33:44 -07:00
Patrick Walton
5e7ff924b5
rustc: Don't error out early when constructing a boxed trait.
...
This improves error messages a bit and helps pave the way for "@int as @Trait"
(as opposed to "int as @Trait").
2012-10-02 15:31:10 -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
Daniel Patterson
0b9a47a189
core::rand - adding rand::random(), a shortcut to generate a uint with task-local rng
2012-10-02 17:15:14 -04:00
Patrick Walton
9284179311
libstd: Switch off legacy modes in both core and std.
2012-10-02 12:20:06 -07:00
Graydon Hoare
b787a26534
De-export comm, task. Part of #3583 .
2012-10-02 12:05:08 -07:00
Graydon Hoare
201513e859
De-export std::{fun_treemap, list, map}. Part of #3583 .
2012-10-02 12:04:49 -07:00
Daniel Patterson
6c7459de99
core::rand - adding test for task_rng()
2012-10-02 11:23:32 -07:00
Daniel Patterson
c7354e6c10
core::rand - adding task local lazily initialized rng, as per #3439
2012-10-02 11:23:32 -07:00
Brian Anderson
4d30b34673
core: Add implementation of real_args for FreeBSD
2012-10-02 10:31:37 -07:00
Brian Anderson
6365adaa61
Don't warn about non-camel-case types by default
2012-10-02 09:36:50 -07:00
Niko Matsakis
b1506c3150
silence warning
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
2569adc5ea
Split auto_serialize2 into two macros
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
372c7de201
Add struct to auto_serialize2 test
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
4f4160ee3b
Factor out auto_serialize2's impls from each other.
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
c46b6f9efb
auto_serialize2 should deserialize structs using read_struct
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
8fc3088b2a
rename vec::raw::form_slice to buf_as_slice
...
This matches the str::raw function.
2012-10-01 20:44:30 -07:00
Erick Tryzelaar
81423a3866
Add deserializable and more types to serialization2
2012-10-01 20:43:59 -07:00
Erick Tryzelaar
0a950f394d
test: un-xfail the auto_serialize for boxes test
2012-10-01 20:43:59 -07:00
Erick Tryzelaar
0159fe7ce9
libstd: remove unused imports from json
2012-10-01 20:43:59 -07:00
Brian Anderson
8b094c36aa
Merge pull request #3638 from dbp/typo
...
core::task - typo in comment
2012-10-01 19:36:58 -07:00
Daniel Patterson
ebdb4b7ef7
core::task - typo in comment
2012-10-01 22:21:41 -04: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
7ead3c0411
De-export dlist, dvec. Part of #3583 .
2012-10-01 17:50:44 -07:00
Graydon Hoare
39f114d171
De-export iter and result. Part of #3583 .
2012-10-01 17:27:56 -07:00
Tim Chevalier
24fbf88230
In lint, don't complain about infer mode if legacy modes aren't enabled
2012-10-01 16:49:39 -07:00
Graydon Hoare
e480e19694
Attempt to fix option::test_unwrap_str breakage.
2012-10-01 16:14:30 -07:00
Graydon Hoare
9c8ff35727
De-export either. Part of #3583 .
2012-10-01 16:11:37 -07:00
Graydon Hoare
c042e06908
De-export vec. Part of #3583 .
2012-10-01 16:11:17 -07:00
Patrick Walton
4c3fede84f
libcore: Fix tidy error
2012-10-01 16:02:17 -07:00
Patrick Walton
9fe40e8a7b
libcore: Allow the command line arguments to be set on a per-task basis
2012-10-01 15:35:04 -07:00
Graydon Hoare
a4a7df0ccc
Fix rope breakage from de-exporting.
2012-10-01 15:26:53 -07:00
Tim Chevalier
b18320446e
Move over to calling ptr::addr_of
...
Everything should now call ptr::addr_of instead of
ptr::p2::addr_of. Only the pipes macro code when compiled
by stage0 will call ptr::p2::addr_of. Needs a snapshot to get
rid of that.
2012-10-01 15:12:09 -07:00
Tim Chevalier
72ae42627b
Call 'new' instead of 'old' extfmt code, preparing for snapshot
2012-10-01 15:12:09 -07:00
Patrick Walton
9b4db17630
libcore: Implement a sys::args() on Mac
2012-10-01 14:36:55 -07:00
Graydon Hoare
1229d1c2ce
De-export option and option_iter. Part of #3583 .
2012-10-01 14:12:36 -07:00
Graydon Hoare
db44dc5cf2
De-export gc and io. Part of #3583 .
2012-10-01 14:09:44 -07:00
Graydon Hoare
8cc61c816a
De-export std::{rope,smallintmap}. Part of #3583 .
2012-10-01 14:09:09 -07:00
Tim Chevalier
9ff95e29b3
Demode ebml, ebml2, json, par
2012-10-01 12:36:41 -07:00
Brian Anderson
314805d3ae
Bump llvm again to pick up a compiler-rt fix for OS X
2012-10-01 11:48:46 -07:00
Simon BD
579c7e3ef1
Make local variables and methods use underscores not camel case
2012-10-01 11:34:04 -05:00
Erick Tryzelaar
863c60eb8d
Another llvm update, this time updating compiler-rt
2012-09-30 18:10:40 -07:00
Brian Anderson
3ffc9fca03
Add bbrittain's llvm python fixes
2012-09-30 18:10:40 -07:00
Erick Tryzelaar
fd6557ea11
rustc: llvm grew some new enum variants
2012-09-30 18:10:40 -07:00
Erick Tryzelaar
c71dc77dac
rustc: uniquely mangle expr_fn names
...
two closures in the same function body can end up having
the same mangled name. This small patch uses gensym to
uniquely name each closure body so there won't be conflicts.
2012-09-30 18:10:40 -07:00
Erick Tryzelaar
c756ec0c5e
rebase rust llvm patches onto llvm HEAD
2012-09-30 18:10:39 -07:00
Brian Anderson
9387340aab
Register snapshots
2012-09-30 15:40:19 -07:00
Gareth Daniel Smith
1c76d189c0
When a vec/str bounds check fails, include the bad index and the length of the str/vec in the fail message.
2012-09-30 14:55:56 -07:00
Brian Anderson
c9e90de19f
Fix a compilation error on windows
2012-09-29 19:25:04 -07:00
Brian Anderson
affa3880de
core: Fix unsafe code in spawn_raw
2012-09-29 16:33:53 -07:00
Brian Anderson
6bb0399df2
rt: Check the results of pthread calls
...
The stage0 compiler is not working on an x86_64 debian wheezy instance and it
looks like maye pthread_create is failing
2012-09-29 16:29:47 -07:00
Brian Anderson
42c6265a8c
Register snapshots
2012-09-29 15:52:36 -07:00
Tim Chevalier
4f323d05da
Unbork Windows
2012-09-28 23:30:17 -07:00
Tim Chevalier
3639d38d5c
Add a demoded version of ptr::addr_of
...
Currently, the new version is ptr::p2::addr_of and the old one is
ptr::addr_of. This is kind of cheesy, but I need a snapshot before I
can ditch the old version, since the pipe compiler generates calls to
addr_of.
core is converted over to use the new version, std is not.
2012-09-28 22:19:01 -07:00
Tim Chevalier
f1014c43fd
Finish demoding iter: from_elem, copy_seq, map, append
2012-09-28 21:52:32 -07:00
Brian Anderson
d0333a8e41
std: Make the DuplexStream constructor public
2012-09-28 22:19:43 -06:00
Tim Chevalier
90f959aad4
Fix graph500-bfs
2012-09-28 19:26:24 -07:00
Brian Anderson
c9fb1b19aa
Add allow(deprecated_\*) to syntax, rustc, rustdoc, et al
2012-09-28 18:38:59 -07:00
Graydon Hoare
f311bb38cd
Fix benchmarks.
2012-09-28 18:26:36 -07:00
Tim Chevalier
84b0583064
Squash a couple pattern warnings that I missed
2012-09-28 17:59:01 -07:00
Tim Chevalier
a3a257cc3b
Demode iter::foldl and friends
2012-09-28 17:57:02 -07:00
Tim Chevalier
fdc6062136
Demode dvec
2012-09-28 17:55:34 -07:00
Brian Anderson
e48429abae
core: Demode the vec::foldr method
2012-09-28 17:48:14 -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
3654287826
De-export logging, to_str, to_bytes, from_str, util. Part of #3583 .
2012-09-28 17:47:09 -07:00
Tim Chevalier
fec96b2ae0
Demoding in iter: any, all, map_to_vec, flat_map_to_vec, filter_to_vec
2012-09-28 17:44:15 -07:00
Brian Anderson
9a8d4adb7d
Long lines
2012-09-28 17:30:40 -07:00
Graydon Hoare
eba5eeaef8
De-export std::deque. Part of #3583 .
2012-09-28 17:21:35 -07:00
Brian Anderson
ed42f26a48
rustdoc: Fix build errors
2012-09-28 17:17:29 -07:00
Brian Anderson
8766c2e35b
core: Demode patterns
2012-09-28 16:57:36 -07:00
Brian Anderson
517206fd08
Merge pull request #3621 from z0w0/jit-crates
...
Add support for crate loading to JIT
2012-09-28 16:55:28 -07:00
Brian Anderson
a6fe5ef1a9
core: Fix more windows bustage
2012-09-28 16:44:38 -07:00
Graydon Hoare
9b64d71848
Fix windows breakage.
2012-09-28 16:35:33 -07:00
Graydon Hoare
ad951b5976
De-export ptr, hash. Part of #3583 .
2012-09-28 16:27:28 -07:00
Graydon Hoare
baa08d5a95
Fix long line.
2012-09-28 16:27:28 -07:00
Graydon Hoare
1d51cfa1e8
Finish de-exporting send_map, future, pipes. Part of #3583 .
2012-09-28 16:27:09 -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
Brian Anderson
74a46ea74c
std: More demoding
2012-09-28 16:19:38 -07:00
Niko Matsakis
565b39b302
rename iter2 to each2, make it follow iterator protocol
2012-09-28 16:13:03 -07:00
Graydon Hoare
fd8e7aab71
De-export bool, tuple, unit, uniq. Part of #3583 .
2012-09-28 16:05:53 -07:00
Graydon Hoare
43a9d90b48
De-export std::{arc,comm,sync}. Part of #3583 .
2012-09-28 16:05:45 -07:00
Graydon Hoare
4b7d4cd0cf
De-export str. Part of #3583 .
2012-09-28 15:41:15 -07:00
Brian Anderson
9e0a43c932
Pretty-print item visibility modifiers
2012-09-28 15:04:23 -07:00
Tim Chevalier
2fe451c6ba
Fix patterns in either
2012-09-28 14:59:23 -07:00
Tim Chevalier
d9a06be224
Fix patterns in tuple
2012-09-28 14:59:22 -07:00
Graydon Hoare
70ae3e7bf2
De-export std::{bitv, cell, timer}. Part of #3583 .
2012-09-28 14:55:43 -07:00
Graydon Hoare
94f7bf98f9
Finish de-exporting uint modules. Part of #3583 .
2012-09-28 14:54:39 -07:00
Tim Chevalier
2f4ee89119
Demode extfmt
...
Needs a snapshot before this can be completed, because I changed
the mode for conv_poly.
2012-09-28 13:47:45 -07:00
Niko Matsakis
21519bc7e0
demode vec
2012-09-28 13:27:45 -07:00
Brian Anderson
6c15dd6d82
rust-mode: Add 'ref' keyword
2012-09-28 12:41:34 -07:00
Graydon Hoare
7e8c363da8
Fix missed pattern on std::net_tcp.
2012-09-28 12:30:33 -07:00
Graydon Hoare
70c202e218
De-export f32 and f64.
2012-09-28 12:30:33 -07:00
Graydon Hoare
3eb7b5ca13
De-export ops, cmp, num. Part of #3583 .
2012-09-28 12:30:18 -07:00
Graydon Hoare
0792ebe08a
Finish de-exporting int-template and the int modules.
2012-09-28 12:03:54 -07:00
Graydon Hoare
3efe499734
Long lines.
2012-09-28 11:36:09 -07:00
Zack Corr
00b2086374
jit: Change expected main signature
2012-09-28 19:46:40 +10:00
Brian Anderson
a09a49627e
Long lines
2012-09-28 02:26:20 -07:00
Zack Corr
b3f418c10e
jit: Remove old crate loading code and don't search through loaded crates (use llvm default instead)
2012-09-28 18:05:49 +10:00
Brian Anderson
bc9efaad9c
std: Eliminate deprecated patterns
2012-09-28 00:22:28 -07:00
Brian Anderson
467f2abdd8
Update llvm to pick up a dynamic linking fix for the JIT
2012-09-28 00:02:40 -07:00
Erick Tryzelaar
b68d287780
libsyntax: Fix long line
2012-09-27 19:24:11 -07:00
Simon BD
4d30d7ff04
Add a simple testsuite for timsort
2012-09-27 21:01:43 -05:00
Simon BD
f7be2d92a4
Export timsort
2012-09-27 20:56:13 -05:00
Simon BD
4f9f1c5f9a
Switch order of merge_sort arguments in some benchmarks
2012-09-27 20:44:31 -05:00
Simon BD
f34c4f4b04
Remove trailing whitespace
2012-09-27 20:44:14 -05:00
Brian Anderson
463d5d5f0b
Merge pull request #3607 from gutworth/incoming
...
utterly trivial refactoring
2012-09-27 18:35:43 -07:00
Graydon Hoare
fe62ff465c
De-mode std::{treemap,sort}. Part of #3583 .
2012-09-27 18:21:32 -07:00
Graydon Hoare
86041c421d
De-export std::{dbg,sha1,md4,tempfile,term}. Part of #3583 .
2012-09-27 18:03:13 -07:00
Brian Anderson
438bdd687b
core: More option demoding
2012-09-27 17:49:10 -07:00
Patrick Walton
7b0ed94bdc
rustc: Make enum export visibility inherit properly
2012-09-27 17:43:09 -07:00
Graydon Hoare
4eb5177d8c
Finish de-exporting cast, mutable, flate, repr, cleanup, reflect. Part of #3583 .
2012-09-27 17:17:27 -07:00
Simon BD
868d10160f
Put function argument last in sort function. Fixes #3265 .
2012-09-27 19:05:13 -05:00
Brian Anderson
24265b1598
core: Add failure tests for higher-order vec functions
2012-09-27 16:58:24 -07:00
Brian Anderson
5b93d1a29f
std: Fix mode warning in std::test
2012-09-27 16:50:42 -07:00
Graydon Hoare
1845cf23aa
De-export std::{base64,cmp,par}. Part of #3583 .
2012-09-27 16:43:25 -07:00
Simon BD
f98f00f7f6
Fix timsort to use updated vec::reserve
2012-09-27 18:15:57 -05:00
Graydon Hoare
8c89e4bbdd
Finish de-exporting path, rand, run, sys. Part of #3583 .
2012-09-27 15:44:09 -07:00
Graydon Hoare
3254bee55e
More fixing for windows build.
2012-09-27 14:48:40 -07:00
Graydon Hoare
51152ccf9d
De-export private and unicode. Part of #3583 .
2012-09-27 14:41:29 -07:00
Graydon Hoare
cda1d35251
Finish de-exporting box, char, float. Part of #3583 .
2012-09-27 14:40:53 -07:00
Graydon Hoare
3dd87689ee
Try to fix win32 breakage on os.
2012-09-27 14:20:46 -07:00
Graydon Hoare
b41d5146cc
De-export os and libc. Close #2006 .
2012-09-27 14:08:47 -07:00
Patrick Walton
0bcb3bc536
libsyntax: Parse visibility modifiers before foreign items
2012-09-27 12:48:09 -07:00
Benjamin Peterson
459fe6ad55
factor out common lines
2012-09-27 15:05:06 -04:00
Tim Chevalier
7e7411e620
Demode rand
2012-09-27 11:32:09 -07:00
Brian Anderson
52ad2750ea
Register snapshots
2012-09-27 00:58:07 -07:00
Zack Corr
ca4455666e
jit: Initialize native parser so rust-repl works
2012-09-27 16:07:33 +10:00
Brian Anderson
1b3086aada
Revert "Register snapshots"
...
This reverts commit ccaaad1912
.
2012-09-26 22:24:30 -07:00
Brian Anderson
ccaaad1912
Register snapshots
2012-09-26 22:23:31 -07:00
Niko Matsakis
e844e1db6e
change vec::view sig to be sound (good catch @bblum)
2012-09-26 21:29:22 -07:00
Brian Anderson
2340ef96d5
Merge pull request #3526 from Dretch/viewmethod
...
Make vec::view a method too.
2012-09-26 21:08:26 -07:00
Brian Anderson
e8fe718bfd
core: Replace map/map_default with map_ref/map_default_ref
2012-09-26 20:15:23 -07:00
Brian Anderson
64de6d638d
core: Fix mode warnings in str
2012-09-26 20:04:20 -07:00
Zack Corr
ebe6b2d15c
jit: Enable exception handling
2012-09-27 12:57:58 +10:00
Zack Corr
887b59b7be
jit: Separate JIT execution into two functions and load crates before main lookup
2012-09-27 12:57:58 +10:00
Tim Chevalier
996ec62cbf
Remove spurious by-ref argument to destructors
...
Destructors were internally declared with an extra (hidden) nil-typed
argument that was passed in by-ref mode. This was causing spurious
mode warnings. Deleted it. Also some misc. cleanup because I
couldn't help myself.
2012-09-26 19:42:02 -07:00
Brian Anderson
010f805a7b
Unbreak test/bench/task-perf-word-count-generic
2012-09-26 19:30:09 -07:00
Brian Anderson
0ec267b276
std: Demode more of list and treemap
2012-09-26 19:12:32 -07:00
Patrick Walton
1880d783b7
libcore: Partially de-export int-template and uint-template
2012-09-26 18:46:48 -07:00
Brian Anderson
52c3cf296b
Fix fuzzer/cargo breakage
2012-09-26 18:45:35 -07:00
Brian Anderson
87a72567f0
Unbreak run-pass/issue-2904 more
2012-09-26 18:41:02 -07:00
Brian Anderson
8f0e9ff029
Long lines
2012-09-26 18:23:05 -07:00
Patrick Walton
a08919a522
libcore: Partially de-export char, f32, f64, and float
2012-09-26 18:17:33 -07:00
Brian Anderson
dd80cb22e3
Fix test/run-fail/issue-2156
2012-09-26 18:10:35 -07:00
Niko Matsakis
67a8e7128a
Demode vec::push (and convert to method)
2012-09-26 18:02:07 -07:00
Patrick Walton
cd79e1d1b2
libcore: De-export ptr, send_map, and task::local_data
2012-09-26 17:47:29 -07:00
Patrick Walton
c91821d356
libcore: De-export cleanup, cmath, future, gc, hash, iter-trait, mutable, and private
2012-09-26 17:21:09 -07:00
Graydon Hoare
25715bd59e
Fix check-fast for the change to main's signature.
2012-09-26 17:20:49 -07:00
Brian Anderson
26a8fe3553
Fix test/run-pass/issue-2904
2012-09-26 17:03:02 -07:00
Patrick Walton
c6605168a1
libcore: De-export logging and pipes
2012-09-26 16:46:54 -07:00
Erick Tryzelaar
49d00b2f22
libstd: port json over to serialization2
2012-09-26 16:29:41 -07:00
Erick Tryzelaar
a1ab7d3cba
libstd: Add serialization2 versions of prettyprint and ebml
2012-09-26 16:20:25 -07:00
Erick Tryzelaar
79131ecfd3
replace resolve::Atom with ast::ident.
2012-09-26 16:20:25 -07:00
Erick Tryzelaar
b96af73159
turn ast::ident into a struct
...
This will help with the auto_serialize2 migration. We have to change
ident from a type alias to uint into a unique type. We need to use
a struct instead of a "enum ident = token::str_num" because structs
support constants, but newtypes do not.
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
c0b9986c8f
libstd: change serialization2 to take &self argument methods
...
Unfortunately this trips over issue (#3585 ), where auto-ref isn't
playing nicely with @T implementations. Most serializers don't
care, but prettyprint2 won't properly display "@" until #3585 is
fixed.
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
cd93441705
auto_serialize2 should fully qualify std::serialization2::deserialize
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
99d84bacc8
libsyntax: remove quasiquoter from auto_serialize2
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
d2506a1787
test: Add a test for auto_serialize2
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
2ba9d2a888
libsyntax: implement auto_serialize2 for enums, records, and structs
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
780b23af73
libstd: add the new trait-based serialization
...
This will need a snapshot before we can convert ebml and rustc
to use the new-style serialization.
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
75935cea7f
cargo: capcase types
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
dd502fc6e4
Allow hashmaps to infer their types
2012-09-26 16:20:24 -07:00
Patrick Walton
18bce94a5a
libcore: De-export dvec, rand, run, and sys
2012-09-26 16:04:23 -07:00
Brian Anderson
4f15b0d975
std: Fix mode warnings in fun_treemap and list
2012-09-26 15:59:52 -07:00
Eric Holk
135ebca8aa
Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.
2012-09-26 15:55:42 -07:00
Patrick Walton
f41cf208b7
libcore: De-export box, cast, and dlist
2012-09-26 15:25:17 -07:00
Patrick Walton
e956edeb55
libcore: De-export bool
2012-09-26 14:55:08 -07:00
Niko Matsakis
8b13912a83
Make impl of Add for @[] public
...
It's not clear that impls should have to be public to be used
from outside the crate; in particular, I don't know whether
they have to be public to be used from other modules within
the same crate.
2012-09-26 14:26:09 -07:00
Patrick Walton
264e1b2edb
libcore: De-mode at_vec
2012-09-26 12:29:27 -07:00
Patrick Walton
a7db161eed
Revert "Revert "libcore: De-mode at_vec""
...
This reverts commit fe09451a5a
.
2012-09-26 12:29:27 -07:00
Tim Chevalier
101bc62ad9
Revert "fix modes on dtors"
...
This reverts commit d38b97a170
.
(Accidentally checked this in, oops)
2012-09-26 10:43:11 -07:00
Tim Chevalier
540934980a
Demode some of core::io
2012-09-26 10:42:23 -07:00
Tim Chevalier
d38b97a170
fix modes on dtors
2012-09-26 10:42:11 -07:00
Tim Chevalier
e0d5d03451
Demode tuple
2012-09-26 10:41:19 -07:00
Vincent Belliard
ef23d77633
fix issue #3535 and add colon between mode and type when dumping funcion prototype
2012-09-26 07:48:19 -07:00
Tim Chevalier
95bc32dc4f
Fix borked tests
2012-09-25 22:13:05 -07:00
Tim Chevalier
e19e628b19
Demode iter-trait
2012-09-25 22:13:05 -07:00
Tim Chevalier
473a866733
Fix long lines
2012-09-25 22:13:05 -07:00
Tim Chevalier
7acf89c022
Fix long line
2012-09-25 22:13:05 -07:00
Tim Chevalier
00ffb15aac
Demode pipes::set_buffer
2012-09-25 22:01:05 -07:00
Tim Chevalier
d8ef6bfebf
Comment out at_vec test that fails
2012-09-25 22:00:53 -07:00
Tim Chevalier
fe09451a5a
Revert "libcore: De-mode at_vec"
...
This reverts commit ab6318803e
.
2012-09-25 20:59:14 -07:00
Tim Chevalier
3023bd8729
Demode dvec
2012-09-25 18:27:55 -07:00
Patrick Walton
ab6318803e
libcore: De-mode at_vec
2012-09-25 18:06:26 -07:00
Patrick Walton
cac5a9f916
libcore: De-export core::at_vec
2012-09-25 17:53:23 -07:00
Brian Anderson
d05e2ad66c
Demode core::result
2012-09-25 17:48:22 -07:00
Brian Anderson
62649f0412
Check more things with deprecated_modes
2012-09-25 17:41:29 -07:00
Patrick Walton
e500659eb5
rustc: Reduce shape.rs to the bare minimum needed to not trigger bugs
2012-09-25 17:39:23 -07:00
Patrick Walton
954eee5310
test: Remove various box annihilator tests
2012-09-25 17:06:01 -07:00