Commit Graph

14657 Commits

Author SHA1 Message Date
Patrick Walton
6b659392ea libcore: Add symlink(2) to libc. rs=trivial 2012-12-27 10:02:51 -08:00
Erick Tryzelaar
efb8711f90 Merge branch 'master' of github.com:mozilla/rust into incoming 2012-12-27 10:34:27 -05:00
Michael Neumann
2b6c456bf6 Enhance auto_encode to take number of struct fields
emit_struct and read_struct takes an additional len:uint parameter which tells
us how many fields the struct we are working on has.

This is required to implement an Encoder for the msgpack [1] serialization
format. To serialize a struct with msgpack you have to use arrays and the size
of the array has to be know before each of the elements are written out. JSON
as an example doesn't have this problem as it uses '[' and ']' delimiters for
arrays.

[1]: www.msgpack.org
2012-12-27 06:16:16 -06:00
Tim Chevalier
56227c42b3 Merge pull request #4286 from thestinger/vim
add Drop trait to vim syntax highlighting
2012-12-25 01:16:07 -08:00
Daniel Micay
2cf2d6aa92 add Drop trait to vim syntax highlighting 2012-12-25 01:20:27 -05:00
Tim Chevalier
09bb07bed9 Unfortunately, we can't embed cross-crate tests in the tutorial...
...as far as I know, anyway, so I xfailed this tutorial test.
2012-12-24 18:29:02 -08:00
Tim Chevalier
c4720a73bb Update shootout-mandelbrot to work with the new io::Writer 2012-12-24 18:29:02 -08:00
Tim Chevalier
6dbb025267 Fix wayward search and replace; unbreak build 2012-12-24 18:29:02 -08:00
gareth
fddc849d75 Convert core::io to use explicit self (for issue #4118 and issue #2004) 2012-12-24 18:29:02 -08:00
Chris Peterson
8060bd846a std: Mark some functions as pure 2012-12-24 18:29:02 -08:00
Chris Peterson
c1e58aad70 core: Mark some functions as pure 2012-12-24 18:29:02 -08:00
Tim Chevalier
889df54886 Add Jens Nockert to AUTHORS 2012-12-24 18:29:02 -08:00
Tim Chevalier
5e73b0972b Add Martin DeMello to AUTHORS 2012-12-24 18:29:02 -08:00
Tim Chevalier
e44fb67c87 Add Eric Holmes to AUTHORS 2012-12-24 18:29:02 -08:00
Eric J. Holmes
8223a1278d Fix example. 2012-12-24 18:29:02 -08:00
Eric J. Holmes
40a3e20bbb Fix example. 2012-12-24 18:29:02 -08:00
Ted Horst
d30224a3d4 update mandelbrot to pipes, a few other updates 2012-12-24 18:29:01 -08:00
Tim Chevalier
8d438747a5 Remove xfail-fast from trait-composition-trivial 2012-12-24 18:29:01 -08:00
Tim Chevalier
d722217a68 tests: Add test case. Closes #3250 2012-12-24 18:29:01 -08:00
Daniel Micay
b8fe575e79 update after/syntax/rust.vim for removal of <- 2012-12-24 18:29:01 -08:00
Graydon Hoare
329316ce15 bump 0.5 => 0.6, redirect some URLs in docs. 2012-12-24 18:29:01 -08:00
Erick Tryzelaar
b6f0f300d5 std: modernize net_url
This switches over to using structs and send_maps for
query string parsing.
2012-12-24 18:29:01 -08:00
Erick Tryzelaar
03b5fcabbd Switch chain calls to use Option::chain method 2012-12-24 18:29:01 -08:00
Erick Tryzelaar
50902bb302 Fix Option::unwrap_err. 2012-12-24 18:29:01 -08:00
Tim Chevalier
3cc0fbca5d doc: mention struct-like enum variants /cc #4217 2012-12-24 15:59:37 -08:00
Tim Chevalier
499a58708f Assign correct types to struct-like enum variant constructors
Before, the type was just the enum type itself, which caused an
assertion failure in iter_variant in trans::base.

r=brson

Closes #4229
2012-12-24 15:59:15 -08:00
Tim Chevalier
cf768ce1f4 Unfortunately, we can't embed cross-crate tests in the tutorial...
...as far as I know, anyway, so I xfailed this tutorial test.
2012-12-24 14:07:37 -08:00
Tim Chevalier
7ce0d30b9b Update shootout-mandelbrot to work with the new io::Writer 2012-12-24 13:29:36 -08:00
Tim Chevalier
46122bf333 Fix wayward search and replace; unbreak build 2012-12-24 12:37:45 -08:00
Tim Chevalier
66dc4898c7 Merge pull request #4278 from cpeterso/incoming-pure-functions
Mark some more core and std functions as pure
2012-12-24 11:33:22 -08:00
Tim Chevalier
2bb2536d41 Merge pull request #4281 from Dretch/io-explicit-self
Convert core::io to use explicit self (for issue #4118 and issue #2004)
2012-12-24 11:29:46 -08:00
gareth
feff3a9c6c Convert core::io to use explicit self (for issue #4118 and issue #2004) 2012-12-24 18:52:53 +00:00
Chris Peterson
ffaa477368 std: Mark some functions as pure 2012-12-23 14:38:01 -08:00
Chris Peterson
6d8621ae7f core: Mark some functions as pure 2012-12-23 14:37:44 -08:00
Tim Chevalier
cd6960edf0 Add Jens Nockert to AUTHORS 2012-12-23 13:57:49 -08:00
Tim Chevalier
baa4379e5a Merge pull request #4245 from JensNockert/bit-intrinsics
Add support for bitcount intrinsics Issue #2777
2012-12-23 13:50:28 -08:00
Tim Chevalier
197a1f9cfe Merge pull request #4243 from erickt/incoming
Fix a bug in Result::unwrap_err (and minor cleanup)
2012-12-23 13:49:32 -08:00
Tim Chevalier
8ec13a90aa Merge pull request #4239 from tedhorst/mandpipe
update mandelbrot to pipes, a few other updates
2012-12-23 13:48:31 -08:00
Tim Chevalier
b1b0c297a4 Merge pull request #4249 from graydon/0.6-bump
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-23 13:47:11 -08:00
Tim Chevalier
0e35391468 Merge pull request #4250 from thestinger/vim
update after/syntax/rust.vim for removal of <-
2012-12-23 13:45:56 -08:00
Tim Chevalier
79a68ef212 Merge pull request #4251 from erickt/url
std: modernize net_url
2012-12-23 13:45:31 -08:00
Tim Chevalier
50bb838389 Merge pull request #4272 from ejholmes/crates-minimal-example
Fix example in 13.3.
2012-12-23 13:38:48 -08:00
Tim Chevalier
84671e5d75 Add Martin DeMello to AUTHORS 2012-12-23 13:38:13 -08:00
Tim Chevalier
915246314b Merge pull request #4253 from martindemello/patch-1
Fix options passed to gpg in cargo init
2012-12-23 13:37:36 -08:00
Tim Chevalier
688c5b920a Add Eric Holmes to AUTHORS 2012-12-23 13:34:08 -08:00
Eric J. Holmes
889e560ca5 Fix example. 2012-12-23 13:30:23 -08:00
Tim Chevalier
4752081dc5 Merge pull request #4271 from ejholmes/ffi-crypto
Fix example in FFI tutorial.
2012-12-23 13:30:19 -08:00
Eric J. Holmes
0100b02b3a Fix example. 2012-12-23 13:26:12 -08:00
Ted Horst
2452ee11ab update mandelbrot to pipes, a few other updates 2012-12-23 13:17:42 -06:00
Tim Chevalier
10e8e3e286 Remove xfail-fast from trait-composition-trivial 2012-12-23 00:24:07 -08:00