Patrick Walton
8d7e6ef772
libsyntax: Forbid ~mut
and ~const
. rs=demuting
2013-02-27 09:40:15 -08:00
Erick Tryzelaar
ea36a0dee1
libsyntax: add some more explicit copies
2013-02-26 20:48:12 -08:00
Erick Tryzelaar
da7aedc230
libsyntax: add some explicit refs
2013-02-26 20:48:12 -08:00
Erick Tryzelaar
5271464cc0
libsyntax: remove vecs_implicitly_copyable from the syntax extensions
2013-02-26 20:48:12 -08:00
Erick Tryzelaar
5f1652f34f
libsyntax: remove vecs_implicitly_copyable from the printer
2013-02-26 20:48:11 -08:00
Erick Tryzelaar
4ae91e2961
libsyntax: add explicit copies
2013-02-26 20:48:11 -08:00
Erick Tryzelaar
8d239a256d
libsyntax: change closures to take fn(&Parser)
2013-02-26 20:48:06 -08:00
bors
99a902c81d
auto merge of #5120 : jbclements/rust/macros-have-scope, r=pcwalton
...
r?
After this patch, macros declared in a module, function, or block can only be used inside of that module, function or block, with the exception of modules declared with the #[macro_escape] attribute; these modules allow macros to escape, and can be used as a limited macro export mechanism.
This pull request also includes miscellaneous comments, lots of new test cases, a few renamings, and a few as-yet-unused data definitions for hygiene.
2013-02-26 20:00:38 -08:00
John Clements
6aefaf22c7
typo-fixing and name-changes
2013-02-26 15:48:00 -08:00
John Clements
08b6057538
Macros now leave scope
...
Macro scope is now delimited by function, block, and module boundaries,
except for modules that are marked with #[macro_escape], which allows
macros to escape.
2013-02-26 10:36:55 -08:00
John Clements
5e319fb282
Adds (more) test cases for auto_encode.
2013-02-26 10:26:42 -08:00
Patrick Walton
24893e8d02
libsyntax: Stop parsing ~mut
2013-02-26 04:18:12 -08:00
Patrick Walton
9b8ce0d3b5
libsyntax: Remove a mutable field from the tests. rs=demuting
2013-02-26 04:18:11 -08:00
Erick Tryzelaar
375c298297
libsyntax: change binop_to_str to be pure
2013-02-26 03:22:14 -08:00
Erick Tryzelaar
de6d9f66b5
libsyntax: change token_is_word to take &Token
2013-02-26 02:58:39 -08:00
Erick Tryzelaar
34c02a6c0e
libsyntax: change Parser::unexpected_last to take &Token
2013-02-26 02:36:21 -08:00
Erick Tryzelaar
28691a0852
libsyntax: more minor cleanup
2013-02-26 02:14:01 -08:00
Erick Tryzelaar
ff36986fa4
libsyntax: change token fns to take &Token
2013-02-26 01:51:41 -08:00
Erick Tryzelaar
d346b51997
libsyntax: change token::to_str to take &Token
2013-02-26 01:29:27 -08:00
Erick Tryzelaar
194f29c20f
libsyntax: minor cleanup
2013-02-26 01:07:09 -08:00
Erick Tryzelaar
380597eba3
libsyntax: change parse_matcher_subseq to take &Token
2013-02-26 00:44:49 -08:00
Erick Tryzelaar
cf6e21a17f
libsyntax: change attr::parse_seq_* to take &Token
2013-02-26 00:22:30 -08:00
Erick Tryzelaar
3180d22dde
libsyntax: change parse_trait_ref_list to take a &Token
2013-02-26 00:00:04 -08:00
Erick Tryzelaar
bff22cf166
libsyntax: add some explicit copies
2013-02-25 23:37:45 -08:00
Erick Tryzelaar
752befe2a6
libsyntax: change token_is_{word,keyword} to take &Token
2013-02-25 23:15:22 -08:00
Erick Tryzelaar
272c25e938
libsyntax: minor cleanup
2013-02-25 22:52:57 -08:00
Erick Tryzelaar
3635480b15
libsyntax: change expect to take &token::Token
2013-02-25 22:30:32 -08:00
Erick Tryzelaar
f3965829ff
libsyntax: change flip_delimiter to take a &token::Token
2013-02-25 22:08:09 -08:00
Erick Tryzelaar
4650da5888
libsyntax: change eat to take a &token
2013-02-25 21:45:46 -08:00
Erick Tryzelaar
1deb858b22
libsyntax: is_keyword should take a &~str
2013-02-25 21:23:21 -08:00
Erick Tryzelaar
8b94ef0302
libsyntax: fix the span in parse_bottom_expr's INTERPOLATED handler
2013-02-25 21:00:53 -08:00
Ben Striegel
abc4ea2001
Stop parsing capture clauses
2013-02-25 19:49:28 -05:00
Erick Tryzelaar
d20438695e
libsyntax: make lexer vecs_implicitly_copyable-free
2013-02-25 08:12:01 -08:00
Erick Tryzelaar
f14409c528
libsyntax: progress on making syntax::visit vecs_implicitly_copyable-free
2013-02-25 07:49:34 -08:00
Erick Tryzelaar
9ac5262bdf
libsyntax: convert visit to pass ty_params by reference
2013-02-25 07:27:01 -08:00
Erick Tryzelaar
297c6e11bb
libsyntax: minor cleanup
2013-02-25 07:03:48 -08:00
Erick Tryzelaar
44f5537abf
libsyntax: add explicit modes where required to copy strs/vecs
2013-02-25 06:40:53 -08:00
Erick Tryzelaar
5b9e110eab
libsyntax: Convert ast::attribute_ to store a @meta_item
2013-02-25 06:19:44 -08:00
Patrick Walton
a07192fadd
libsyntax: Remove all mutable fields from libsyntax. rs=demuting
2013-02-22 16:09:16 -08:00
Patrick Walton
934c938f90
libsyntax: De-mut the parser. rs=demuting
2013-02-22 16:09:16 -08:00
Patrick Walton
77dc3ad810
libsyntax: De-mut the macro parser. rs=demuting
2013-02-22 16:09:16 -08:00
Patrick Walton
17dcaee9d1
libsyntax: De-mut the pipe compiler
2013-02-22 16:09:15 -08:00
bors
c316189d15
auto merge of #5081 : brson/rust/pipes, r=pcwalton
...
r?
2013-02-22 11:24:38 -08:00
bors
cec1f38c30
auto merge of #5077 : jbclements/rust/increase-monomorphization-depth-limit, r=catamorphism
...
It appears that using deriving_eq/auto_encode on ASTs bumps up against the "gee this looks like infinite unfolding" limit of 10 in monomorphization. Increasing it to 30 seems to solve this problem for me....
Also, commenting and a few renames.
2013-02-21 19:36:35 -08:00
bors
e7924ce18f
auto merge of #5076 : pcwalton/rust/demuting, r=pcwalton
2013-02-21 18:27:32 -08:00
Brian Anderson
dab6a85230
core: Extract comm from pipes. #4742
2013-02-21 17:36:54 -08:00
bors
f5cc0b9830
auto merge of #5075 : luqmana/rust/derec, r=catamorphism
...
Now only `lib core/pipes.rs` has `#[allow(structural_records)]`. That can be removed after a snapshot.
2013-02-21 17:30:32 -08:00
bors
ab784b7de5
auto merge of #5059 : Kimundi/rust/incoming, r=catamorphism
...
compiles-as-is, but needs a snapshot to remove the `stage0`ed extfmt export in core.
Closes #4750
2013-02-21 16:42:35 -08:00
John Clements
27b06777e6
Cleanup, commenting, trivial renaming
2013-02-21 16:17:06 -08:00
Patrick Walton
553c27c515
librustc: De-mut some of trans
2013-02-21 15:45:55 -08:00