Commit Graph

11771 Commits

Author SHA1 Message Date
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
Patrick Walton
42b6037297 rustc: Remove most of the code that generates shapes 2012-09-25 16:53:23 -07:00
Patrick Walton
a66e23d236 rustc: Stop generating shape tables 2012-09-25 16:40:37 -07:00
Tim Chevalier
e85a3d8247 Demode Num trait and impls 2012-09-25 15:52:41 -07:00
Graydon Hoare
2d91567892 Fix combine-tests.py to emit #[legacy_exports]; 2012-09-25 15:31:02 -07:00
Graydon Hoare
fdd48dd903 Respect privacy qualifiers on view items, add to import resolutions. 2012-09-25 15:31:02 -07:00
Niko Matsakis
12a0401d84 Change method res to try autoref more often. Fixes #3585. 2012-09-25 15:22:38 -07:00
Patrick Walton
a770d86201 rustc: Move generally useful functions out of shape.rs in preparation for its destruction 2012-09-25 15:22:08 -07:00
Patrick Walton
f41c53667e rustc: Fix calls to the logging function when the must_cast flag is true; stop using shape code for logging 2012-09-25 14:56:17 -07:00
Niko Matsakis
267ab11cca use + mode for (almost) everything when not using legacy modes 2012-09-25 12:47:35 -07:00
Brian Anderson
37aee97e4b core: Mark more mods as demoded 2012-09-25 12:18:52 -07:00
Patrick Walton
ee7fa194fa Revert "rustc: Stop using shape code for logging" due to ICEs
This reverts commit ac822a52be.
2012-09-25 12:17:05 -07:00
Patrick Walton
f813f519a5 rt: Remove the cycle collector 2012-09-25 12:13:20 -07:00
Patrick Walton
ac822a52be rustc: Stop using shape code for logging 2012-09-25 11:44:23 -07:00
Patrick Walton
dbc00ced3a rt: Add a logging function for strings (only).
This will be the shape-free replacement for upcall_log_type.
2012-09-24 20:26:06 -07:00
Patrick Walton
00e3492511 rt: Call the Rust box annihilator; stop calling the cycle collector
This reverts commit 991cbfe42c.
2012-09-24 20:25:56 -07:00
Patrick Walton
530540025c libcore: Fix 32 bit Rust task structure offsets for unwinding 2012-09-24 20:25:51 -07:00
Graydon Hoare
546f3dbbf5 Build the export_map2 from visibility markers, unless #[legacy_exports]; 2012-09-24 17:29:32 -07:00
Graydon Hoare
9c6ae65865 Support visibility qualifiers in crate directives properly. 2012-09-24 17:29:32 -07:00
Brian Anderson
c675cd396d rustdoc: Fix for generations of anchors. #3570 2012-09-24 14:15:49 -07:00
Patrick Walton
991cbfe42c Revert "rt: Call the Rust box annihilator; stop calling the cycle collector" due to crashes
This reverts commit bb0ad11252.
2012-09-24 14:14:03 -07:00
Patrick Walton
bb0ad11252 rt: Call the Rust box annihilator; stop calling the cycle collector 2012-09-24 13:57:48 -07:00
Brian Anderson
afd91f8a56 Register snapshots. Remove redundant Eq impls, Makefile hacks 2012-09-23 23:01:49 -07:00
Ben Blum
8baed1f25f vim - Update bblum's email address and highlight trait names 2012-09-23 23:24:25 -04:00
Brian Anderson
acab1cd2ce Fix more windows breakage 2012-09-23 19:53:42 -07:00
Brian Anderson
0e14fd6e13 core: Fix some option-demode fallout on windows 2012-09-23 18:32:57 -07:00
Brian Anderson
4a78f9b166 core: Demode option 2012-09-23 17:15:00 -07:00
Brian Anderson
92752a462a xfail-test run-fail/out-of-stack-managed-box 2012-09-23 17:12:59 -07:00
Brian Anderson
32032491ed core: Un-legacy-export stackwalk, cmath 2012-09-23 16:42:05 -07:00
Niko Matsakis
0a26edca75 Fix trans for region patterns (&P) 2012-09-23 13:30:20 -05:00
Niko Matsakis
ba3eebd41d Make it illegal to use modes in a fn signature with providing
an explicit variable name. (Step one to changing the defaults)

First step to #3535
2012-09-23 13:30:13 -05:00
Brian Anderson
655f7f844c Remove bogus comment 2012-09-21 21:55:56 -07:00
Brian Anderson
b10e575217 Add tests for out-of-stack box leak #2555 2012-09-21 21:50:02 -07:00
Brian Anderson
60a1497ebb rustc: Make x-ray resolution work with non-legacy-exports
Code generated for the test runner needs to break visibility rules
2012-09-21 19:26:31 -07:00
Niko Matsakis
3d59ac3a19 De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachi 2012-09-21 19:13:55 -07:00
Brian Anderson
f3c31a07d7 rustdoc: Fix exports for new regime 2012-09-21 19:09:59 -07:00
Brian Anderson
298ab6f459 Revert "core: De-export at_vec and extfmt"
This reverts commit 6267d8a94a.
2012-09-21 19:04:06 -07:00
Brian Anderson
6267d8a94a core: De-export at_vec and extfmt 2012-09-21 18:49:22 -07:00
Patrick Walton
f3d6c506a4 libsyntax: Fix botched merge 2012-09-21 18:44:00 -07:00
Patrick Walton
d48396c986 libcore: De-mode str 2012-09-21 18:37:06 -07:00
Brian Anderson
49af969e2c rust-mode: Add pub and priv 2012-09-21 18:25:51 -07:00
Graydon Hoare
dffe188991 Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports]; 2012-09-21 18:11:43 -07:00
Brian Anderson
60443d4888 rustdoc: Add prune_private_pass. Off for now 2012-09-21 18:07:17 -07:00
Brian Anderson
c32cde16ab rustdoc: Cleanup 2012-09-21 17:11:29 -07:00
Patrick Walton
3c2b6110dd rustc: Shove the address of the box annihilator into the crate map 2012-09-21 11:42:57 -07:00
Brian Anderson
a51a561852 rustc: Remove middle/tstate
I feel like I've done this before
2012-09-21 00:45:25 -07:00
Brian Anderson
f5be40384f Revert "syntax: Make attributes sendable for rustdoc's benefit"
This reverts commit 90e3665fa7.
2012-09-20 18:15:39 -07:00
Brian Anderson
90e3665fa7 syntax: Make attributes sendable for rustdoc's benefit 2012-09-20 17:37:21 -07:00
Brian Anderson
19ad88c2b8 core: Mark gc and stackwalk as demoded 2012-09-20 17:29:20 -07:00
Brian Anderson
ee426f177b core: Mark three more trivial mods as demoded 2012-09-20 17:18:18 -07:00
Brian Anderson
1b5efaac27 syntax: Pass the correct crate_cfg to the syntax expander 2012-09-20 16:41:53 -07:00
Brian Anderson
e14a0eec23 core: Indicate that flate is demoded 2012-09-20 16:40:18 -07:00
Brian Anderson
89bbbd612a rustdoc: Use doc comments for rustdoc's rustdocs 2012-09-20 16:10:27 -07:00
Brian Anderson
d3f0ede198 rustdoc: Support the --help option 2012-09-20 15:39:33 -07:00
Brian Anderson
3e9284d128 core: Demode sys 2012-09-20 15:37:55 -07:00
Brian Anderson
3480986408 core: Minor doc tweakage 2012-09-20 15:33:52 -07:00
Brian Anderson
0bd02b113c rustdoc: Also don't print struct attributes 2012-09-20 15:14:32 -07:00
Patrick Walton
5558ebb6b7 libcore: Fix level-of-indirection problem in str::buf_as_slice 2012-09-20 15:05:20 -07:00
Brian Anderson
e0f5f25911 rustdoc: Don't print struct drop blocks 2012-09-20 14:41:09 -07:00
Niko Matsakis
38595e6664 remove cfg(stage0) version of Eq, not needed for tests 2012-09-20 14:34:22 -07:00
Brian Anderson
7abf55736c core: Move 'unreachable' to util. Improve docs 2012-09-20 14:27:37 -07:00
Niko Matsakis
77b0845a84 fix long lines 2012-09-20 14:08:21 -07:00
Niko Matsakis
1983e3d8d7 Make + mode by-value if the type is immediate, by-ref otherwise
Fixes #3523
2012-09-20 14:04:38 -07:00
Graydon Hoare
6e9f997f8e Fix ord test breakage. 2012-09-20 14:00:33 -07:00
Graydon Hoare
348d07f099 Remove export_map from resolve, just use export_map2. 2012-09-20 13:08:50 -07:00
Patrick Walton
69aaa410ca rustc: Fix buf_as_slice export 2012-09-20 12:26:40 -07:00
Patrick Walton
5cd9d4d9dd libcore: Make BytesWriters not require shared boxes. 2012-09-20 11:18:22 -07:00
Patrick Walton
9117dcb968 rustc: De-mode all overloaded operators 2012-09-20 09:48:05 -07:00
Brian Anderson
74dbdecb59 Remove old stage0 compat gunk 2012-09-19 19:25:29 -07:00
Brian Anderson
80524d3ad3 std: Demode test 2012-09-19 19:12:35 -07:00
Brian Anderson
c946f65d41 std: Mostly demode net::tcp 2012-09-19 19:12:35 -07:00
Brian Anderson
2792071bd2 std: Demode uv::global_loop 2012-09-19 19:12:35 -07:00
Brian Anderson
677792c6b1 std: Demode uv::iotask 2012-09-19 19:12:35 -07:00
Brian Anderson
c3f15c0982 std: Partially demode uv::ll 2012-09-19 19:12:34 -07:00
Brian Anderson
6cf496ce97 rustdoc: Find doc(hidden) even when there are multiple doc attrs 2012-09-19 19:08:32 -07:00
Brian Anderson
b056e98a27 rustdoc: Fix spelling in tests 2012-09-19 19:08:32 -07:00
Brian Anderson
acc3ec7d6c core: Hide the docs for the private TaskBuilder impl 2012-09-19 19:08:32 -07:00
Brian Anderson
4f5bff993b core: Decompose task into more submodules 2012-09-19 19:08:32 -07:00
Brian Anderson
591c152dfc core: Cleanup task_local docs 2012-09-19 19:08:32 -07:00
Brian Anderson
f996b3ae81 core: Split local_data into local_data/local_data_priv 2012-09-19 19:08:32 -07:00
Brian Anderson
1397dca2dd core: Move TLS to task::local_data 2012-09-19 19:08:32 -07:00
Brian Anderson
1643794e01 std: Demode bitv 2012-09-19 19:08:08 -07:00
Brian Anderson
9173508aa4 std: Demode arena 2012-09-19 18:14:30 -07:00
Niko Matsakis
ebd3203eaf repair broken map test; it seems that the original test relied on hokey
hash fns in order to setup conflicts.  I just removed those asserts,
so the test is not as good as it once was.
2012-09-19 17:47:13 -07:00
Brian Anderson
7bf0aa1c43 core: More doc cleanup 2012-09-19 17:17:19 -07:00
Niko Matsakis
cfed923600 demode the each() method on vec and other iterables. 2012-09-19 17:03:01 -07:00
Brian Anderson
1c39f1968c std: Clean up crate description 2012-09-19 16:52:59 -07:00
Brian Anderson
c115b82238 core: Clean up crate docs and give all mods a brief description 2012-09-19 16:52:59 -07:00
Graydon Hoare
5e41739562 Remove final bits of residual hokey-hash functions. Close #1616. 2012-09-19 16:35:53 -07:00
Brian Anderson
10e760efc8 rustdoc: Hide impl __extensions__ name in index 2012-09-19 16:10:06 -07:00
Graydon Hoare
1ffd90edbc Remove redundant hashmap constructor functions. 2012-09-19 15:51:44 -07:00
Graydon Hoare
384906c1e8 Remove unused hokey-hashes from typeck and region inference. 2012-09-19 15:51:44 -07:00
Graydon Hoare
bac89eae48 Remove hokey-hashes from metadata indexes. 2012-09-19 15:51:44 -07:00
Brian Anderson
c6ed447221 rustdoc: Begin support for structs 2012-09-19 15:32:43 -07:00
Brian Anderson
bd4365f15b rustdoc: Fix some script-mangled idents 2012-09-19 15:32:33 -07:00
Brian Anderson
afdd8204ea xfail-fast another legacy_mode test 2012-09-19 14:50:21 -07:00
Philipp Brüschweiler
d3e0a06578 V2: now with more locks! 2012-09-19 14:01:53 -07:00
Philipp Brüschweiler
68e755b1c2 core: Allocate threads on demand, not on scheduler startup
API change: rust_kernel::create_scheduler() or
rust_scheduler::rust_scheduler() respecitevly now take ownership of the
launch factory argument, it is needed to create new threads on demand.

Also renames rustrt::sched_threads() to rustrt::rust_sched_threads() for
consistency. Added rustrt::rust_max_sched_threads() to return the
maximal number of scheduled threads of the current scheduler.

Fixes #3493.
2012-09-19 14:01:53 -07:00
Brian Anderson
35a9353774 xfail-fast the legacy_mode run-pass tests 2012-09-19 13:59:58 -07:00
Graydon Hoare
3cb0fcb803 De-export core::comm 2012-09-19 12:05:32 -07:00
Brian Anderson
0c82c00dc4 libsyntax: Remove the restricted keyword concept 2012-09-19 11:44:05 -07:00
Brian Anderson
76f8cfb26c libsyntax: Move 'unsafe' to the strict keywords list 2012-09-19 11:44:05 -07:00
Brian Anderson
0e3daa45e2 Export the correct raw module from core::at_vec 2012-09-19 11:44:04 -07:00
Niko Matsakis
9cf271fe96 De-mode vec::each() and many of the str iteration routines
Note that the method foo.each() is not de-moded, nor the other
vec routines.
2012-09-19 10:52:59 -07:00
Erick Tryzelaar
da568baea9 libcore: unsafe mod renamed to cast 2012-09-19 08:26:53 -07:00
Niko Matsakis
53abb5edbd use && for fn() even in legacy mode to work around mem leak 2012-09-19 06:56:29 -07:00
Niko Matsakis
8d4928f780 Revert "replace explicit calls to vec::each with vec::each_ref, partially demode str"
This reverts commit 1be24f0758.

Not quite ready.
2012-09-18 21:41:13 -07:00
Niko Matsakis
1be24f0758 replace explicit calls to vec::each with vec::each_ref, partially demode str 2012-09-18 21:31:00 -07:00
Brian Anderson
e17a3b3194 cargo: Fix copies 2012-09-18 21:20:14 -07:00
Brian Anderson
2906f2de31 core: Rename 'unsafe' mod to 'cast' 2012-09-18 19:36:25 -07:00
Brian Anderson
a9fea86970 Tweak graph500-bfs so it pretty-prints 2012-09-18 19:25:59 -07:00