]> git.lizzy.rs Git - rust.git/log
rust.git
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

11 years agoMake trans ignore last use
Tim Chevalier [Wed, 19 Sep 2012 05:54:57 +0000 (22:54 -0700)]
Make trans ignore last use

11 years agoChange the kind checker to ignore results of 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

11 years ago(For legacy code:) In liveness, require that by-move arguments are rvalues
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

11 years agoTest that functional struct update exprs get rejected if...
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.

11 years agoMake moves explicit in rfail tests
Tim Chevalier [Wed, 19 Sep 2012 05:55:21 +0000 (22:55 -0700)]
Make moves explicit in rfail tests

11 years agoMake moves explicit in rpass tests
Tim Chevalier [Wed, 19 Sep 2012 05:45:24 +0000 (22:45 -0700)]
Make moves explicit in rpass tests

11 years agoMake moves explicit in cfail tests
Tim Chevalier [Wed, 19 Sep 2012 05:44:46 +0000 (22:44 -0700)]
Make moves explicit in cfail tests

11 years agoMake moves explicit in bench tests
Tim Chevalier [Wed, 19 Sep 2012 05:44:34 +0000 (22:44 -0700)]
Make moves explicit in bench tests

11 years agoMake moves explicit in aux test files
Tim Chevalier [Wed, 19 Sep 2012 05:44:15 +0000 (22:44 -0700)]
Make moves explicit in aux test files

11 years agoMake moves explicit in rustdoc
Tim Chevalier [Wed, 19 Sep 2012 05:43:54 +0000 (22:43 -0700)]
Make moves explicit in rustdoc

11 years agoMake moves explicit in std tests
Tim Chevalier [Wed, 19 Sep 2012 05:35:42 +0000 (22:35 -0700)]
Make moves explicit in std tests

11 years agoMake moves explicit in core tests
Tim Chevalier [Wed, 19 Sep 2012 05:35:28 +0000 (22:35 -0700)]
Make moves explicit in core tests

11 years agoMake moves explicit in compiletest
Tim Chevalier [Wed, 19 Sep 2012 05:35:00 +0000 (22:35 -0700)]
Make moves explicit in compiletest

11 years agoMake moves explicit in cargo
Tim Chevalier [Wed, 19 Sep 2012 05:34:49 +0000 (22:34 -0700)]
Make moves explicit in cargo

11 years agoMake moves explicit in doc examples
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.

11 years agoMake moves explicit in rustc::middle
Tim Chevalier [Sat, 13 Oct 2012 01:02:02 +0000 (18:02 -0700)]
Make moves explicit in rustc::middle

11 years agoMake moves explicit in libsyntax
Tim Chevalier [Sat, 13 Oct 2012 00:55:28 +0000 (17:55 -0700)]
Make moves explicit in libsyntax

11 years agoAdd a colon, make an error message clearer
Tim Chevalier [Wed, 19 Sep 2012 05:36:02 +0000 (22:36 -0700)]
Add a colon, make an error message clearer

11 years agoremove ctor from ast (take 2) (no review: just dead code removal)
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)

11 years agoUse the Nth impl when translating a static method call, instead
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.

11 years agobump version to 0.5.
Graydon Hoare [Fri, 12 Oct 2012 23:41:25 +0000 (16:41 -0700)]
bump version to 0.5.

11 years agoMerge pull request #3746 from killerswan/nuke_fmt
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!(...)

11 years agoReplace 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...

11 years agoCopyedit "Items and attributes" section in docs
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.

11 years agoMerge pull request #3734 from dbp/tutorial-fixes
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

11 years agotutorial: 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

11 years agomanual: Lightly copyedit the crates section
Tim Chevalier [Fri, 12 Oct 2012 03:09:41 +0000 (20:09 -0700)]
manual: Lightly copyedit the crates section

11 years agomanual: Lightly copyedit the macros section
Tim Chevalier [Fri, 12 Oct 2012 03:03:24 +0000 (20:03 -0700)]
manual: Lightly copyedit the macros section

11 years agoFix tutorial-ffi tests
Tim Chevalier [Fri, 12 Oct 2012 02:44:48 +0000 (19:44 -0700)]
Fix tutorial-ffi tests

11 years agomanual: fix one more nit.
Graydon Hoare [Fri, 12 Oct 2012 02:39:21 +0000 (19:39 -0700)]
manual: fix one more nit.

11 years agomanual: fix accidentally broken test.
Graydon Hoare [Fri, 12 Oct 2012 02:30:43 +0000 (19:30 -0700)]
manual: fix accidentally broken test.

11 years agomanual: remove as many ~[] literals as possible.
Graydon Hoare [Fri, 12 Oct 2012 02:25:09 +0000 (19:25 -0700)]
manual: remove as many ~[] literals as possible.

11 years agomanual: 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.

11 years agomanual: fix bullet list.
Graydon Hoare [Fri, 12 Oct 2012 02:15:40 +0000 (19:15 -0700)]
manual: fix bullet list.

11 years agomanual: remove description of references (modes) from memory-slots section.
Graydon Hoare [Fri, 12 Oct 2012 02:12:35 +0000 (19:12 -0700)]
manual: remove description of references (modes) from memory-slots section.

11 years agomanual: rewrite the section on type kinds.
Graydon Hoare [Fri, 12 Oct 2012 02:07:38 +0000 (19:07 -0700)]
manual: rewrite the section on type kinds.

11 years agomanual: fix various examples.
Graydon Hoare [Fri, 12 Oct 2012 01:18:37 +0000 (18:18 -0700)]
manual: fix various examples.

11 years agomanual: capitalize more examples properly.
Graydon Hoare [Fri, 12 Oct 2012 01:07:50 +0000 (18:07 -0700)]
manual: capitalize more examples properly.

11 years agomanual: fix vec and str types to discuss definite / indefinite size.
Graydon Hoare [Fri, 12 Oct 2012 01:05:05 +0000 (18:05 -0700)]
manual: fix vec and str types to discuss definite / indefinite size.

11 years agomanual: example fixup.
Graydon Hoare [Fri, 12 Oct 2012 00:52:12 +0000 (17:52 -0700)]
manual: example fixup.

11 years agomanual: add 'item', remove statement that built-in types are keywords.
Graydon Hoare [Fri, 12 Oct 2012 00:51:15 +0000 (17:51 -0700)]
manual: add 'item', remove statement that built-in types are keywords.

11 years agomanual: avoid describing 'assert' as 'like check', note future removal.
Graydon Hoare [Fri, 12 Oct 2012 00:50:44 +0000 (17:50 -0700)]
manual: avoid describing 'assert' as 'like check', note future removal.

11 years agomanual: remove 'analogy' between return and return. meaningless.
Graydon Hoare [Fri, 12 Oct 2012 00:50:10 +0000 (17:50 -0700)]
manual: remove 'analogy' between return and return. meaningless.

11 years agomanual: fixes to match expression examples and explanation.
Graydon Hoare [Fri, 12 Oct 2012 00:49:54 +0000 (17:49 -0700)]
manual: fixes to match expression examples and explanation.

11 years agomanual: remove unusual production name in match-expr grammar.
Graydon Hoare [Fri, 12 Oct 2012 00:16:16 +0000 (17:16 -0700)]
manual: remove unusual production name in match-expr grammar.

11 years agomanual: "to" -> ".."
Graydon Hoare [Fri, 12 Oct 2012 00:15:00 +0000 (17:15 -0700)]
manual: "to" -> ".."

11 years agomanual: rewrite for-expression section to reflect this year's definition.
Graydon Hoare [Fri, 12 Oct 2012 00:08:48 +0000 (17:08 -0700)]
manual: rewrite for-expression section to reflect this year's definition.

11 years agomanual: add section on do-expressions.
Graydon Hoare [Thu, 11 Oct 2012 22:46:16 +0000 (15:46 -0700)]
manual: add section on do-expressions.

11 years agoChange FIXME number
Tim Chevalier [Fri, 12 Oct 2012 01:09:55 +0000 (18:09 -0700)]
Change FIXME number

11 years agoRevert "Use a constant vector for the sudoku board, delete a FIXME"
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.

11 years agoRe-xfail two tests that I tried to resurrect (no time right now)
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)

11 years agoUse move instead of ref in select-macro
Tim Chevalier [Fri, 12 Oct 2012 00:59:29 +0000 (17:59 -0700)]
Use move instead of ref in select-macro

11 years agoFix pipe-select-macro
Tim Chevalier [Fri, 12 Oct 2012 00:59:14 +0000 (17:59 -0700)]
Fix pipe-select-macro