Eduard Burtescu
509fc92a9b
Removed remnants of @mut and ~mut from comments and the type system.
2014-01-12 02:26:04 +02:00
bors
99df8a3f15
auto merge of #11463 : brson/rust/envcaps, r=huonw
...
Death to caps.
2014-01-11 06:11:22 -08:00
Brian Anderson
cdc44940b7
syntax: Fix capitalization in macro_parser errors
2014-01-10 18:06:35 -08:00
Brian Anderson
60e096a43f
rustc: Fix formatting of env! error message
...
Death to caps.
2014-01-10 17:57:02 -08:00
Brendan Zabarauskas
4fc0452ace
Remove re-exports of std::io::stdio::{print, println} in the prelude.
...
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-11 10:46:00 +11:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
Brendan Zabarauskas
ceea85a148
Remove ApproxEq and assert_approx_eq!
...
This trait seems to stray too far from the mandate of a standard library as implementations may vary between use cases.
2014-01-09 15:41:46 +11:00
bors
97005c0068
auto merge of #11401 : michaelwoerister/rust/issue11322, r=alexcrichton
...
`expand_include_str()` in libsyntax seems to have corrupted the CodeMap by always setting the BytePos of any included files to zero. It now uses `CodeMap::new_filemap()` which should set everything properly. This should fix issue #11322 but I don't want to close it before I have confirmation from the reporters that the problem is indeed fixed.
2014-01-08 11:26:30 -08:00
bors
430652c970
auto merge of #11370 : alexcrichton/rust/issue-10465, r=pwalton
...
Turned out to be a 2-line fix, but the compiler fallout was huge.
2014-01-08 10:06:45 -08:00
Michael Woerister
ad3a179954
Fix CodeMap issue in expand_include_str()
2014-01-08 16:38:58 +01:00
Alex Crichton
0547fb9cad
Fixup the rest of the tests in the compiler
2014-01-07 23:51:38 -08:00
Alex Crichton
c4d36b85a0
Fix remaining cases of leaking imports
2014-01-07 23:51:38 -08:00
Brian Anderson
d323632669
'borrowed pointer' -> 'reference'
2014-01-07 18:49:13 -08:00
bors
bae091e517
auto merge of #11332 : sfackler/rust/de-at-se, r=huonw
...
This is necessary for #11151 to make sure dtors run before the libraries
are unloaded.
2014-01-06 07:26:48 -08:00
Eduard Burtescu
3119d18e55
Disowned the Visitor.
2014-01-06 14:00:46 +02:00
Steven Fackler
bb49916d21
Use ~-objects instead of @-objects for syntax exts
...
This is necessary for #11151 to make sure dtors run before the libraries
are unloaded.
2014-01-05 18:02:57 -08:00
Adrien Tétar
24f9a93872
etc: licenseck: don't hardcode a specific year
2014-01-04 21:49:52 +01:00
Patrick Walton
8092153634
libsyntax: Fix tests.
2014-01-03 22:22:40 -08:00
Patrick Walton
82a09b9a04
librustc: Remove @mut support from the parser
2014-01-03 14:02:01 -08:00
Patrick Walton
901df8a63b
libsyntax: Remove unused MultiRenamer
2014-01-03 14:02:00 -08:00
Patrick Walton
6043957d8d
libsyntax: De-@mut ps::boxes
2014-01-03 14:02:00 -08:00
Patrick Walton
4c85cf7a40
libsyntax: De-@mut CodeMap::files
2014-01-03 14:01:59 -08:00
Patrick Walton
39f39ed40b
libsyntax: De-@mut FileMap::multibyte_chars
2014-01-03 14:01:59 -08:00
Patrick Walton
27cc3d203b
libsyntax: De-@mut FileMap::lines
2014-01-03 14:01:59 -08:00
Patrick Walton
ada9150abf
libsyntax: Correctly de-@mut the pretty printer writer
2014-01-03 14:01:59 -08:00
Patrick Walton
be17a1b08c
libsyntax: De-@mut SCTable::table
2014-01-03 14:01:59 -08:00
Patrick Walton
d347d5a762
libsyntax: De-@mut TtFrame
2014-01-03 14:01:58 -08:00
Patrick Walton
a7f7482e79
libsyntax: De-@mut TtFrame::idx
2014-01-03 14:01:58 -08:00
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
3aa19a6b86
librustc: De-@mut the parse session
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
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
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
klutzy
9cdad685a3
syntax::codemap: Add static DUMMY_SP
...
It replaces `dummy_sp()`.
2014-01-01 19:51:35 +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
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