Erick Tryzelaar
|
65bd46c8a5
|
rustc: more pattern cleanup
|
2012-08-27 14:10:54 -07:00 |
|
Brian Anderson
|
8337fa1a54
|
Camel case the option type
|
2012-08-26 15:56:16 -07:00 |
|
Patrick Walton
|
8ef4551904
|
rustc: Implement foreign constants.
This is needed for a lot of Apple libraries, as Apple tends to put a lot of
globals in dynamic libraries.
|
2012-08-25 15:09:33 -07:00 |
|
Tim Chevalier
|
5e22fb9c7f
|
Remove match check
|
2012-08-24 22:28:12 -07:00 |
|
Niko Matsakis
|
a8f1bee457
|
fix some unused pattern binding warnings
|
2012-08-24 15:37:21 -07:00 |
|
Michael Sullivan
|
0f996f70a6
|
Remove purity from fn_decl and move it out to containing AST elements.
|
2012-08-23 19:40:01 -07:00 |
|
Paul Stansifer
|
1153b5dcc8
|
intern identifiers
|
2012-08-22 14:59:25 -07:00 |
|
Patrick Walton
|
3038968f28
|
rustc: Perform some AST surgery to separate out class fields from methods
|
2012-08-15 16:20:35 -07:00 |
|
Patrick Walton
|
bdb206f285
|
rustc: Parse labeled loop, break, and again
|
2012-08-15 16:20:34 -07:00 |
|
Patrick Walton
|
4f98e80db1
|
rustc: Do some plumbing work in preparation for common fields in enums
|
2012-08-08 17:15:37 -07:00 |
|
Patrick Walton
|
f110e8f21c
|
rustc: Do some plumbing work on nested enums
|
2012-08-08 14:19:21 -07:00 |
|
Patrick Walton
|
5ce3281a62
|
rustc: Parse variant structs; add a trivial test case
|
2012-08-07 18:55:19 -07:00 |
|
Patrick Walton
|
438765da59
|
rustc: Box struct_defs
|
2012-08-07 17:46:51 -07:00 |
|
Patrick Walton
|
a3f9e18b7a
|
libsyntax: Allow users of the visitor to visit struct defs
|
2012-08-07 15:55:33 -07:00 |
|
Patrick Walton
|
deaef48675
|
rustc: Split out struct bodies into a separate "struct_def" type in the AST
|
2012-08-07 15:35:05 -07:00 |
|
Patrick Walton
|
727c7c7499
|
rustc: Add stub support for struct variants to the AST
|
2012-08-07 14:25:53 -07:00 |
|
Brian Anderson
|
bc267c696c
|
syntax: Rename expr_alt to expr_match
|
2012-08-07 13:35:51 -07:00 |
|
Brian Anderson
|
2772b2e5c7
|
syntax: Make match arm parsing more restrictive again
Require comma separators for all expression types except the plain block
|
2012-08-07 12:23:43 -07:00 |
|
Patrick Walton
|
60f47eabe2
|
rustc: Parse and stub (broken) typechecking for bounded function types
|
2012-08-06 18:55:24 -07:00 |
|
Patrick Walton
|
253dfc3387
|
rustc: Implement pattern matching for structs
|
2012-08-06 17:36:24 -07:00 |
|
Brian Anderson
|
ecaf9e39c9
|
Convert alt to match. Stop parsing alt
|
2012-08-06 15:36:30 -07:00 |
|
Patrick Walton
|
bff512a90f
|
rustc: Implement functional record update for structs
|
2012-08-06 13:17:42 -07:00 |
|
Brian Anderson
|
025d86624d
|
Switch alts to use arrows
|
2012-08-05 22:08:09 -07:00 |
|
Patrick Walton
|
e02b1b1ec8
|
rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]
|
2012-08-03 18:03:19 -07:00 |
|
Patrick Walton
|
b65dd9d090
|
rustc: Parse, serialize, and deserialize trait inheritance
|
2012-08-03 15:02:53 -07:00 |
|
Niko Matsakis
|
31c5cec55b
|
Purge placement new; Make borrowck know about unary move.
cc #3071
|
2012-08-02 22:36:36 -07:00 |
|
Brian Anderson
|
b355936b4d
|
Convert ret to return
|
2012-08-01 19:16:06 -07:00 |
|
Patrick Walton
|
b414db041b
|
rustc: Parse by-reference pattern bindings with the "ref" keyword
|
2012-07-31 19:26:25 -07:00 |
|
Patrick Walton
|
c88933d714
|
rustc: Implement unary move. Closes #917.
|
2012-07-31 17:33:20 -07:00 |
|
Graydon Hoare
|
290f079474
|
Frontend bits for #2317, general const-expr classification.
|
2012-07-30 19:06:06 -07:00 |
|
Graydon Hoare
|
eabd233dcd
|
Start killing off obsolete/unused quoters, and fix long lines.
|
2012-07-27 18:06:24 -07:00 |
|
Patrick Walton
|
587b0edbbf
|
rustc: Don't require that structs have constructors
|
2012-07-24 15:29:51 -07:00 |
|
Patrick Walton
|
df4db83ed8
|
rustc: Max/min classes: Add struct literal syntax
|
2012-07-23 16:40:05 -07:00 |
|
Patrick Walton
|
3ac5b4a86f
|
syntax: Parse multiple trait refs in a single implementation
|
2012-07-18 16:05:17 -07:00 |
|
Tim Chevalier
|
b5729bd600
|
Support attributes on class ctors and dtors
Closes #2660
|
2012-07-17 12:40:59 -07:00 |
|
Niko Matsakis
|
0e42004bab
|
introduce an owned kind for data that contains no borrowed ptrs
|
2012-07-16 20:18:18 -07:00 |
|
Niko Matsakis
|
41a21f053c
|
remove typestate from code, tests, and docs
|
2012-07-14 17:37:20 -07:00 |
|
Michael Sullivan
|
7b2f4755f3
|
Get rid of ast::ty_vstore, which was only used for fixed length.
|
2012-07-14 12:45:52 -07:00 |
|
Michael Sullivan
|
92743dc2a6
|
Move the world over to using the new style string literals and types. Closes #2907.
|
2012-07-14 01:03:43 -07:00 |
|
Michael Sullivan
|
985b52be6d
|
Support prefix notation for vstore strings. Closes #2906.
|
2012-07-13 17:03:49 -07:00 |
|
Lindsey Kuper
|
fc9c4c3245
|
Front-end support for default impls in traits.
|
2012-07-13 11:16:07 -07:00 |
|
Niko Matsakis
|
b9aa9def85
|
infer when types are region parameterized rather than requiring /&
- removes various fields from various variants in the AST
- also update tests not to use this notation
|
2012-07-11 14:41:41 -07:00 |
|
Eric Holk
|
877ebed6cf
|
Visit item macros.
|
2012-07-10 22:00:48 -07:00 |
|
Graydon Hoare
|
ceac155211
|
For #2229, recognize 'again' in place of 'cont', final change pending snapshot.
|
2012-07-06 15:46:39 -07:00 |
|
Eric Holk
|
05cdda3a2c
|
Plumbing and parsing for item-position macros.
|
2012-07-06 10:42:40 -07:00 |
|
Lindsey Kuper
|
33334f3c43
|
Change 'iface' to 'trait' internally; parse trait as iface synonym
|
2012-07-05 11:01:43 -07:00 |
|
Brian Anderson
|
ae6ea068a1
|
Revert "Remove rule requiring non-nil block-style statements to be semi-terminated"
This reverts commit 0f5eaef5fb2443acd3ea67250c953839c3d04d38.
|
2012-07-03 17:30:25 -07:00 |
|
Brian Anderson
|
0f5eaef5fb
|
Remove rule requiring non-nil block-style statements to be semi-terminated
This is a subtle rule that no longer seems to be required.
|
2012-07-03 17:03:52 -07:00 |
|
Brian Anderson
|
d1fc2b5995
|
Convert to new closure syntax
|
2012-07-01 19:19:32 -07:00 |
|
Brian Anderson
|
a3382b6f26
|
Eliminate usages of old sugared call syntax
|
2012-06-30 16:01:49 -07:00 |
|