summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2014-01-03libsyntax: De-`@mut` `TtReader::repeat_idx`Patrick Walton-17/+29
2014-01-03libsyntax: De-`@mut` `TtReader::interpolations`Patrick Walton-4/+9
2014-01-03libsyntax: De-`@mut` `StringReader::peek_span`Patrick Walton-9/+10
2014-01-03libsyntax: De-`@mut` `StringReader::peek_tok`Patrick Walton-10/+13
2014-01-03libsyntax: De-`@mut` `StringReader::curr`Patrick Walton-76/+80
2014-01-03libsyntax: De-`@mut` `StringReader::col`Patrick Walton-7/+7
2014-01-03libsyntax: De-`@mut` `StringReader::last_pos`Patrick Walton-48/+54
2014-01-03libsyntax: De-`@mut` `StringReader::pos`Patrick Walton-13/+14
2014-01-03librustc: De-`@mut` the parse sessionPatrick Walton-45/+44
2014-01-03libsyntax: De-`@mut` `ParseSess::included_mod_stack`Patrick Walton-16/+29
2014-01-03auto merge of #11149 : alexcrichton/rust/remove-either, r=brsonbors-37/+40
Had to change some stuff in typeck to bootstrap (getting methods in fmt off of Either), but other than that not so painful. Closes #9157
2014-01-03Remove std::eitherAlex Crichton-37/+40
2014-01-03auto merge of #11276 : brson/rust/0.9, r=pcwaltonbors-1/+1
2014-01-03auto merge of #11228 : sfackler/rust/syntaxenv, r=pcwaltonbors-247/+129
I'd really like to be able to do something like ```rust struct MapChain<'next, K, V> { info: BlockInfo, map: HashMap<K, V>, next: Option<&'next mut MapChain<'next, K, V> } ``` but I can't get the lifetimes to work out.
2014-01-02libsyntax: Fix test and merge fallout.Patrick Walton-4/+4
2014-01-02libsyntax: Long linePatrick Walton-1/+2
2014-01-02libsyntax: Remove increasingly inaccurate commentPatrick Walton-1/+0
2014-01-02libsyntax: De-`@mut` `Parser::open_braces`Patrick Walton-5/+9
2014-01-02libsyntax: De-`@mut` `Parser::mod_path_stack`Patrick Walton-4/+3
2014-01-02libsyntax: De-`@mut` `Parser::obsolete_set`Patrick Walton-2/+2
2014-01-02libsyntax: De-`@mut` `Parser::restriction`Patrick Walton-7/+7
2014-01-02libsyntax: De-`@mut` `Parser::tokens_consumed`Patrick Walton-3/+3
2014-01-02libsyntax: De-`@mut` `Parser::buffer_start` and `Parser::buffer_end`Patrick Walton-13/+13
2014-01-02libsyntax: De-`@mut` `Parser::buffer`Patrick Walton-3/+3
2014-01-02libsyntax: De-`@mut` `Parser::last_token`Patrick Walton-3/+3
2014-01-02libsyntax: De-`@mut` `Parser::last_span`Patrick Walton-34/+32
2014-01-02libsyntax: De-`@mut` `Parser::span`Patrick Walton-52/+54
2014-01-02libsyntax: De-`@mut` `token` in the parserPatrick Walton-251/+251
2014-01-02libsyntax: De-`@mut` `quote_depth` in the parserPatrick Walton-7/+7
2014-01-02libsyntax: Make the parser mutablePatrick Walton-487/+518
2014-01-02Bump version to 0.9Brian Anderson-1/+1
2014-01-02auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwaltonbors-13/+19
This patch for #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this? I think the wording of the error message could probably be improved as well. If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
2014-01-02Output columns 1-based. Fixes #10848Jan Niklas Hasse-2/+2
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-13/+19
2014-01-01auto merge of #11255 : klutzy/rust/small-cleanup, r=pcwaltonbors-124/+92
This patchset removes some `@`s and unnecessary traits, and replaces a function (`dummy_sp()`) returning constant value by static variable.
2014-01-02syntax: expand impl_pretty_name to handle more cases.Huon Wilson-16/+61
The resulting symbol names aren't very pretty at all: trait Trait { fn method(&self); } impl<'a> Trait for ~[(&'a int, fn())] { fn method(&self) {} } gives Trait$$UP$$VEC$$TUP_2$$BP$int$$FN$$::method::...hash...::v0.0 However, at least it contain some reference to the Self type, unlike `Trait$__extensions__::method:...`, which is what the symbol name used to be for anything other than `impl Trait for foo::bar::Baz` (which became, and still becomes, `Trait$Baz::method`).
2014-01-01syntax::codemap: Add static DUMMY_SPklutzy-23/+20
It replaces `dummy_sp()`.
2014-01-01syntax::diagnostic: Remove @ from Emitterklutzy-12/+12
2014-01-01syntax::diagnostic: Remove unnecessary traitsklutzy-89/+60
This removes trait `handler` and `span_handler`, and renames `HandlerT` to `Handler`, `CodemapT` to `SpanHandler`.
2013-12-30Rewrite SyntaxEnvSteven Fackler-247/+129
I'd really like to be able to do something like struct MapChain<'next, K, V> { info: BlockInfo, map: HashMap<K, V>, next: Option<&'next mut MapChain<'next, K, V> } but I can't get the lifetimes to work out.
2013-12-30auto merge of #11182 : luisbg/rust/crateid, r=cmrbors-55/+55
Issue #11048
2013-12-29Remove @muts from ExtCtxtSteven Fackler-20/+20
2013-12-29Start passing around &mut ExtCtxtSteven Fackler-48/+49
2013-12-29Make ast_fold take &mut selfSteven Fackler-101/+102
2013-12-29Rename PkgId to CrateIdLuis de Bethencourt-53/+53
2013-12-29Rename pkgid variablesLuis de Bethencourt-2/+2
2013-12-28Stop passing duplicate parameters in expandSteven Fackler-128/+92
2013-12-28Remove unecessary extern "Rust" specifiersSteven Fackler-17/+8
2013-12-28Stop using @ExtCtxtSteven Fackler-138/+138
2013-12-26Register new snapshotsAlex Crichton-2/+0