Patrick Walton
e12711540a
librustc: Implement placement box
for GC and unique pointers.
2014-01-09 16:05:34 -08:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
Nick Cameron
01f42eed80
Start the span for a path in a view_path at the correct place (at the start of the path, rather than at the start of the view_path).
2014-01-09 20:12:23 +13:00
Marvin Löbel
90b394514d
Renamed Option::map_default and mutate_default to map_or and mutate_or_set
2014-01-08 00:53:40 +01:00
Patrick Walton
82a09b9a04
librustc: Remove @mut
support from the parser
2014-01-03 14:02:01 -08:00
Patrick Walton
4269f85d5b
libsyntax: De-@mut
name_idx
2014-01-03 14:01:58 -08:00
Patrick Walton
7e1b535eb1
libsyntax: De-@mut
StringReader
, TtReader
, and reader
2014-01-03 14:01:57 -08:00
Patrick Walton
3aa19a6b86
librustc: De-@mut
the parse session
2014-01-03 14:01:56 -08:00
Patrick Walton
f553701da6
libsyntax: De-@mut
ParseSess::included_mod_stack
2014-01-03 14:01:56 -08:00
Patrick Walton
f3eee0ebad
libsyntax: Fix test and merge fallout.
2014-01-02 14:42:06 -08:00
Patrick Walton
8b088d493c
libsyntax: Long line
2014-01-02 14:16:08 -08:00
Patrick Walton
460ea922f3
libsyntax: Remove increasingly inaccurate comment
2014-01-02 14:16:08 -08:00
Patrick Walton
f4118d5a4c
libsyntax: De-@mut
Parser::open_braces
2014-01-02 14:16:08 -08:00
Patrick Walton
a2f4877862
libsyntax: De-@mut
Parser::mod_path_stack
2014-01-02 14:16:08 -08:00
Patrick Walton
e0a5460e94
libsyntax: De-@mut
Parser::obsolete_set
2014-01-02 14:16:08 -08:00
Patrick Walton
4ee95cf96c
libsyntax: De-@mut
Parser::restriction
2014-01-02 14:16:08 -08:00
Patrick Walton
6992a5c77d
libsyntax: De-@mut
Parser::tokens_consumed
2014-01-02 14:16:08 -08:00
Patrick Walton
55a90f5928
libsyntax: De-@mut
Parser::buffer_start
and Parser::buffer_end
2014-01-02 14:16:07 -08:00
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