]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoFix compare_and_swap to not break tests.
Luqman Aden [Tue, 23 Oct 2012 01:47:14 +0000 (21:47 -0400)]
Fix compare_and_swap to not break tests.

11 years agoReplace rust_atomic_increment/decrement and rust_compare_and_swap_ptr with intrinsics.
Luqman Aden [Mon, 22 Oct 2012 02:24:56 +0000 (22:24 -0400)]
Replace rust_atomic_increment/decrement and rust_compare_and_swap_ptr with intrinsics.

11 years agorustc: add new intrinsics - atomic_cxchg{_acq,_rel}
Luqman Aden [Mon, 22 Oct 2012 02:23:50 +0000 (22:23 -0400)]
rustc: add new intrinsics - atomic_cxchg{_acq,_rel}

11 years agoMerge pull request #3823 from paulstansifer/master
Brian Anderson [Sun, 21 Oct 2012 02:44:36 +0000 (19:44 -0700)]
Merge pull request #3823 from paulstansifer/master

Talk about ends, rather than means, in macro tutorial introduction.

11 years agoTalk about ends, rather than means, in macro tutorial introduction.
Paul Stansifer [Sun, 21 Oct 2012 01:54:25 +0000 (21:54 -0400)]
Talk about ends, rather than means, in macro tutorial introduction.

11 years agostd: Shuffle around test ports some more
Brian Anderson [Sun, 21 Oct 2012 01:30:08 +0000 (18:30 -0700)]
std: Shuffle around test ports some more

11 years agoLong lines
Brian Anderson [Sun, 21 Oct 2012 01:06:01 +0000 (18:06 -0700)]
Long lines

11 years agoRemove obsolete fixed-length string test
Brian Anderson [Sun, 21 Oct 2012 00:40:21 +0000 (17:40 -0700)]
Remove obsolete fixed-length string test

11 years agoRemove remaining uses of old fixed-length vec syntax
Brian Anderson [Sat, 20 Oct 2012 23:59:20 +0000 (16:59 -0700)]
Remove remaining uses of old fixed-length vec syntax

11 years agoParse and report obsolete fixed-length vector syntax
Brian Anderson [Sat, 20 Oct 2012 23:33:59 +0000 (16:33 -0700)]
Parse and report obsolete fixed-length vector syntax

11 years ago...missed a merge marker on that last rebase
Ben Striegel [Fri, 12 Oct 2012 03:10:17 +0000 (23:10 -0400)]
...missed a merge marker on that last rebase

11 years agoNo longer parse old fixed-length vec sytnax
Ben Striegel [Fri, 12 Oct 2012 02:47:31 +0000 (22:47 -0400)]
No longer parse old fixed-length vec sytnax

11 years agoFix a pprint test for fixed-length vecs
Ben Striegel [Thu, 11 Oct 2012 03:43:02 +0000 (23:43 -0400)]
Fix a pprint test for fixed-length vecs

11 years agoRemove old fixed-length vector syntax
Ben Striegel [Wed, 10 Oct 2012 04:28:04 +0000 (00:28 -0400)]
Remove old fixed-length vector syntax

11 years agolibsyntax: adapt the pretty printer for the new fixed size array syntax
Philipp Brüschweiler [Tue, 9 Oct 2012 17:42:26 +0000 (19:42 +0200)]
libsyntax: adapt the pretty printer for the new fixed size array syntax

`[int]/5` -> `[int * 5]`

11 years agoAdd new uv functions to rustrt.def.in
Brian Anderson [Sun, 21 Oct 2012 00:41:34 +0000 (17:41 -0700)]
Add new uv functions to rustrt.def.in

11 years agostd: Use unique ports in tcp tests
Brian Anderson [Sun, 21 Oct 2012 00:24:27 +0000 (17:24 -0700)]
std: Use unique ports in tcp tests

11 years agostd: rename getpeername to get_peer_addr
Luqman Aden [Sat, 20 Oct 2012 23:54:08 +0000 (19:54 -0400)]
std: rename getpeername to get_peer_addr

11 years agostd: Add test for getpeername
Brian Anderson [Sat, 20 Oct 2012 23:38:31 +0000 (19:38 -0400)]
std: Add test for getpeername

11 years agouv: use just getpeername for both ipv4 and ipv6.
Luqman Aden [Sat, 20 Oct 2012 02:51:33 +0000 (22:51 -0400)]
uv: use just getpeername for both ipv4 and ipv6.

11 years agouv: implement a way to get client's ip/port.
Luqman Aden [Fri, 19 Oct 2012 23:28:58 +0000 (19:28 -0400)]
uv: implement a way to get client's ip/port.

11 years agoFix run-pass/issue-2895 for 32-bit archs
Brian Anderson [Sat, 20 Oct 2012 21:52:31 +0000 (14:52 -0700)]
Fix run-pass/issue-2895 for 32-bit archs

11 years agoSome tweaks to the valgrind makefile code
Brian Anderson [Sat, 20 Oct 2012 21:27:56 +0000 (14:27 -0700)]
Some tweaks to the valgrind makefile code

This reenables valgrinding of the compiler and prints a message
when the user _is_ valgrinding

11 years agoValgrind check disable
Mahmut Bulut [Mon, 15 Oct 2012 20:30:06 +0000 (23:30 +0300)]
Valgrind check disable

11 years agocore: add 3rd proposed interface (trap/in) to conditions.
Graydon Hoare [Fri, 19 Oct 2012 21:46:32 +0000 (14:46 -0700)]
core: add 3rd proposed interface (trap/in) to conditions.

11 years agoAdd Mahmut Bulut to AUTHORS
Tim Chevalier [Fri, 19 Oct 2012 19:31:54 +0000 (12:31 -0700)]
Add Mahmut Bulut to AUTHORS

11 years agoRenaming trait name UniqueStr to Trimmable
Mahmut Bulut [Mon, 15 Oct 2012 20:53:16 +0000 (23:53 +0300)]
Renaming trait name UniqueStr to Trimmable

11 years agoFix Windows breakage
Tim Chevalier [Fri, 19 Oct 2012 18:44:01 +0000 (11:44 -0700)]
Fix Windows breakage

11 years agoRemove superfluous by-ref in option::get, option::get_default, option::expect
Tim Chevalier [Fri, 19 Oct 2012 18:37:00 +0000 (11:37 -0700)]
Remove superfluous by-ref in option::get, option::get_default, option::expect

Superficial change, no review.

11 years agocore: add potential "simpler interface" to core::condition, also reduce TLS hits.
Graydon Hoare [Fri, 19 Oct 2012 02:47:19 +0000 (19:47 -0700)]
core: add potential "simpler interface" to core::condition, also reduce TLS hits.

11 years agocore: Add type params to condition handling so interface is safe.
Graydon Hoare [Fri, 19 Oct 2012 01:45:33 +0000 (18:45 -0700)]
core: Add type params to condition handling so interface is safe.

11 years agoAdd Luqman Aden to AUTHORS
Tim Chevalier [Fri, 19 Oct 2012 02:17:04 +0000 (19:17 -0700)]
Add Luqman Aden to AUTHORS

11 years agoMerge pull request #3811 from luqmana/incoming
Tim Chevalier [Fri, 19 Oct 2012 02:15:16 +0000 (19:15 -0700)]
Merge pull request #3811 from luqmana/incoming

configure: check for pandoc version properly.

11 years agoconfigure: check for pandoc version properly.
Luqman Aden [Fri, 19 Oct 2012 00:58:57 +0000 (20:58 -0400)]
configure: check for pandoc version properly.

11 years agoconfigure: note dep on head.
Graydon Hoare [Thu, 18 Oct 2012 20:05:02 +0000 (13:05 -0700)]
configure: note dep on head.

11 years agoconfigure: fix use of bash-specific here strings (also awk, please no more deps).
Graydon Hoare [Thu, 18 Oct 2012 20:04:52 +0000 (13:04 -0700)]
configure: fix use of bash-specific here strings (also awk, please no more deps).

11 years agocore: add previous-handler save and restore for proper nesting.
Graydon Hoare [Thu, 18 Oct 2012 19:27:09 +0000 (12:27 -0700)]
core: add previous-handler save and restore for proper nesting.

11 years agorustc: Implement intra-crate static methods on anonymous trait implementations. r...
Patrick Walton [Thu, 18 Oct 2012 20:29:34 +0000 (13:29 -0700)]
rustc: Implement intra-crate static methods on anonymous trait implementations. r=nmatsakis

11 years agoRevert "Simplify str::to_managed"
Erick Tryzelaar [Thu, 18 Oct 2012 18:53:27 +0000 (11:53 -0700)]
Revert "Simplify str::to_managed"

This reverts commit ac50046a111a1ef6fb58b7e5f368ff6b9b55f89c.

11 years agoMerge pull request #3803 from tychosci/readclose
Tim Chevalier [Thu, 18 Oct 2012 21:05:09 +0000 (14:05 -0700)]
Merge pull request #3803 from tychosci/readclose

Make some string operations UTF-8 safe

11 years agoMerge pull request #3802 from rfw/fix_pandoc_configure
Tim Chevalier [Thu, 18 Oct 2012 19:25:11 +0000 (12:25 -0700)]
Merge pull request #3802 from rfw/fix_pandoc_configure

Check pandoc's version correctly for >=1.10.

11 years agoRemove dead type definition
Tim Chevalier [Thu, 18 Oct 2012 19:09:44 +0000 (12:09 -0700)]
Remove dead type definition

11 years agotest: Fix failing tests. r=rustbot
Patrick Walton [Thu, 18 Oct 2012 19:08:52 +0000 (12:08 -0700)]
test: Fix failing tests. r=rustbot

11 years agoMerge pull request #3805 from erickt/incoming
Tim Chevalier [Thu, 18 Oct 2012 18:12:32 +0000 (11:12 -0700)]
Merge pull request #3805 from erickt/incoming

Variety of small cleanups

11 years agoRename str::to_unique to str::to_owned.
Erick Tryzelaar [Thu, 18 Oct 2012 18:04:59 +0000 (11:04 -0700)]
Rename str::to_unique to str::to_owned.

11 years agoSimplify str::to_managed
Erick Tryzelaar [Thu, 18 Oct 2012 18:04:32 +0000 (11:04 -0700)]
Simplify str::to_managed

11 years agolibcore: minor code cleanup.
Erick Tryzelaar [Thu, 18 Oct 2012 16:14:11 +0000 (09:14 -0700)]
libcore: minor code cleanup.

This is minor and probably completely inconsequential to performance,
but I find vec::map to be more clear than vec::each and a push.

11 years agolibcore: call [u8] values bytes, not bufs
Erick Tryzelaar [Thu, 18 Oct 2012 16:10:37 +0000 (09:10 -0700)]
libcore: call [u8] values bytes, not bufs

11 years agoRewrite io::ByteBuf into a struct
Erick Tryzelaar [Thu, 18 Oct 2012 16:06:53 +0000 (09:06 -0700)]
Rewrite io::ByteBuf into a struct

11 years agoMake with_bytes_reader/with_bytes_writer pure
Erick Tryzelaar [Thu, 18 Oct 2012 16:04:47 +0000 (09:04 -0700)]
Make with_bytes_reader/with_bytes_writer pure

11 years agorustc: optimize away some mallocs when building GEP args
Erick Tryzelaar [Thu, 18 Oct 2012 15:03:04 +0000 (08:03 -0700)]
rustc: optimize away some mallocs when building GEP args

11 years agorustdoc: Make markdown_writer::pandoc_writer UTF-8 safe
Tycho Sci [Thu, 18 Oct 2012 13:13:01 +0000 (22:13 +0900)]
rustdoc: Make markdown_writer::pandoc_writer UTF-8 safe

11 years agolibcore: Make run::program_output UTF-8 safe
Tycho Sci [Thu, 18 Oct 2012 13:11:03 +0000 (22:11 +0900)]
libcore: Make run::program_output UTF-8 safe

11 years agoCheck pandoc's version correctly for >=1.10.
Tony Young [Thu, 18 Oct 2012 09:56:22 +0000 (22:56 +1300)]
Check pandoc's version correctly for >=1.10.

11 years agoMerge pull request #3799 from paulstansifer/master
Tim Chevalier [Thu, 18 Oct 2012 01:44:58 +0000 (18:44 -0700)]
Merge pull request #3799 from paulstansifer/master

Add examples to the parsing limitations section of the macro tutorial.

11 years agoAdd examples to the parsing limitations section of the macro tutorial.
Paul Stansifer [Thu, 18 Oct 2012 01:40:39 +0000 (21:40 -0400)]
Add examples to the parsing limitations section of the macro tutorial.

(Thanks to bstrie for pointing them out!)

11 years agocore: first working sketch of a condition system.
Graydon Hoare [Wed, 17 Oct 2012 23:40:18 +0000 (16:40 -0700)]
core: first working sketch of a condition system.

11 years agolibsyntax: refactor the parser to consider foreign items as items
Philipp Brüschweiler [Tue, 9 Oct 2012 09:59:03 +0000 (11:59 +0200)]
libsyntax: refactor the parser to consider foreign items as items

parse_item_or_view_item() would drop visibility if none of the conditions
following it would hold. This was the case when parsing extern {} blocks,
where the function was only used to parse view items, but discarded the
visibility of the first not-view item.

11 years agoFix copy warnings in str
Tim Chevalier [Wed, 17 Oct 2012 20:47:24 +0000 (13:47 -0700)]
Fix copy warnings in str

11 years agoFix copy warnings in str
Tim Chevalier [Wed, 17 Oct 2012 20:47:24 +0000 (13:47 -0700)]
Fix copy warnings in str

11 years agoEnable configure to detect 32 bit systems on 64 bit kernels
Arkaitz Jimenez [Tue, 16 Oct 2012 22:12:07 +0000 (00:12 +0200)]
Enable configure to detect 32 bit systems on 64 bit kernels

These systems run 32 bit binaries so arch needs to be forced
to 32 bits.

11 years agoMerge pull request #3739 from killerswan/usagemsg
Tim Chevalier [Wed, 17 Oct 2012 20:05:04 +0000 (13:05 -0700)]
Merge pull request #3739 from killerswan/usagemsg

Add a module to getopts for verbose option group declaration (and use it in rustc)

11 years agoFix whitespace
Tim Chevalier [Wed, 17 Oct 2012 19:59:10 +0000 (12:59 -0700)]
Fix whitespace

11 years agostd::treemap - changing types to reflect constraints, adding equality check (space...
Daniel Patterson [Thu, 4 Oct 2012 22:18:02 +0000 (18:18 -0400)]
std::treemap - changing types to reflect constraints, adding equality check (space expensive)

11 years agoFix long lines
Tim Chevalier [Wed, 17 Oct 2012 19:16:57 +0000 (12:16 -0700)]
Fix long lines

11 years agoAdd a module to getopts to support verbose option definition
Kevin Cantu [Thu, 11 Oct 2012 23:54:31 +0000 (16:54 -0700)]
Add a module to getopts to support verbose option definition

This is built on top of the existing functionality, but
adds a `groups` module which defines functions allowing
the user to specify whole short/long/description groups
at once and provides a usage message.

11 years agoLine length
Tim Chevalier [Wed, 17 Oct 2012 18:23:02 +0000 (11:23 -0700)]
Line length

11 years agoword => word_space
Tim Chevalier [Wed, 17 Oct 2012 18:21:45 +0000 (11:21 -0700)]
word => word_space

11 years agoremove duplicate visibility and fix indentation
Jyun-Yan You [Sun, 14 Oct 2012 16:19:54 +0000 (00:19 +0800)]
remove duplicate visibility and fix indentation

11 years agofix the indentation of foreign constant
Jyun-Yan You [Mon, 8 Oct 2012 08:36:09 +0000 (16:36 +0800)]
fix the indentation of foreign constant

11 years agoExtraneous sigil patrol: turn &[] literals into []
Ben Striegel [Sat, 13 Oct 2012 01:47:46 +0000 (21:47 -0400)]
Extraneous sigil patrol: turn &[] literals into []

11 years agoSigil patrol: change fn@ fn& fn~ to @fn &fn ~fn
Ben Striegel [Sat, 13 Oct 2012 00:48:45 +0000 (20:48 -0400)]
Sigil patrol: change fn@ fn& fn~ to @fn &fn ~fn

This also involves removing references to the old long-form closure
syntax, which pcwalton alleges is deprecated and which was never updated
for the new forms, e.g. `@fn() {}` is illegal.

11 years agoExtraneous sigil patrol: ~"string literals"
Ben Striegel [Fri, 12 Oct 2012 23:41:16 +0000 (19:41 -0400)]
Extraneous sigil patrol: ~"string literals"

11 years agoMerge pull request #3764 from lucab/lucab/to-upstream/pull-3
Tim Chevalier [Wed, 17 Oct 2012 18:07:01 +0000 (11:07 -0700)]
Merge pull request #3764 from lucab/lucab/to-upstream/pull-3

Use gpgv for signature verification in cargo

11 years agoMerge pull request #3719 from lucab/lucab/to-upstream/pull-2
Tim Chevalier [Wed, 17 Oct 2012 18:04:50 +0000 (11:04 -0700)]
Merge pull request #3719 from lucab/lucab/to-upstream/pull-2

Fix #3701: rustllvm conditional build

11 years agoMerge pull request #3706 from erickt/str-with-capacity
Tim Chevalier [Wed, 17 Oct 2012 18:03:58 +0000 (11:03 -0700)]
Merge pull request #3706 from erickt/str-with-capacity

libcore: add a str::with_capacity to match the fn in vec

11 years agoMerge pull request #3716 from Blei/fix-3656
Tim Chevalier [Wed, 17 Oct 2012 18:00:36 +0000 (11:00 -0700)]
Merge pull request #3716 from Blei/fix-3656

rustc: fix size computation of structs for the FFI

11 years agoExport std::net_url::encode_component
Tim Chevalier [Wed, 17 Oct 2012 17:39:01 +0000 (10:39 -0700)]
Export std::net_url::encode_component

11 years agoRemove integer suffixes
Tim Chevalier [Wed, 17 Oct 2012 05:13:55 +0000 (22:13 -0700)]
Remove integer suffixes

11 years agoChange a use of map::get to map::find
Tim Chevalier [Wed, 17 Oct 2012 05:13:41 +0000 (22:13 -0700)]
Change a use of map::get to map::find

11 years agoadd missing pub from multifile example in sec 12.3
Niko Matsakis [Wed, 17 Oct 2012 03:19:34 +0000 (20:19 -0700)]
add missing pub from multifile example in sec 12.3

11 years agorustc: Implement intra-crate static methods on anonymous trait implementations.
Patrick Walton [Tue, 16 Oct 2012 01:04:15 +0000 (18:04 -0700)]
rustc: Implement intra-crate static methods on anonymous trait implementations.

11 years agoIn ty::normalize_ty, don't replace self_regions with None
Tim Chevalier [Tue, 16 Oct 2012 00:18:45 +0000 (17:18 -0700)]
In ty::normalize_ty, don't replace self_regions with None

Instead, replace with re_static. This was causing ty::subst to
fail when called from trans::type_of::type_of.

Already discussed with nmatsakis and it's a small change, so
no review.

Closes #3447

11 years agoAdd test for Issue 2823
Tim Chevalier [Tue, 16 Oct 2012 00:12:42 +0000 (17:12 -0700)]
Add test for Issue 2823

11 years agoAdd test case for Issue 2895
Tim Chevalier [Tue, 16 Oct 2012 00:09:05 +0000 (17:09 -0700)]
Add test case for Issue 2895

11 years agoError out in resolve if structs try to capture type parameters
Tim Chevalier [Mon, 15 Oct 2012 22:29:45 +0000 (15:29 -0700)]
Error out in resolve if structs try to capture type parameters

Closes #3214

11 years agorustc: Merge module and type namespaces. r=brson
Patrick Walton [Mon, 15 Oct 2012 21:56:42 +0000 (14:56 -0700)]
rustc: Merge module and type namespaces. r=brson

11 years agoAdd test cases for #3668
Tim Chevalier [Mon, 15 Oct 2012 21:33:32 +0000 (14:33 -0700)]
Add test cases for #3668

Previous commits fix the issue.

Closes #3668

11 years agoUn-xfail test for #3521; it works now
Tim Chevalier [Mon, 15 Oct 2012 21:17:16 +0000 (14:17 -0700)]
Un-xfail test for #3521; it works now

Closes #3521

11 years agorustc: Implement monomorphic default methods. r=nmatsakis
Patrick Walton [Mon, 8 Oct 2012 19:39:30 +0000 (12:39 -0700)]
rustc: Implement monomorphic default methods. r=nmatsakis

11 years agoCheck whether loans conflict with old loans or with themselves.
Niko Matsakis [Sun, 14 Oct 2012 20:39:17 +0000 (13:39 -0700)]
Check whether loans conflict with old loans or with themselves.

Along the way, convert from dvec-of-dvec representation to track loans in scope
to just a single flattened list.  It's more convenient.

Fixes #3765. r+ pcwalton.

11 years agoFix whitespace
Tim Chevalier [Mon, 15 Oct 2012 20:14:23 +0000 (13:14 -0700)]
Fix whitespace

11 years agoAllow enum discriminator exprs to refer to declared consts
Tim Chevalier [Mon, 15 Oct 2012 19:27:09 +0000 (12:27 -0700)]
Allow enum discriminator exprs to refer to declared consts

Also some work towards #3521

Closes #2428

11 years agoAdd various test cases (xfailed)
Tim Chevalier [Mon, 15 Oct 2012 19:00:32 +0000 (12:00 -0700)]
Add various test cases (xfailed)

11 years agolibstd: make Serializer a trait-level typaram
Erick Tryzelaar [Sat, 13 Oct 2012 16:11:33 +0000 (09:11 -0700)]
libstd: make Serializer a trait-level typaram

11 years agoUse gpgv for signature verification in cargo
Luca Bruno [Sun, 14 Oct 2012 12:45:21 +0000 (14:45 +0200)]
Use gpgv for signature verification in cargo

Parsing gpg output for signature verification is not recommended,
as it can break easily (and doesn't work with i18n).
This patch makes use of gpgv, as suggested by gpg authors:
http://lists.gnupg.org/pipermail/gnupg-users/2004-August/023141.html
This closes #3762.

Signed-off-by: Luca Bruno <lucab@debian.org>
11 years agoImplement to_managed without using an upcall function, as suggested by brson.
Gareth Daniel Smith [Sat, 6 Oct 2012 10:11:06 +0000 (11:11 +0100)]
Implement to_managed without using an upcall function, as suggested by brson.

11 years agoAdd an &str.to_managed method to allow creating non-constant @str values (for issue...
Gareth Daniel Smith [Thu, 4 Oct 2012 19:22:53 +0000 (20:22 +0100)]
Add an &str.to_managed method to allow creating non-constant @str values (for issue #3433).

11 years agoAvoid repeating 'try adding a move' hint
Tim Chevalier [Sat, 13 Oct 2012 05:15:13 +0000 (22:15 -0700)]
Avoid repeating 'try adding a move' hint

11 years agoRemove unneeded parens
Tim Chevalier [Sat, 13 Oct 2012 03:59:44 +0000 (20:59 -0700)]
Remove unneeded parens