Brian Anderson
f4ce965ce7
rt: Port ref counts are protected by the task lock. Ick.
2012-03-02 16:33:33 -08:00
Brian Anderson
3d991bac6c
rustdoc: Whitespace
2012-03-02 16:27:31 -08:00
Brian Anderson
87b9d67b66
rustdoc: Write indexes in output
2012-03-02 16:20:53 -08:00
Brian Anderson
3ed6f6520f
core: Remove _mut functions from vec
...
Instead, use vec::to_mut/from_mut to transform vectors in place as
needed.
2012-03-02 15:49:49 -08:00
Graydon Hoare
47e7a05a28
Add some utf16 routines for OS API interop.
2012-03-02 15:47:40 -08:00
Brian Anderson
14306756b4
rt: Always delete task stacks on the task thread
...
There's not a real race here, but it makes helgrind happy and is arguably
less prone to future errrors.
2012-03-02 15:21:59 -08:00
Brian Anderson
9ec94f714a
etc: Add more lock_and_signal helgrind suppressions
2012-03-02 15:21:48 -08:00
Brian Anderson
3d67939c41
rustdoc: Begin constructing indexes
2012-03-02 15:17:27 -08:00
Brian Anderson
3923c8ee89
etc: Add helgrind suppression for lock_held_by_current_thread
2012-03-02 14:08:02 -08:00
Brian Anderson
a04127d291
test: xfail-fast the cci tests
2012-03-02 13:46:42 -08:00
Brian Anderson
78bfdb11c8
Revert "rust: xfail-fast run-pass/cci_no_inline_exe"
...
This reverts commit 95099cddcf
.
2012-03-02 13:46:02 -08:00
Brian Anderson
09f191f3a7
Revert "test: xfail-fast run-pass/cci_iter.exe"
...
This reverts commit c0a5e21b29
.
2012-03-02 13:45:18 -08:00
Brian Anderson
95099cddcf
rust: xfail-fast run-pass/cci_no_inline_exe
2012-03-02 13:44:40 -08:00
Brian Anderson
c0a5e21b29
test: xfail-fast run-pass/cci_iter.exe
2012-03-02 13:36:11 -08:00
Brian Anderson
fd12459d94
test: xfail-fast run-pass/cci_impl_exe
2012-03-02 13:23:55 -08:00
Brian Anderson
77fc4e7ee7
std: vec::to_ptr -> vec::unsafe::to_ptr
2012-03-02 12:29:40 -08:00
Niko Matsakis
d3a0f7e9fc
emit mthd data if marked inline
2012-03-02 06:47:25 -08:00
Niko Matsakis
6473a87cec
restructure to better support method inlining
2012-03-02 06:47:25 -08:00
Niko Matsakis
def72bda47
retool inline encoding to handle methods, fix tests
2012-03-02 06:47:25 -08:00
Niko Matsakis
12c68bcd6d
make sure we do not bind unique closures (or blocks, for that matter)
2012-03-02 06:47:25 -08:00
Brian Anderson
8478349b8b
rustdoc: Remove some debug logging
2012-03-02 02:12:12 -08:00
Brian Anderson
96f565492d
rt: Make fields of rust_task_thread private where possible
2012-03-01 21:41:11 -08:00
Brian Anderson
b6c57dbba2
rt: rust_task_thread isn't ref counted
2012-03-01 21:19:12 -08:00
Brian Anderson
084a699a7a
rt: Remove vec_append.ll
...
This looks like just a random snippet of llasm.
2012-03-01 18:20:40 -08:00
Brian Anderson
4056082833
rustdoc: Extract markdown header logic. Needed for indexing
2012-03-01 18:13:22 -08:00
Brian Anderson
4991943f4e
rustdoc: Stop having pandoc write the TOC
...
We will generate them ourselves
2012-03-01 17:29:53 -08:00
Brian Anderson
3cd8c57a54
rustdoc: Add index records to the doc tree
2012-03-01 16:34:09 -08:00
Brian Anderson
5df44bd066
rt: Remove rust_kernel::live_tasks. Unused
2012-03-01 14:53:20 -08:00
Brian Anderson
3cec2d6954
rustdoc: Teach rustdoc to run pandoc
2012-03-01 14:21:25 -08:00
Tim Chevalier
48c763c098
Use the correct prestate for calls
...
The prestate for calls was getting set incorrectly to the poststate for the operator
in the call. This worked before since most of the time, operator expressions are
pure. Issue 1895 shows how this breaks when the operator is a closure that has a
move-in capture clause.
(I had a several-day, multi-file patch for this that didn't work... and then it
turned out to be a one-line fix. The joys of programming.)
Closes #1895
2012-03-01 09:16:26 -08:00
Marijn Haverbeke
03984561d4
Make sure resource item types get written by typechecker
...
Closes #1916
2012-03-01 17:50:08 +01:00
Marijn Haverbeke
072b015515
Add test case for #1894
2012-03-01 10:11:28 +01:00
Brian Anderson
1471b1f3ff
std: DeCamelCase fs::splitDirnameBasename
2012-02-29 23:45:51 -08:00
Brian Anderson
9208684e74
rustdoc: Extract markdown_writer from markdown_pass
2012-02-29 23:45:51 -08:00
Brian Anderson
516f87f860
rustdoc: Write markdown to a file instead of stdout
2012-02-29 23:45:51 -08:00
Brian Anderson
ad82a031f2
rustdoc: Use unique types for writing markdown output
...
No shared types allowed.
2012-02-29 23:45:51 -08:00
Brian Anderson
81a0745361
etc: Remove rustdoc script
2012-02-29 23:45:51 -08:00
Brian Anderson
2ac6dbc9ba
rustdoc: Refactor markdown_pass
2012-02-29 23:45:51 -08:00
Niko Matsakis
2dd5b3ace6
optionally enforce local variable mutability
2012-02-29 19:31:15 -08:00
Brian Anderson
99f231f347
core: Change a number of arguments in vec to const vecs
2012-02-29 18:13:29 -08:00
Niko Matsakis
4132cbd22a
un-xfail test, remove old comment
2012-02-29 12:49:15 -08:00
Niko Matsakis
ed952ecf68
report the type of the method as the fty, not the type of the expression
...
using the type of the expression causes us to lose information
about when the method was declaring with a generic signature, which
leads to producing incorrect code, particularly in the case of returning
unit types (which would then get an undefined output ptr)
2012-02-29 11:54:48 -08:00
Niko Matsakis
7d0958f70f
add the ability to snag the frame so we can verify that we are inlining
2012-02-29 11:54:47 -08:00
Erick Tryzelaar
3d104cfb41
Merge pull request #1912 from tychosci/json-newline-after-outer-rparen
...
libstd: Skip trailing whitespaces after outer rparen
2012-02-29 10:53:28 -08:00
Marijn Haverbeke
4be92670a4
Delete-trailing-whitespace
2012-02-29 19:07:23 +01:00
Marijn Haverbeke
c3ae72d60b
Actually use last_use info on closed over var in kind.rs
...
Issue ##1894
2012-02-29 18:53:30 +01:00
Marijn Haverbeke
0da1aca498
Recognize last uses for copied closed-over variables
...
And clean up and fix some bad things in last_use.rs.
Closes #1894
2012-02-29 18:06:26 +01:00
Tycho Sci
ecf87c3180
libstd: Skip trailing whitespaces after JSON value
2012-02-29 17:47:17 +09:00
Tycho Sci
0465d5217d
libstd: Skip trailing whitespaces after outer rparen
...
This makes "{ \"foo\": 1 }\n" and "[ 1 ]\n" valid json string
2012-02-29 16:24:28 +09:00
Brian Anderson
58e2083c0a
rustdoc: Parse command line opts
2012-02-28 21:36:44 -08:00
Brian Anderson
6c9527ab79
rustdoc: Add -h flag
2012-02-28 21:36:44 -08:00
Patrick Walton
362f23641a
libcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829 .
2012-02-28 20:43:39 -08:00
Erick Tryzelaar
d3331bce98
rt: strings should escape chars like '\n' as '\n'
2012-02-28 18:05:25 -08:00
Erick Tryzelaar
012dec5e57
std: rewrite json.rs to fix bugs and use readers/writers
...
Our json implementation did not conform to the spec, and
was missing support for escpaed characters and exponental
numbers. This fixes it, and adds support for reading/writing
json directly from/to a stream.
There are two things left unimplemented. We could use a
"to_json" iface/impl, but that really needs traits to cut
down on code duplication. The other is it wouldn't be that
not that hard to turn this implementation into a event driven
parser like YAJL, but I ran into some type-inference bugs,
so I cut that out. It'd be nice to revisit this in the future
though.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
8cc23aab6d
expose float::pow_with_uint.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
6865df2611
core/std: whitespace fixes.
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
ec51d8fd03
std: Add helpers to simplify making str io::writers
2012-02-28 18:00:50 -08:00
Erick Tryzelaar
b9948baf78
vim: add "to" as a keyword.
2012-02-28 18:00:50 -08:00
Brian Anderson
8d617e638e
rt: Reset the stack boundary after returning from crust functions
2012-02-28 17:56:15 -08:00
Brian Anderson
b9089b5335
std: Ignore uv tests on FreeBSD
2012-02-28 17:56:15 -08:00
Jeff Olson
9831ee3e67
changing rust loop to 1 thread
2012-02-28 17:56:15 -08:00
Jeff Olson
b79b5739c9
add rust_uv_loop_delete to rustrt.def.in
2012-02-28 17:56:15 -08:00
Jeff Olson
b4c88cdcec
add uv::loop_delete()
...
because of the last change, the loop ptr is no longer cleaned up
when the loop exits. This api call addresses that. Sadly, the loop
ptr is not "reusable" across multiple calls to uv::run().
2012-02-28 17:56:15 -08:00
Jeff Olson
0b3a06ab2c
correcting for libuv behavior that differs between linux & windows
...
net complexity increase :/
2012-02-28 17:56:15 -08:00
Jeff Olson
bb5960aa57
moving new uv stuff into uv.rs and rust_uv.cpp
...
- removing the remains of uvtmp.rs and rust_uvtmp.rs
- removing the displaced, low-level libuv bindings
in uv.rs and rust_uv.cpp
2012-02-28 17:56:15 -08:00
Jeff Olson
cf08ed6458
fzzzy's patch for rustrt.def.in
...
adds new c/c++ methods bound in rust for uvtmp::uv
2012-02-28 17:56:15 -08:00
Jeff Olson
828595151c
trailing whitespace fixes
2012-02-28 17:56:15 -08:00
Jeff Olson
1d3e08d8c6
finishing up simple uv_timer impl
...
as it stands, basic async nad timer support is added
2012-02-28 17:56:15 -08:00
Jeff Olson
b68eb507da
cleaning up uv_async stuff and stubbing uv_timer
2012-02-28 17:56:14 -08:00
Jeff Olson
974c23cbeb
removed hello world and added uv_async_*
2012-02-28 17:56:14 -08:00
Jeff Olson
ffad8d7f0c
everything is laid out and working through a basic hw
...
the core impl is there, with a async handle in place
to take incoming operations from user code. No actual
uv handle/operations are implemented yet, though.
2012-02-28 17:56:14 -08:00
Marijn Haverbeke
1ed12f3602
Also do normal impl method lookup for type parameters
...
Closes #1909
2012-02-28 16:37:24 +01:00
Marijn Haverbeke
2115cba4ee
Bail out of calling tydesc glue in an unreachable context
...
Closes #1901
2012-02-28 16:37:24 +01:00
Niko Matsakis
1fd9abaa47
rename aux to auxiliary, since aux is apparently reserved on windows
2012-02-28 06:45:33 -08:00
Niko Matsakis
5c1338a18e
add ability to run multi-crate tests, run tests with --inline
2012-02-28 06:31:29 -08:00
Niko Matsakis
aa77cf3472
enumerate ids for arguments too
2012-02-28 06:31:29 -08:00
Niko Matsakis
e65c39c100
add #[inline] to vec::iter
2012-02-28 06:31:29 -08:00
Niko Matsakis
bceea8339a
change def's that are always local to use node_id, add --inline opt
2012-02-28 06:31:28 -08:00
Niko Matsakis
a1b2f34bd0
remove temp sanity check
2012-02-28 06:31:28 -08:00
Niko Matsakis
55a642c2d4
correct freevar encoding, add more debugging output
2012-02-28 06:31:28 -08:00
Niko Matsakis
8cffc6f84c
add debugging mode which emits more verbose info
2012-02-28 06:31:28 -08:00
Graydon Hoare
324ecb58a7
Add libc module to libcore and utility file to help generate it.
2012-02-27 18:34:42 -08:00
Brian Anderson
61691c2428
std: Make merge_sort faster
2012-02-27 18:32:45 -08:00
Brian Anderson
9e4962a26e
rustdoc: Fix bustage
2012-02-27 18:29:37 -08:00
Brian Anderson
01a1c98d09
rustdoc: Clean up pass names
2012-02-27 18:11:12 -08:00
Brian Anderson
98c31aaaff
rustdoc: Time passes
2012-02-27 18:07:16 -08:00
Brian Anderson
7e9aa6c3c2
rt: Don't zero new stacks
2012-02-27 16:13:51 -08:00
Brian Anderson
b3f77bf927
rt: Change the way the kernel exits to avoid pthread leaks
...
This makes the kernel join every scheduler thread before exiting in order to
ensure that all threads are completely terminated before the process exits. On
my machine, for 32-bit targets, this was causing regular valgrind errors.
2012-02-27 14:25:32 -08:00
Brian Anderson
e4c027446e
Revert "rt: Reconfigure the C stack for valgrind each time it's used"
...
This reverts commit 859e025652
.
This ended up not fixing the '0 bytes lost' problem and has some performance
impact.
2012-02-27 14:01:36 -08:00
Brian Anderson
8fdb213eb2
rustdoc: Optimize some closures to avoid copying
2012-02-26 23:49:37 -08:00
Brian Anderson
3bfa457039
rustdoc: Rename util mod to par
2012-02-26 23:10:12 -08:00
Brian Anderson
c15127fe3e
rustdoc: Do all maps as util::anymap
2012-02-26 23:07:03 -08:00
Brian Anderson
a11638f0d9
rustdoc: Remove some unused exports
2012-02-26 22:58:53 -08:00
Brian Anderson
0f054dfaee
rustdoc: Add parallel folds for native mods
2012-02-26 22:58:24 -08:00
Brian Anderson
ac34cf96ad
rustdoc: Use default_any_fold in some tests
2012-02-26 22:55:05 -08:00
Brian Anderson
59d6ec8bd9
rustdoc: Refactor some of the map code
2012-02-26 22:43:08 -08:00
Brian Anderson
4675f86084
rustdoc: Do less copying in util::parmap
2012-02-26 22:08:52 -08:00
Brian Anderson
222cfbec64
rustdoc: Add command line option parsing and a config record
2012-02-26 18:15:10 -08:00
Brian Anderson
21650d0212
rt: Remove unused forward declaration of rust_realloc_shared
2012-02-26 16:43:42 -08:00
Brian Anderson
7d1e36a315
rt: Remove ptr_vec. Unused
2012-02-26 16:24:37 -08:00
Brian Anderson
4d03e4b711
rt: Remove smart_ptr. Unused
2012-02-26 16:23:37 -08:00
Tim Chevalier
c28c258f91
Disallow type parameters in the main() function
...
Closes #1900
2012-02-25 11:06:01 -08:00
Niko Matsakis
13781f3d8d
retool serializer to be built by stage0 rustc
2012-02-24 21:14:34 -08:00
Niko Matsakis
274c9708f0
Test for #1374
2012-02-24 21:14:31 -08:00
Niko Matsakis
5ee89f3f2a
add an option to the final cc so that it prints out/logs unreclaimed ptrs
2012-02-24 20:46:27 -08:00
Niko Matsakis
acb129c541
Add temp cleanups for copy/move mode args when other args fail. Fixes #1374
2012-02-24 20:46:27 -08:00
Niko Matsakis
f3ca50c9ca
Encode/decode AST into metadata, re-instantiate inlined items
2012-02-24 20:46:27 -08:00
Niko Matsakis
be9914625b
allow snapshot to be specified in make command line
2012-02-24 20:46:27 -08:00
Jesse Ruderman
8e4c5d2d4d
Start next_id at 1 to make the compiler happy
2012-02-24 20:25:54 -08:00
Jesse Ruderman
e5521aa03e
AST fuzzer: remove ignores for fixed issues; update issue URLs
2012-02-24 19:52:56 -08:00
Jesse Ruderman
f455dc1976
Improve the cycle-collector fuzzer
2012-02-24 19:26:42 -08:00
Graydon Hoare
c00a7b08eb
Register new snapshots.
2012-02-24 18:43:22 -08:00
Brian Anderson
16d290d10c
rustdoc: Reexport native functions
2012-02-24 15:59:34 -08:00
Brian Anderson
396540f19d
rustdoc: Don't prune reexports
2012-02-24 15:43:57 -08:00
Brian Anderson
9b009ea23d
rustdoc: Fix some remaining bugs around native mods
2012-02-24 15:22:57 -08:00
Brian Anderson
6e31983179
rustdoc: Sort native mods
2012-02-24 15:15:27 -08:00
Brian Anderson
5a86313387
rustdoc: Write markdown for native mods and fns
2012-02-24 15:07:08 -08:00
Brian Anderson
16010058a6
rustdoc: Add types for native functions
2012-02-24 15:06:58 -08:00
Brian Anderson
2576a3c2c9
rustdoc: Extract attribute docs from native stuffs
2012-02-24 14:22:13 -08:00
Brian Anderson
f053f06973
rustdoc: Record paths to native functions
2012-02-24 14:08:47 -08:00
Brian Anderson
681e5beac4
rustdoc: Remove a pointer that's no longer needed
2012-02-24 13:53:28 -08:00
Brian Anderson
fdea1c414c
rustdoc: Extract doc nodes for native mods
2012-02-24 13:50:40 -08:00
Brian Anderson
ba173d8409
rustdoc: Add doc node for native mods
2012-02-24 13:34:35 -08:00
Brian Anderson
155a67eae7
Revert "rt: Cut the red zone to 10K on mac"
...
This reverts commit cb7022cfc2
.
2012-02-24 12:26:06 -08:00
Brian Anderson
9982a2a841
rustc: Don't add duplicate entries to exp_map
2012-02-23 21:52:41 -08:00
Brian Anderson
cb7022cfc2
rt: Cut the red zone to 10K on mac
2012-02-23 19:42:59 -08:00
Graydon Hoare
b44be95e45
Support basic, unsophisticated, somewhat wrong export-globs.
2012-02-23 18:39:14 -08:00
Graydon Hoare
5f4dcb0fa4
Fix comment, add test that export glob works as import glob in scope.
2012-02-23 18:39:13 -08:00
Graydon Hoare
1f4a6bb3ad
Treat export-globs as import-globs for sake of linking.
2012-02-23 18:39:12 -08:00
Graydon Hoare
893bbea576
Minor renaming to help my comprehension.
2012-02-23 18:39:11 -08:00
Brian Anderson
050b8bfdf8
Revert "etc: Add helgrind suppression for lock_held_by_current_thread"
...
This reverts commit d44ca0923a
.
2012-02-23 18:27:40 -08:00
Brian Anderson
710258cc76
rustdoc: Make reexports work in the crate module
2012-02-23 18:06:43 -08:00
Brian Anderson
d44ca0923a
etc: Add helgrind suppression for lock_held_by_current_thread
...
I have some confidence that this function is correct now, but helgrind still
doesn't like it because it's not lock-protected.
2012-02-23 17:29:06 -08:00
Marijn Haverbeke
8733386bcc
Make sure fold_ty preserves associated def_ids
...
Closes #1884
2012-02-23 17:44:03 +01:00
Marijn Haverbeke
0f00d9a797
Adjust fuzzer and cargo to changes in core::str API
2012-02-23 17:11:21 +01:00
Marijn Haverbeke
780f8277f4
Finish cleanup of core::str
...
Closes #1849
2012-02-23 17:00:19 +01:00
Marijn Haverbeke
1d2b4b97ed
Optimize str::replace
2012-02-23 17:00:19 +01:00
Marijn Haverbeke
d802c1fbd2
Various cleanups and optimizations in core::str
2012-02-23 17:00:19 +01:00
Marijn Haverbeke
35e9192762
Make str::pop_char and str::unsafe::pop_byte efficient
...
O(1) rather than O(string len)
2012-02-23 17:00:19 +01:00
Kevin Cantu
c2984b46b4
(core::str) comments
2012-02-23 17:00:19 +01:00
Kevin Cantu
961b6446b6
(core::str) rename ++
2012-02-23 17:00:19 +01:00
Kevin Cantu
c3318f29fe
(core::str) rename substr_len_bytes to substr_len, and delete unused byte_index[_from]
2012-02-23 17:00:19 +01:00
Kevin Cantu
7782f5d692
(core::str) remove len_bytes alias
2012-02-23 17:00:19 +01:00
Kevin Cantu
1b957c0942
(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes with find[_from]
2012-02-23 17:00:19 +01:00
Kevin Cantu
cec053487c
(core::str) stop using index_chars
2012-02-23 17:00:19 +01:00
Kevin Cantu
6ea3d7935e
(core::str) replace byte_index[_from] with index[_from]
2012-02-23 17:00:19 +01:00
Kevin Cantu
280633a728
(core::str) do some replacements
2012-02-23 17:00:19 +01:00
Kevin Cantu
2756a61e34
(core::str) add index, index_from, rindex which return byte positions of chars; rename find to find_chars; add fixmes to delete byte_index, byte_index_from
2012-02-23 17:00:19 +01:00
Kevin Cantu
e1d04e0062
(core::str) add a safe byte slice and maybe_slice ++
2012-02-23 17:00:19 +01:00
Kevin Cantu
7c78b7dfed
(core::str) add a safe byte slice and maybe_slice
2012-02-23 17:00:19 +01:00
Kevin Cantu
454b53a7c2
(core::char) rename slice -> slice_chars
2012-02-23 17:00:19 +01:00
Kevin Cantu
1cd5a0945a
(core::str) rename rindex -> rindex_chars
2012-02-23 17:00:19 +01:00
Kevin Cantu
969fdf419c
(core::str) rename index -> index_chars
2012-02-23 17:00:19 +01:00
Kevin Cantu
8ea96169ff
(core::str) make len an alias for len_bytes ++
2012-02-23 17:00:19 +01:00
Kevin Cantu
669ff690fd
(core::str) make len an alias for len_bytes
2012-02-23 17:00:19 +01:00
Kevin Cantu
98447f5236
(core::str) mostly rename len -> len_chars
2012-02-23 17:00:19 +01:00
Brian Anderson
7a6498668f
rt: Cut the red zone to 2K on linux
2012-02-23 00:23:22 -08:00
Brian Anderson
cd381333b9
rt: Cut the red zone to 4K on linux
2012-02-22 23:50:47 -08:00
Brian Anderson
b5c7997ef5
rt: Switch to the C stack in reset_stack_limit
2012-02-22 23:50:47 -08:00
Brian Anderson
c16bfbe0c3
rt: Stop logging on the Rust stack. Closes #1478
2012-02-22 22:30:21 -08:00
Brian Anderson
27ab663845
rustc: Don't ignore attributes inside empty mods. Closes #1655
2012-02-22 21:47:23 -08:00
Brian Anderson
ffa77dd610
test: Add a test for #1696
2012-02-22 21:17:19 -08:00
Brian Anderson
ae23ee28e2
test: Add a test for #1697
2012-02-22 21:14:27 -08:00
Brian Anderson
99a48660d1
rustc: Allow any integral types on rhs of shift ops
2012-02-22 17:26:08 -08:00
Tim Chevalier
4acfcd8c2f
Improve error message for use of a non-pure-fn in a pred
...
Closes #1883
2012-02-22 10:59:52 -08:00
Marijn Haverbeke
cb2f43cbf4
Stop normalizing patterns
...
The check for whether a pat_ident is a variant or a binding
is simple and fast. Normalizing patterns again and again is
slow and error-prone (several places were forgetting to do it).
2012-02-22 16:57:23 +01:00
Marijn Haverbeke
a3b655f8e3
Fix uint/u64 confusion
...
Causes a failure on 32-bit platforms
2012-02-22 13:44:55 +01:00
Marijn Haverbeke
1e5266260a
Take move captures in account in mutability checker
...
Closes #1461
2012-02-22 13:35:17 +01:00
Marijn Haverbeke
8015e6d52b
Return a new type var instead of nil when failing to typecheck a field
...
The previous solution was usually causing a second spurious error
message.
2012-02-22 13:34:43 +01:00
Marijn Haverbeke
ffd50b9cdf
Make the various from_str functions return options
...
So that they can be used with user input without causing task
failures.
Closes #1335
2012-02-22 13:18:15 +01:00
Marijn Haverbeke
72373438d2
Add core::to_str module
...
Provides a central iface for the various stringification
functions.
2012-02-22 13:06:38 +01:00
Marijn Haverbeke
ad03761a97
Remove preconditions from libraries
...
Closes #1805
2012-02-22 11:47:47 +01:00
Marijn Haverbeke
e57b6775c3
Clean up small things in syntax submodules
2012-02-22 11:16:25 +01:00
Brian Anderson
40cd1a7c45
rustdoc: Turn off parallel folding until I figure out what's wrong on OS X
2012-02-21 16:15:14 -08:00
Brian Anderson
8b071ebe4c
rustdoc: Make it easy to switch between parallel and sequential folds
2012-02-21 16:14:02 -08:00
Brian Anderson
1ee139ae1f
rustdoc: Convert most passes to parallel folds
2012-02-21 16:14:02 -08:00
Brian Anderson
d4f57620ae
rustdoc: Implement a parallel fold
2012-02-21 16:14:02 -08:00
Brian Anderson
7599d2dd51
rustdoc: Implement astsrv in a dedicated task
...
This allows the srv type to be sendable so we can parallelize
all the rustdoc passes
2012-02-21 16:14:02 -08:00
Brian Anderson
96e3031675
rustdoc: Convert the astsrv constructor to a higher order fn
...
This will allow it to manage the destruction of the astsrv after
I convert it to a task
2012-02-21 16:14:02 -08:00
Brian Anderson
d6095dc6b5
rustdoc: Rename mk_srv_from_str/file to just from_str/file
2012-02-21 16:14:02 -08:00
Brian Anderson
77a01054fa
rustc: Generate crates with #ast
2012-02-21 15:34:26 -08:00
Brian Anderson
a896eb326e
core: Fix unused variable warning
2012-02-21 14:25:51 -08:00
Brian Anderson
6527fc3925
core: Fix to_str_exact for floats with no decimal component
2012-02-21 14:25:31 -08:00
Brian Anderson
910a32c7c7
core: Add option::unwrap
...
This function uses some unsafe code to move the value out of an option.
2012-02-21 13:55:50 -08:00
Marijn Haverbeke
9d20ed7bf9
Clean up unification code
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
ff927f18f5
Clean up some FIXMEs in middle:: modules
...
Rename all TODOs to FIXMEs
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
92a45f5582
Move trans::type_of code into its own file
...
Slowly shrinking base.rs
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
d85d4f55f7
Include @ in crate_ctxt and fn_ctxt type definitions
...
So that code using them doesn't have to spell it out constantly.
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
b1d7f252a9
Remove unused tydesc argument to upcall_shared_malloc
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
389aff333d
Make the cleanup tag in resource types a u8
...
Closes #1184
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
5458da0fd9
Remove some checks and associated FIXMEs from trans code
...
Such intentions are better tracked in the bug tracker, don't need
to litter the code with repetetive comments.
2012-02-21 17:08:14 +01:00
Marijn Haverbeke
789a1ae356
Clean up a number of TODOs in the trans modules
...
Rename the ones that I didn't handle to FIXME
2012-02-21 14:20:18 +01:00
Brian Anderson
9691ce18a2
core: Resolve a FIXME in str module
2012-02-21 01:03:13 -08:00
Brian Anderson
4601810747
core: Remove a useless test from option mod
2012-02-20 22:43:33 -08:00
Tim Chevalier
4cd3d4ab1e
More work on typechecking classes
...
classes-simple doesn't fail until trans now!
2012-02-20 22:26:19 -08:00
Brian Anderson
4220dcf1e9
core: New task API
2012-02-20 18:58:04 -08:00
Tim Chevalier
fbc95ba018
Re-XFAIL test that I accidentally
2012-02-20 17:33:35 -08:00
Tim Chevalier
cd9579e079
fix whitespace again
2012-02-20 17:21:33 -08:00
Tim Chevalier
ac7aa73b3e
Oops, my whitespace is showing
2012-02-20 17:19:09 -08:00
Tim Chevalier
2299d204e4
Further work on resolving and typechecking classes
...
Class tests aren't working yet, but they fail a little later :-)
Also, make the parser correctly set a constructor's result type to
its enclosing class type.
2012-02-20 17:16:52 -08:00