]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoconfigure: quiet some greps.
Graydon Hoare [Wed, 29 Feb 2012 02:42:28 +0000 (18:42 -0800)]
configure: quiet some greps.

12 years agoconfigure: chmod the right artifact and cp / mv with -f to overwrite.
Graydon Hoare [Wed, 29 Feb 2012 02:41:54 +0000 (18:41 -0800)]
configure: chmod the right artifact and cp / mv with -f to overwrite.

12 years agorustdoc: Parse command line opts
Brian Anderson [Wed, 29 Feb 2012 05:31:55 +0000 (21:31 -0800)]
rustdoc: Parse command line opts

12 years agorustdoc: Add -h flag
Brian Anderson [Wed, 29 Feb 2012 05:27:38 +0000 (21:27 -0800)]
rustdoc: Add -h flag

12 years agolibcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829.
Patrick Walton [Wed, 29 Feb 2012 04:43:39 +0000 (20:43 -0800)]
libcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829.

12 years agort: strings should escape chars like '\n' as '\n'
Erick Tryzelaar [Wed, 29 Feb 2012 02:05:04 +0000 (18:05 -0800)]
rt: strings should escape chars like '\n' as '\n'

12 years agostd: rewrite json.rs to fix bugs and use readers/writers
Erick Tryzelaar [Sun, 26 Feb 2012 00:39:32 +0000 (16:39 -0800)]
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.

12 years agoexpose float::pow_with_uint.
Erick Tryzelaar [Fri, 24 Feb 2012 08:07:05 +0000 (00:07 -0800)]
expose float::pow_with_uint.

12 years agocore/std: whitespace fixes.
Erick Tryzelaar [Tue, 21 Feb 2012 17:23:01 +0000 (09:23 -0800)]
core/std: whitespace fixes.

12 years agostd: Add helpers to simplify making str io::writers
Erick Tryzelaar [Tue, 21 Feb 2012 17:22:50 +0000 (09:22 -0800)]
std: Add helpers to simplify making str io::writers

12 years agovim: add "to" as a keyword.
Erick Tryzelaar [Tue, 21 Feb 2012 15:31:01 +0000 (07:31 -0800)]
vim: add "to" as a keyword.

12 years agoAdd Jeff Olson to AUTHORS.txt
Brian Anderson [Wed, 29 Feb 2012 01:55:48 +0000 (17:55 -0800)]
Add Jeff Olson to AUTHORS.txt

12 years agort: Reset the stack boundary after returning from crust functions
Brian Anderson [Wed, 29 Feb 2012 00:57:22 +0000 (16:57 -0800)]
rt: Reset the stack boundary after returning from crust functions

12 years agostd: Ignore uv tests on FreeBSD
Brian Anderson [Tue, 28 Feb 2012 21:56:48 +0000 (13:56 -0800)]
std: Ignore uv tests on FreeBSD

12 years agochanging rust loop to 1 thread
Jeff Olson [Sun, 26 Feb 2012 20:11:30 +0000 (12:11 -0800)]
changing rust loop to 1 thread

12 years agoadd rust_uv_loop_delete to rustrt.def.in
Jeff Olson [Sun, 26 Feb 2012 06:29:18 +0000 (22:29 -0800)]
add rust_uv_loop_delete to rustrt.def.in

12 years agoadd uv::loop_delete()
Jeff Olson [Sun, 26 Feb 2012 06:08:52 +0000 (22:08 -0800)]
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().

12 years agocorrecting for libuv behavior that differs between linux & windows
Jeff Olson [Sat, 25 Feb 2012 01:43:31 +0000 (17:43 -0800)]
correcting for libuv behavior that differs between linux & windows

net complexity increase :/

12 years agomissing build file update for parent commit
Jeff Olson [Wed, 22 Feb 2012 22:15:39 +0000 (14:15 -0800)]
missing build file update for parent commit

12 years agomoving new uv stuff into uv.rs and rust_uv.cpp
Jeff Olson [Wed, 22 Feb 2012 22:00:34 +0000 (14:00 -0800)]
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

12 years agofzzzy's patch for rustrt.def.in
Jeff Olson [Wed, 22 Feb 2012 20:10:33 +0000 (12:10 -0800)]
fzzzy's patch for rustrt.def.in

adds new c/c++ methods bound in rust for uvtmp::uv

12 years agotrailing whitespace fixes
Jeff Olson [Wed, 22 Feb 2012 19:33:01 +0000 (11:33 -0800)]
trailing whitespace fixes

12 years agofinishing up simple uv_timer impl
Jeff Olson [Tue, 21 Feb 2012 19:29:36 +0000 (11:29 -0800)]
finishing up simple uv_timer impl

as it stands, basic async nad timer support is added

12 years agocleaning up uv_async stuff and stubbing uv_timer
Jeff Olson [Tue, 21 Feb 2012 15:56:27 +0000 (07:56 -0800)]
cleaning up uv_async stuff and stubbing uv_timer

12 years agoremoved hello world and added uv_async_*
Jeff Olson [Sat, 18 Feb 2012 07:11:02 +0000 (23:11 -0800)]
removed hello world and added uv_async_*

12 years agoeverything is laid out and working through a basic hw
Jeff Olson [Sat, 18 Feb 2012 00:33:56 +0000 (16:33 -0800)]
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.

12 years agoOnly modify Makefile and config.mk if they change during configure.
Graydon Hoare [Tue, 28 Feb 2012 20:05:05 +0000 (12:05 -0800)]
Only modify Makefile and config.mk if they change during configure.

12 years agoAlso do normal impl method lookup for type parameters
Marijn Haverbeke [Tue, 28 Feb 2012 15:36:58 +0000 (16:36 +0100)]
Also do normal impl method lookup for type parameters

Closes #1909

12 years agoBail out of calling tydesc glue in an unreachable context
Marijn Haverbeke [Tue, 28 Feb 2012 09:38:02 +0000 (10:38 +0100)]
Bail out of calling tydesc glue in an unreachable context

Closes #1901

12 years agorename aux to auxiliary, since aux is apparently reserved on windows
Niko Matsakis [Tue, 28 Feb 2012 14:45:33 +0000 (06:45 -0800)]
rename aux to auxiliary, since aux is apparently reserved on windows

12 years agoadd ability to run multi-crate tests, run tests with --inline
Niko Matsakis [Tue, 28 Feb 2012 05:23:49 +0000 (21:23 -0800)]
add ability to run multi-crate tests, run tests with --inline

12 years agoenumerate ids for arguments too
Niko Matsakis [Tue, 28 Feb 2012 04:10:05 +0000 (20:10 -0800)]
enumerate ids for arguments too

12 years agoadd #[inline] to vec::iter
Niko Matsakis [Tue, 28 Feb 2012 01:35:00 +0000 (17:35 -0800)]
add #[inline] to vec::iter

12 years agochange def's that are always local to use node_id, add --inline opt
Niko Matsakis [Tue, 28 Feb 2012 00:05:17 +0000 (16:05 -0800)]
change def's that are always local to use node_id, add --inline opt

12 years agoremove temp sanity check
Niko Matsakis [Mon, 27 Feb 2012 22:07:13 +0000 (14:07 -0800)]
remove temp sanity check

12 years agocorrect freevar encoding, add more debugging output
Niko Matsakis [Mon, 27 Feb 2012 22:06:44 +0000 (14:06 -0800)]
correct freevar encoding, add more debugging output

12 years agoadd debugging mode which emits more verbose info
Niko Matsakis [Mon, 27 Feb 2012 22:05:19 +0000 (14:05 -0800)]
add debugging mode which emits more verbose info

12 years agoAdd libc module to libcore and utility file to help generate it.
Graydon Hoare [Tue, 28 Feb 2012 01:22:42 +0000 (17:22 -0800)]
Add libc module to libcore and utility file to help generate it.

12 years agostd: Make merge_sort faster
Brian Anderson [Tue, 28 Feb 2012 02:32:45 +0000 (18:32 -0800)]
std: Make merge_sort faster

12 years agorustdoc: Fix bustage
Brian Anderson [Tue, 28 Feb 2012 02:29:37 +0000 (18:29 -0800)]
rustdoc: Fix bustage

12 years agorustdoc: Clean up pass names
Brian Anderson [Tue, 28 Feb 2012 02:11:12 +0000 (18:11 -0800)]
rustdoc: Clean up pass names

12 years agorustdoc: Time passes
Brian Anderson [Tue, 28 Feb 2012 02:07:16 +0000 (18:07 -0800)]
rustdoc: Time passes

12 years agort: Don't zero new stacks
Brian Anderson [Mon, 27 Feb 2012 23:42:22 +0000 (15:42 -0800)]
rt: Don't zero new stacks

12 years agort: Change the way the kernel exits to avoid pthread leaks
Brian Anderson [Mon, 27 Feb 2012 21:36:54 +0000 (13:36 -0800)]
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.

12 years agoRevert "rt: Reconfigure the C stack for valgrind each time it's used"
Brian Anderson [Mon, 27 Feb 2012 22:01:36 +0000 (14:01 -0800)]
Revert "rt: Reconfigure the C stack for valgrind each time it's used"

This reverts commit 859e0256524a1f19ca0c79f518d2bb396355f174.

This ended up not fixing the '0 bytes lost' problem and has some performance
impact.

12 years agorustdoc: Optimize some closures to avoid copying
Brian Anderson [Mon, 27 Feb 2012 07:47:27 +0000 (23:47 -0800)]
rustdoc: Optimize some closures to avoid copying

12 years agorustdoc: Rename util mod to par
Brian Anderson [Mon, 27 Feb 2012 07:10:12 +0000 (23:10 -0800)]
rustdoc: Rename util mod to par

12 years agorustdoc: Do all maps as util::anymap
Brian Anderson [Mon, 27 Feb 2012 07:07:03 +0000 (23:07 -0800)]
rustdoc: Do all maps as util::anymap

12 years agorustdoc: Remove some unused exports
Brian Anderson [Mon, 27 Feb 2012 06:58:53 +0000 (22:58 -0800)]
rustdoc: Remove some unused exports

12 years agorustdoc: Add parallel folds for native mods
Brian Anderson [Mon, 27 Feb 2012 06:58:24 +0000 (22:58 -0800)]
rustdoc: Add parallel folds for native mods

12 years agorustdoc: Use default_any_fold in some tests
Brian Anderson [Mon, 27 Feb 2012 06:55:05 +0000 (22:55 -0800)]
rustdoc: Use default_any_fold in some tests

12 years agorustdoc: Refactor some of the map code
Brian Anderson [Mon, 27 Feb 2012 06:38:35 +0000 (22:38 -0800)]
rustdoc: Refactor some of the map code

12 years agorustdoc: Do less copying in util::parmap
Brian Anderson [Mon, 27 Feb 2012 06:08:41 +0000 (22:08 -0800)]
rustdoc: Do less copying in util::parmap

12 years agorustdoc: Add command line option parsing and a config record
Brian Anderson [Mon, 27 Feb 2012 00:32:57 +0000 (16:32 -0800)]
rustdoc: Add command line option parsing and a config record

12 years agort: Remove unused forward declaration of rust_realloc_shared
Brian Anderson [Mon, 27 Feb 2012 00:43:42 +0000 (16:43 -0800)]
rt: Remove unused forward declaration of rust_realloc_shared

12 years agort: Remove ptr_vec. Unused
Brian Anderson [Mon, 27 Feb 2012 00:24:37 +0000 (16:24 -0800)]
rt: Remove ptr_vec. Unused

12 years agort: Remove smart_ptr. Unused
Brian Anderson [Mon, 27 Feb 2012 00:23:37 +0000 (16:23 -0800)]
rt: Remove smart_ptr. Unused

12 years agoDisallow type parameters in the main() function
Tim Chevalier [Sat, 25 Feb 2012 19:06:01 +0000 (11:06 -0800)]
Disallow type parameters in the main() function

Closes #1900

12 years agoretool serializer to be built by stage0 rustc
Niko Matsakis [Sat, 25 Feb 2012 04:02:52 +0000 (20:02 -0800)]
retool serializer to be built by stage0 rustc

12 years agoTest for #1374
Niko Matsakis [Sat, 25 Feb 2012 01:46:13 +0000 (17:46 -0800)]
Test for #1374

12 years agoadd an option to the final cc so that it prints out/logs unreclaimed ptrs
Niko Matsakis [Fri, 24 Feb 2012 19:03:23 +0000 (11:03 -0800)]
add an option to the final cc so that it prints out/logs unreclaimed ptrs

12 years agoAdd temp cleanups for copy/move mode args when other args fail. Fixes #1374
Niko Matsakis [Sat, 25 Feb 2012 01:45:16 +0000 (17:45 -0800)]
Add temp cleanups for copy/move mode args when other args fail. Fixes #1374

12 years agoEncode/decode AST into metadata, re-instantiate inlined items
Niko Matsakis [Tue, 14 Feb 2012 23:21:53 +0000 (15:21 -0800)]
Encode/decode AST into metadata, re-instantiate inlined items

12 years agoallow snapshot to be specified in make command line
Niko Matsakis [Fri, 10 Feb 2012 01:58:09 +0000 (17:58 -0800)]
allow snapshot to be specified in make command line

12 years agoStart next_id at 1 to make the compiler happy
Jesse Ruderman [Sat, 25 Feb 2012 04:25:54 +0000 (20:25 -0800)]
Start next_id at 1 to make the compiler happy

12 years agoAST fuzzer: remove ignores for fixed issues; update issue URLs
Jesse Ruderman [Sat, 25 Feb 2012 03:52:56 +0000 (19:52 -0800)]
AST fuzzer: remove ignores for fixed issues; update issue URLs

12 years agoImprove the cycle-collector fuzzer
Jesse Ruderman [Sat, 25 Feb 2012 03:26:42 +0000 (19:26 -0800)]
Improve the cycle-collector fuzzer

12 years agoRegister new snapshots.
Graydon Hoare [Sat, 25 Feb 2012 02:43:22 +0000 (18:43 -0800)]
Register new snapshots.

12 years agoCorrect install.mk to use CFG_LIBDIR for correct install paths on windows.
Graydon Hoare [Sat, 25 Feb 2012 02:29:44 +0000 (18:29 -0800)]
Correct install.mk to use CFG_LIBDIR for correct install paths on windows.

12 years agorustdoc: Reexport native functions
Brian Anderson [Fri, 24 Feb 2012 23:59:34 +0000 (15:59 -0800)]
rustdoc: Reexport native functions

12 years agorustdoc: Don't prune reexports
Brian Anderson [Fri, 24 Feb 2012 23:43:57 +0000 (15:43 -0800)]
rustdoc: Don't prune reexports

12 years agorustdoc: Fix some remaining bugs around native mods
Brian Anderson [Fri, 24 Feb 2012 23:22:57 +0000 (15:22 -0800)]
rustdoc: Fix some remaining bugs around native mods

12 years agorustdoc: Sort native mods
Brian Anderson [Fri, 24 Feb 2012 23:15:27 +0000 (15:15 -0800)]
rustdoc: Sort native mods

12 years agorustdoc: Write markdown for native mods and fns
Brian Anderson [Fri, 24 Feb 2012 23:07:08 +0000 (15:07 -0800)]
rustdoc: Write markdown for native mods and fns

12 years agorustdoc: Add types for native functions
Brian Anderson [Fri, 24 Feb 2012 23:06:58 +0000 (15:06 -0800)]
rustdoc: Add types for native functions

12 years agorustdoc: Extract attribute docs from native stuffs
Brian Anderson [Fri, 24 Feb 2012 22:22:13 +0000 (14:22 -0800)]
rustdoc: Extract attribute docs from native stuffs

12 years agorustdoc: Record paths to native functions
Brian Anderson [Fri, 24 Feb 2012 22:08:47 +0000 (14:08 -0800)]
rustdoc: Record paths to native functions

12 years agorustdoc: Remove a pointer that's no longer needed
Brian Anderson [Fri, 24 Feb 2012 21:53:28 +0000 (13:53 -0800)]
rustdoc: Remove a pointer that's no longer needed

12 years agorustdoc: Extract doc nodes for native mods
Brian Anderson [Fri, 24 Feb 2012 21:50:40 +0000 (13:50 -0800)]
rustdoc: Extract doc nodes for native mods

12 years agorustdoc: Add doc node for native mods
Brian Anderson [Fri, 24 Feb 2012 21:34:35 +0000 (13:34 -0800)]
rustdoc: Add doc node for native mods

12 years agoRevert "rt: Cut the red zone to 10K on mac"
Brian Anderson [Fri, 24 Feb 2012 20:26:06 +0000 (12:26 -0800)]
Revert "rt: Cut the red zone to 10K on mac"

This reverts commit cb7022cfc20b89947ff3fa96d4617f9fe64d2f3e.

12 years agorustc: Don't add duplicate entries to exp_map
Brian Anderson [Fri, 24 Feb 2012 05:06:12 +0000 (21:06 -0800)]
rustc: Don't add duplicate entries to exp_map

12 years agort: Cut the red zone to 10K on mac
Brian Anderson [Fri, 24 Feb 2012 03:42:59 +0000 (19:42 -0800)]
rt: Cut the red zone to 10K on mac

12 years agoSupport basic, unsophisticated, somewhat wrong export-globs.
Graydon Hoare [Fri, 24 Feb 2012 02:32:37 +0000 (18:32 -0800)]
Support basic, unsophisticated, somewhat wrong export-globs.

12 years agoFix comment, add test that export glob works as import glob in scope.
Graydon Hoare [Wed, 22 Feb 2012 00:09:44 +0000 (16:09 -0800)]
Fix comment, add test that export glob works as import glob in scope.

12 years agoTreat export-globs as import-globs for sake of linking.
Graydon Hoare [Tue, 21 Feb 2012 23:36:15 +0000 (15:36 -0800)]
Treat export-globs as import-globs for sake of linking.

12 years agoMinor renaming to help my comprehension.
Graydon Hoare [Mon, 20 Feb 2012 23:16:42 +0000 (15:16 -0800)]
Minor renaming to help my comprehension.

12 years agoRevert "etc: Add helgrind suppression for lock_held_by_current_thread"
Brian Anderson [Fri, 24 Feb 2012 02:27:40 +0000 (18:27 -0800)]
Revert "etc: Add helgrind suppression for lock_held_by_current_thread"

This reverts commit d44ca0923a5545113c96a8953f880090f334872c.

12 years agorustdoc: Make reexports work in the crate module
Brian Anderson [Fri, 24 Feb 2012 02:06:26 +0000 (18:06 -0800)]
rustdoc: Make reexports work in the crate module

12 years agoetc: Add helgrind suppression for lock_held_by_current_thread
Brian Anderson [Fri, 24 Feb 2012 01:29:01 +0000 (17:29 -0800)]
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.

12 years agoMake sure fold_ty preserves associated def_ids
Marijn Haverbeke [Thu, 23 Feb 2012 16:44:03 +0000 (17:44 +0100)]
Make sure fold_ty preserves associated def_ids

Closes #1884

12 years agoAdjust fuzzer and cargo to changes in core::str API
Marijn Haverbeke [Thu, 23 Feb 2012 16:11:21 +0000 (17:11 +0100)]
Adjust fuzzer and cargo to changes in core::str API

12 years agoFinish cleanup of core::str
Marijn Haverbeke [Thu, 23 Feb 2012 15:59:30 +0000 (16:59 +0100)]
Finish cleanup of core::str

Closes #1849

12 years agoOptimize str::replace
Marijn Haverbeke [Thu, 23 Feb 2012 13:59:27 +0000 (14:59 +0100)]
Optimize str::replace

12 years agoVarious cleanups and optimizations in core::str
Marijn Haverbeke [Thu, 23 Feb 2012 12:41:10 +0000 (13:41 +0100)]
Various cleanups and optimizations in core::str

12 years agoMake str::pop_char and str::unsafe::pop_byte efficient
Marijn Haverbeke [Thu, 23 Feb 2012 09:12:20 +0000 (10:12 +0100)]
Make str::pop_char and str::unsafe::pop_byte efficient

O(1) rather than O(string len)

12 years ago(core::str) comments
Kevin Cantu [Thu, 23 Feb 2012 10:03:37 +0000 (02:03 -0800)]
(core::str) comments

12 years ago(core::str) rename ++
Kevin Cantu [Thu, 23 Feb 2012 09:53:32 +0000 (01:53 -0800)]
(core::str) rename ++

12 years ago(core::str) rename substr_len_bytes to substr_len, and delete unused byte_index[_from]
Kevin Cantu [Thu, 23 Feb 2012 09:45:59 +0000 (01:45 -0800)]
(core::str) rename substr_len_bytes to substr_len, and delete unused byte_index[_from]

12 years ago(core::str) remove len_bytes alias
Kevin Cantu [Thu, 23 Feb 2012 09:44:04 +0000 (01:44 -0800)]
(core::str) remove len_bytes alias