]>
git.lizzy.rs Git - rust.git/log
Tony Young [Thu, 18 Oct 2012 09:56:22 +0000 (22:56 +1300)]
Check pandoc's version correctly for >=1.10.
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.
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!)
Graydon Hoare [Wed, 17 Oct 2012 23:40:18 +0000 (16:40 -0700)]
core: first working sketch of a condition system.
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.
Tim Chevalier [Wed, 17 Oct 2012 20:47:24 +0000 (13:47 -0700)]
Fix copy warnings in str
Tim Chevalier [Wed, 17 Oct 2012 20:47:24 +0000 (13:47 -0700)]
Fix copy warnings in str
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.
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)
Tim Chevalier [Wed, 17 Oct 2012 19:59:10 +0000 (12:59 -0700)]
Fix whitespace
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)
Tim Chevalier [Wed, 17 Oct 2012 19:16:57 +0000 (12:16 -0700)]
Fix long lines
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.
Tim Chevalier [Wed, 17 Oct 2012 18:23:02 +0000 (11:23 -0700)]
Line length
Tim Chevalier [Wed, 17 Oct 2012 18:21:45 +0000 (11:21 -0700)]
word => word_space
Jyun-Yan You [Sun, 14 Oct 2012 16:19:54 +0000 (00:19 +0800)]
remove duplicate visibility and fix indentation
Jyun-Yan You [Mon, 8 Oct 2012 08:36:09 +0000 (16:36 +0800)]
fix the indentation of foreign constant
Ben Striegel [Sat, 13 Oct 2012 01:47:46 +0000 (21:47 -0400)]
Extraneous sigil patrol: turn &[] literals into []
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.
Ben Striegel [Fri, 12 Oct 2012 23:41:16 +0000 (19:41 -0400)]
Extraneous sigil patrol: ~"string literals"
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
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
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
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
Tim Chevalier [Wed, 17 Oct 2012 17:39:01 +0000 (10:39 -0700)]
Export std::net_url::encode_component
Tim Chevalier [Wed, 17 Oct 2012 05:13:55 +0000 (22:13 -0700)]
Remove integer suffixes
Tim Chevalier [Wed, 17 Oct 2012 05:13:41 +0000 (22:13 -0700)]
Change a use of map::get to map::find
Niko Matsakis [Wed, 17 Oct 2012 03:19:34 +0000 (20:19 -0700)]
add missing pub from multifile example in sec 12.3
Patrick Walton [Tue, 16 Oct 2012 01:04:15 +0000 (18:04 -0700)]
rustc: Implement intra-crate static methods on anonymous trait implementations.
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
Tim Chevalier [Tue, 16 Oct 2012 00:12:42 +0000 (17:12 -0700)]
Add test for Issue 2823
Tim Chevalier [Tue, 16 Oct 2012 00:09:05 +0000 (17:09 -0700)]
Add test case for Issue 2895
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
Patrick Walton [Mon, 15 Oct 2012 21:56:42 +0000 (14:56 -0700)]
rustc: Merge module and type namespaces. r=brson
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
Tim Chevalier [Mon, 15 Oct 2012 21:17:16 +0000 (14:17 -0700)]
Un-xfail test for #3521; it works now
Closes #3521
Patrick Walton [Mon, 8 Oct 2012 19:39:30 +0000 (12:39 -0700)]
rustc: Implement monomorphic default methods. r=nmatsakis
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.
Tim Chevalier [Mon, 15 Oct 2012 20:14:23 +0000 (13:14 -0700)]
Fix whitespace
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
Tim Chevalier [Mon, 15 Oct 2012 19:00:32 +0000 (12:00 -0700)]
Add various test cases (xfailed)
Erick Tryzelaar [Sat, 13 Oct 2012 16:11:33 +0000 (09:11 -0700)]
libstd: make Serializer a trait-level typaram
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>
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.
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).
Tim Chevalier [Sat, 13 Oct 2012 05:15:13 +0000 (22:15 -0700)]
Avoid repeating 'try adding a move' hint
Tim Chevalier [Sat, 13 Oct 2012 03:59:44 +0000 (20:59 -0700)]
Remove unneeded parens
Tim Chevalier [Wed, 19 Sep 2012 05:54:57 +0000 (22:54 -0700)]
Make trans ignore last use
Tim Chevalier [Wed, 19 Sep 2012 05:54:08 +0000 (22:54 -0700)]
Change the kind checker to ignore results of last-use
and require explicit moves.
Also provide more info in some error messages.
Also: check that non-copyable struct fields don't get copied.
Closes #3481
Tim Chevalier [Thu, 6 Sep 2012 02:19:37 +0000 (19:19 -0700)]
(For legacy code:) In liveness, require that by-move arguments are rvalues
Tim Chevalier [Sat, 13 Oct 2012 00:57:06 +0000 (17:57 -0700)]
Test that functional struct update exprs get rejected if...
...they require copying noncopyable fields.
Tim Chevalier [Wed, 19 Sep 2012 05:55:21 +0000 (22:55 -0700)]
Make moves explicit in rfail tests
Tim Chevalier [Wed, 19 Sep 2012 05:45:24 +0000 (22:45 -0700)]
Make moves explicit in rpass tests
Tim Chevalier [Wed, 19 Sep 2012 05:44:46 +0000 (22:44 -0700)]
Make moves explicit in cfail tests
Tim Chevalier [Wed, 19 Sep 2012 05:44:34 +0000 (22:44 -0700)]
Make moves explicit in bench tests
Tim Chevalier [Wed, 19 Sep 2012 05:44:15 +0000 (22:44 -0700)]
Make moves explicit in aux test files
Tim Chevalier [Wed, 19 Sep 2012 05:43:54 +0000 (22:43 -0700)]
Make moves explicit in rustdoc
Tim Chevalier [Wed, 19 Sep 2012 05:35:42 +0000 (22:35 -0700)]
Make moves explicit in std tests
Tim Chevalier [Wed, 19 Sep 2012 05:35:28 +0000 (22:35 -0700)]
Make moves explicit in core tests
Tim Chevalier [Wed, 19 Sep 2012 05:35:00 +0000 (22:35 -0700)]
Make moves explicit in compiletest
Tim Chevalier [Wed, 19 Sep 2012 05:34:49 +0000 (22:34 -0700)]
Make moves explicit in cargo
Tim Chevalier [Wed, 19 Sep 2012 05:33:49 +0000 (22:33 -0700)]
Make moves explicit in doc examples
Had to remove the buffalo example. It was awkward to update for
explicit moves.
Tim Chevalier [Sat, 13 Oct 2012 01:02:02 +0000 (18:02 -0700)]
Make moves explicit in rustc::middle
Tim Chevalier [Sat, 13 Oct 2012 00:55:28 +0000 (17:55 -0700)]
Make moves explicit in libsyntax
Tim Chevalier [Wed, 19 Sep 2012 05:36:02 +0000 (22:36 -0700)]
Add a colon, make an error message clearer
Niko Matsakis [Mon, 8 Oct 2012 18:49:01 +0000 (11:49 -0700)]
remove ctor from ast (take 2) (no review: just dead code removal)
Niko Matsakis [Sat, 13 Oct 2012 00:00:08 +0000 (17:00 -0700)]
Use the Nth impl when translating a static method call, instead
of the 0th. 0th is only correct when there are no bound tps
on the trait.
Fixes #3741.
Graydon Hoare [Fri, 12 Oct 2012 23:41:25 +0000 (16:41 -0700)]
bump version to 0.5.
Tim Chevalier [Fri, 12 Oct 2012 22:26:33 +0000 (15:26 -0700)]
Merge pull request #3746 from killerswan/nuke_fmt
Replace several common macros of the form #m[...] with m!(...)
Kevin Cantu [Fri, 12 Oct 2012 19:32:36 +0000 (12:32 -0700)]
Replace several common macros of the form #m[...] with m!(...)
This commit replaces nearly all remaining uses of #fmt, #debug, #error,
and #info, and fixes some error messages...
Tim Chevalier [Fri, 12 Oct 2012 19:02:08 +0000 (12:02 -0700)]
Copyedit "Items and attributes" section in docs
Most notably, I removed the "foldl" example in the section on pure functions,
as IIRC this is no longer something you need an unsafe block for
(pure functions are as pure as their arguments). Feel free to add
an example where an unsafe block really is needed.
Brian Anderson [Fri, 12 Oct 2012 04:01:16 +0000 (21:01 -0700)]
Merge pull request #3734 from dbp/tutorial-fixes
tutorial: add note about mutability of vectors
Daniel Patterson [Fri, 12 Oct 2012 03:13:04 +0000 (23:13 -0400)]
tutorial: add note about mutability of vectors
Tim Chevalier [Fri, 12 Oct 2012 03:09:41 +0000 (20:09 -0700)]
manual: Lightly copyedit the crates section
Tim Chevalier [Fri, 12 Oct 2012 03:03:24 +0000 (20:03 -0700)]
manual: Lightly copyedit the macros section
Tim Chevalier [Fri, 12 Oct 2012 02:44:48 +0000 (19:44 -0700)]
Fix tutorial-ffi tests
Graydon Hoare [Fri, 12 Oct 2012 02:39:21 +0000 (19:39 -0700)]
manual: fix one more nit.
Graydon Hoare [Fri, 12 Oct 2012 02:30:43 +0000 (19:30 -0700)]
manual: fix accidentally broken test.
Graydon Hoare [Fri, 12 Oct 2012 02:25:09 +0000 (19:25 -0700)]
manual: remove as many ~[] literals as possible.
Graydon Hoare [Fri, 12 Oct 2012 02:22:53 +0000 (19:22 -0700)]
manual: remove as many ~"" literals as possible.
Graydon Hoare [Fri, 12 Oct 2012 02:15:40 +0000 (19:15 -0700)]
manual: fix bullet list.
Graydon Hoare [Fri, 12 Oct 2012 02:12:35 +0000 (19:12 -0700)]
manual: remove description of references (modes) from memory-slots section.
Graydon Hoare [Fri, 12 Oct 2012 02:07:38 +0000 (19:07 -0700)]
manual: rewrite the section on type kinds.
Graydon Hoare [Fri, 12 Oct 2012 01:18:37 +0000 (18:18 -0700)]
manual: fix various examples.
Graydon Hoare [Fri, 12 Oct 2012 01:07:50 +0000 (18:07 -0700)]
manual: capitalize more examples properly.
Graydon Hoare [Fri, 12 Oct 2012 01:05:05 +0000 (18:05 -0700)]
manual: fix vec and str types to discuss definite / indefinite size.
Graydon Hoare [Fri, 12 Oct 2012 00:52:12 +0000 (17:52 -0700)]
manual: example fixup.
Graydon Hoare [Fri, 12 Oct 2012 00:51:15 +0000 (17:51 -0700)]
manual: add 'item', remove statement that built-in types are keywords.
Graydon Hoare [Fri, 12 Oct 2012 00:50:44 +0000 (17:50 -0700)]
manual: avoid describing 'assert' as 'like check', note future removal.
Graydon Hoare [Fri, 12 Oct 2012 00:50:10 +0000 (17:50 -0700)]
manual: remove 'analogy' between return and return. meaningless.
Graydon Hoare [Fri, 12 Oct 2012 00:49:54 +0000 (17:49 -0700)]
manual: fixes to match expression examples and explanation.
Graydon Hoare [Fri, 12 Oct 2012 00:16:16 +0000 (17:16 -0700)]
manual: remove unusual production name in match-expr grammar.
Graydon Hoare [Fri, 12 Oct 2012 00:15:00 +0000 (17:15 -0700)]
manual: "to" -> ".."
Graydon Hoare [Fri, 12 Oct 2012 00:08:48 +0000 (17:08 -0700)]
manual: rewrite for-expression section to reflect this year's definition.
Graydon Hoare [Thu, 11 Oct 2012 22:46:16 +0000 (15:46 -0700)]
manual: add section on do-expressions.
Tim Chevalier [Fri, 12 Oct 2012 01:09:55 +0000 (18:09 -0700)]
Change FIXME number
Tim Chevalier [Fri, 12 Oct 2012 01:08:58 +0000 (18:08 -0700)]
Revert "Use a constant vector for the sudoku board, delete a FIXME"
This reverts commit
06d0bf7555c55dc6c9d5b9945c06d30d0edf090b .
Tim Chevalier [Fri, 12 Oct 2012 00:59:33 +0000 (17:59 -0700)]
Re-xfail two tests that I tried to resurrect (no time right now)
Tim Chevalier [Fri, 12 Oct 2012 00:59:29 +0000 (17:59 -0700)]
Use move instead of ref in select-macro
Tim Chevalier [Fri, 12 Oct 2012 00:59:14 +0000 (17:59 -0700)]
Fix pipe-select-macro