Commit Graph

8556 Commits

Author SHA1 Message Date
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
Graydon Hoare
cccb0fbf72 Un-silence one too many greps. 2012-02-28 22:39:46 -08:00
Graydon Hoare
8c337026b5 configure: correct submodule code, only reconfigure LLVM when changed. 2012-02-28 22:39:45 -08:00
Graydon Hoare
341f414220 configure: quiet some greps. 2012-02-28 22:39:44 -08:00
Graydon Hoare
1c14d36e72 configure: chmod the right artifact and cp / mv with -f to overwrite. 2012-02-28 22:39:43 -08: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
1114c7a281 Add Jeff Olson to AUTHORS.txt 2012-02-28 17:56:15 -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
d461637cc5 missing build file update for parent commit 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
Graydon Hoare
418c6bcec3 Only modify Makefile and config.mk if they change during configure. 2012-02-28 12:08:26 -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