Patrick Walton
4d66af2698
librustc: De-@mut the span handler
2014-01-03 14:01:57 -08:00
Patrick Walton
7e1b535eb1
libsyntax: De-@mut StringReader, TtReader, and reader
2014-01-03 14:01:57 -08:00
Patrick Walton
2b83377b29
libsyntax: De-@mut TtReader::stack
2014-01-03 14:01:57 -08:00
Patrick Walton
b597207ced
libsyntax: De-@mut TtReader::cur_span
2014-01-03 14:01:57 -08:00
Patrick Walton
c233c2edfd
libsyntax: De-@mut TtReader::cur_tok
2014-01-03 14:01:57 -08:00
Patrick Walton
bac8b2e557
libsyntax: De-@mut TtReader::repeat_len
2014-01-03 14:01:57 -08:00
Patrick Walton
db21387ad0
libsyntax: De-@mut TtReader::repeat_idx
2014-01-03 14:01:57 -08:00
Patrick Walton
3810bea0da
libsyntax: De-@mut TtReader::interpolations
2014-01-03 14:01:57 -08:00
Patrick Walton
185608754d
libsyntax: De-@mut StringReader::peek_span
2014-01-03 14:01:57 -08:00
Patrick Walton
a214b8e41d
libsyntax: De-@mut StringReader::peek_tok
2014-01-03 14:01:57 -08:00
Patrick Walton
501a6c816a
libsyntax: De-@mut StringReader::curr
2014-01-03 14:01:56 -08:00
Patrick Walton
aa3527a1a3
libsyntax: De-@mut StringReader::col
2014-01-03 14:01:56 -08:00
Patrick Walton
13b235d1e5
libsyntax: De-@mut StringReader::last_pos
2014-01-03 14:01:56 -08:00
Patrick Walton
b33386d055
libsyntax: De-@mut StringReader::pos
2014-01-03 14:01:56 -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
bors
08321f1c49
auto merge of #11149 : alexcrichton/rust/remove-either, r=brson
...
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-03 12:16:48 -08:00
Alex Crichton
4bea679dbe
Remove std::either
2014-01-03 10:25:23 -08:00
bors
11ce6b709a
auto merge of #11276 : brson/rust/0.9, r=pcwalton
2014-01-03 09:56:44 -08:00
bors
b9c39c6a27
auto merge of #11228 : sfackler/rust/syntaxenv, r=pcwalton
...
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-03 04:32:07 -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
Brian Anderson
56ec9c23a4
Bump version to 0.9
2014-01-02 12:55:20 -08:00
bors
0df9b850ac
auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwalton
...
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-02 11:32:09 -08:00
Jan Niklas Hasse
3d43543c21
Output columns 1-based. Fixes #10848
2014-01-02 02:07:21 +01:00
Florian Hahn
f42a36cded
Remove extern mod foo (name="bar") syntax, closes #9543
2014-01-01 23:36:57 +01:00
bors
c34ef5d7e4
auto merge of #11255 : klutzy/rust/small-cleanup, r=pcwalton
...
This patchset removes some `@`s and unnecessary traits,
and replaces a function (`dummy_sp()`) returning constant value
by static variable.
2014-01-01 11:06:51 -08:00
Huon Wilson
8f26d0b9b8
syntax: expand impl_pretty_name to handle more cases.
...
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-02 02:53:54 +11:00
klutzy
9cdad685a3
syntax::codemap: Add static DUMMY_SP
...
It replaces `dummy_sp()`.
2014-01-01 19:51:35 +09:00
klutzy
db204b20ab
syntax::diagnostic: Remove @ from Emitter
2014-01-01 19:10:43 +09:00
klutzy
fe10c63326
syntax::diagnostic: Remove unnecessary traits
...
This removes trait `handler` and `span_handler`,
and renames `HandlerT` to `Handler`, `CodemapT` to `SpanHandler`.
2014-01-01 19:10:43 +09:00
Steven Fackler
b74613bdc4
Rewrite SyntaxEnv
...
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-30 17:50:05 -08:00
bors
f37b746699
auto merge of #11182 : luisbg/rust/crateid, r=cmr
...
Issue #11048
2013-12-30 04:32:09 -08:00
Steven Fackler
dc830345e8
Remove @muts from ExtCtxt
2013-12-29 23:41:09 -08:00
Steven Fackler
8143662836
Start passing around &mut ExtCtxt
2013-12-29 23:41:09 -08:00
Steven Fackler
3965dddf49
Make ast_fold take &mut self
2013-12-29 23:41:05 -08:00