Patrick Walton
5c2c670d8f
libsyntax: De-@mut Parser::buffer
2014-01-02 14:16:07 -08:00
Patrick Walton
044ad56824
libsyntax: De-@mut Parser::last_token
2014-01-02 14:16:07 -08:00
Patrick Walton
cc3e6ecbfd
libsyntax: De-@mut Parser::last_span
2014-01-02 14:16:07 -08:00
Patrick Walton
0c6cee55ea
libsyntax: De-@mut Parser::span
2014-01-02 14:16:07 -08:00
Patrick Walton
758d854436
libsyntax: De-@mut token in the parser
2014-01-02 14:16:07 -08:00
Patrick Walton
425a140485
libsyntax: De-@mut quote_depth in the parser
2014-01-02 14:16:07 -08:00
Patrick Walton
f499d365ad
libsyntax: Make the parser mutable
2014-01-02 14:16:07 -08:00
Florian Hahn
f42a36cded
Remove extern mod foo (name="bar") syntax, closes #9543
2014-01-01 23:36:57 +01:00
Alex Crichton
bfb760c697
Accept trailing commas in struct patterns
...
We decided in the 12/10/13 weekly meeting that trailing commas should be
accepted pretty much anywhere. They are currently not allowed in struct
patterns, and this commit adds support for that.
Closes #10392
2013-12-19 09:29:41 -08:00
bors
5cea7db2a5
auto merge of #10915 : alexcrichton/rust/fixes, r=ILyoan
...
Just a little cleanup.
2013-12-18 05:01:47 -08:00
Seo Sanghyeon
4a13364010
Remove obsolete mutability from ast::Ty
2013-12-17 03:01:40 +09:00
Alex Crichton
e2fa3c3af7
Forbid multiple imports in use statements
...
Closes #10911
2013-12-15 22:04:18 -08:00
Patrick Walton
775ccadd25
libsyntax: Implement the new box syntax for unique pointers.
2013-12-15 10:41:15 -08:00
Erik Price
5731ca3078
Make 'self lifetime illegal.
...
Also remove all instances of 'self within the codebase.
This fixes #10889 .
2013-12-11 10:54:06 -08:00
bors
fff03a5fc7
auto merge of #10808 : kballard/rust/use-braces, r=alexcrichton
...
This fixes #10806 .
2013-12-11 01:06:21 -08:00
Kevin Ballard
bd36b06f55
Support imports of the form use {foo,bar}
...
This fixes #10806 .
2013-12-10 23:15:19 -08:00
bors
b8516de48f
auto merge of #10833 : sfackler/rust/mut-pat, r=brson
...
Previously, if you wanted to bind a field mutably or by ref, you had to
do something like Foo { x: ref mut x }. You can now just do
Foo { ref mut x }.
Closes #6137
2013-12-10 22:51:19 -08:00
Steven Fackler
8240faf73a
Allow ref and mut modifiers for short form field patterns
...
Previously, if you wanted to bind a field mutably or by ref, you had to
do something like Foo { x: ref mut x }. You can now just do
Foo { ref mut x }.
Closes #6137
2013-12-10 14:05:57 -08:00
Kiet Tran
1755408d1a
Remove dead codes
2013-12-08 02:55:28 -05:00
Kevin Ballard
408dc5ad1b
Revert "libstd: Change Path::new to Path::init."
...
This reverts commit c54427ddfb .
Leave the #[ignores] in that were added to rustpkg tests.
Conflicts:
src/librustc/driver/driver.rs
src/librustc/metadata/creader.rs
2013-12-04 22:33:53 -08:00
Kevin Ballard
c00837e90a
Fix the comments for libsyntax::parse::parser::parse_sugary_call_expr
...
The comments on this function date back from when it was used for `for`
expressions in addition to `do` expressions.
2013-12-03 16:55:00 -08:00
bors
df41115213
auto merge of #10750 : Blei/rust/no-at-struct-field, r=alexcrichton
2013-12-01 05:42:06 -08:00
Philipp Brüschweiler
47ce981903
ast: Remove one @ and fix the fallout
2013-12-01 11:24:58 +01:00
Eduard Burtescu
a9c4b18b18
Box Block, fn_decl, variant and Ty in the AST, as they were inflating critical enum sizes.
2013-12-01 00:00:39 +02:00
Patrick Walton
c54427ddfb
libstd: Change Path::new to Path::init.
2013-11-29 10:55:13 -08:00
Alex Crichton
ab387a6838
Register new snapshots
2013-11-28 20:27:56 -08:00
Eduard Burtescu
f09b7b0ecd
Freeze the AST by removing a couple of unused @mut ~[T] from token_tree.
2013-11-27 17:48:58 +02:00
Patrick Walton
efc512362b
libsyntax: Remove all non-proc do syntax.
2013-11-26 08:24:18 -08:00
Patrick Walton
6801bc8f55
libsyntax: Remove the old-style borrowed closure type syntax from the
...
language.
2013-11-26 08:20:59 -08:00
Marvin Löbel
24b316a3b9
Removed unneccessary _iter suffixes from various APIs
2013-11-26 10:02:26 +01:00
bors
55201ed858
auto merge of #10628 : huonw/rust/3614, r=alexcrichton
...
Fixes #3614 .
2013-11-25 01:12:36 -08:00
Huon Wilson
e36cb0d5c1
syntax: parse inner attributes on impls.
...
Fixes #3614 .
2013-11-25 19:18:44 +11:00
Corey Richardson
ab19861037
Add a note for unclosed delimiters
...
Currently, the parser doesn't give any context when it finds an unclosed
delimiter and it's not EOF. Report the most recent unclosed delimiter, to help
the user along.
Closes #10636
2013-11-24 21:32:38 -05:00
bors
ea5d1dfb1c
auto merge of #10567 : sanxiyn/rust/bytepos, r=alexcrichton
2013-11-20 23:31:27 -08:00
Seo Sanghyeon
5e1e487624
Make BytePos 32-bit
2013-11-20 16:51:25 +09:00
Patrick Walton
492677ec1e
libsyntax: Change all uses of &fn to ||.
2013-11-19 12:40:19 -08:00
Patrick Walton
f977bedafd
libsyntax: Remove ~fn() from the language
2013-11-18 18:28:10 -08:00
Brian Anderson
85f107d8cb
Use '..' as slice wildcard in vectors
2013-11-18 16:19:48 -08:00
Brian Anderson
35e6c02524
Use '..' as multi-field wildcard in enums and structs.
2013-11-18 16:19:46 -08:00
Seo Sanghyeon
2337d88339
Fix path parsing
2013-11-11 21:53:14 +09:00
Niko Matsakis
1f4faaee40
Generalize AST and ty::Generics to accept multiple lifetimes.
2013-11-08 19:42:46 -05:00
Luqman Aden
c669ccf3d3
libsyntax/librustc: Allow calling variadic foreign functions.
2013-11-04 23:53:11 -05:00
Patrick Walton
f27272d60f
librustc: Implement |A| -> B syntax for closures and make bare fn
...
work
2013-10-31 10:30:32 -07:00
bors
611c94d984
auto merge of #10134 : reedlepee123/rust/priv_fields, r=brson
2013-10-29 15:11:30 -07:00
Patrick Walton
7e77bf1769
librustc: Implement the proc type as sugar for ~once fn and proc
...
notation for closures, and disable the feature gate for `once fn` if
used with the `~` sigil.
2013-10-29 10:34:17 -07:00
reedlepee
b5e073830b
removed extra line
2013-10-29 21:16:02 +05:30
reedlepee
697813747a
Indentation
2013-10-29 21:16:02 +05:30
reedlepee
33b9afac4a
updated the places where the struct is created #7427
2013-10-29 21:16:02 +05:30
reedlepee
6e07377715
Changed name to non_copyable #7427
2013-10-29 21:16:02 +05:30
reedlepee
b7e9b0ce32
Added the comment #7427
2013-10-29 21:16:02 +05:30