Alex Crichton
c4d36b85a0
Fix remaining cases of leaking imports
2014-01-07 23:51:38 -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
Steven Fackler
3965dddf49
Make ast_fold take &mut self
2013-12-29 23:41:05 -08:00
Steven Fackler
933def408c
Stop passing duplicate parameters in expand
2013-12-28 21:16:03 -07:00
Steven Fackler
711d5106bc
Remove unecessary extern "Rust" specifiers
2013-12-28 21:16:03 -07:00
Steven Fackler
0607c138ca
Stop using @ExtCtxt
2013-12-28 21:16:03 -07:00
Alex Crichton
282f3d99a5
Test fixes and rebase problems
...
Note that this removes a number of run-pass tests which are exercising behavior
of the old runtime. This functionality no longer exists and is thoroughly tested
inside of libgreen and libnative. There isn't really the notion of "starting the
runtime" any more. The major notion now is "bootstrapping the initial task".
2013-12-24 19:59:53 -08:00
Alex Crichton
51abdee5f1
green: Rip the bandaid off, introduce libgreen
...
This extracts everything related to green scheduling from libstd and introduces
a new libgreen crate. This mostly involves deleting most of std::rt and moving
it to libgreen.
Along with the movement of code, this commit rearchitects many functions in the
scheduler in order to adapt to the fact that Local::take now *only* works on a
Task, not a scheduler. This mostly just involved threading the current green
task through in a few locations, but there were one or two spots where things
got hairy.
There are a few repercussions of this commit:
* tube/rc have been removed (the runtime implementation of rc)
* There is no longer a "single threaded" spawning mode for tasks. This is now
encompassed by 1:1 scheduling + communication. Convenience methods have been
introduced that are specific to libgreen to assist in the spawning of pools of
schedulers.
2013-12-24 19:59:52 -08:00
Seo Sanghyeon
4a13364010
Remove obsolete mutability from ast::Ty
2013-12-17 03:01:40 +09:00
bors
9bbef13702
auto merge of #10698 : metajack/rust/dep-info, r=alexcrichton
...
This isn't super useful for libraries yet without #10593 .
Fixes #7633 .
2013-12-13 00:32:47 -08:00
Erik Price
5731ca3078
Make 'self lifetime illegal.
...
Also remove all instances of 'self within the codebase.
This fixes #10889 .
2013-12-11 10:54:06 -08:00
Jack Moffitt
5bd4d2ea7a
Fix missing code map entry for uses of include_str!
.
2013-12-10 20:18:17 -07:00
Seo Sanghyeon
3b14f25868
Extend allocation lint for boxing expressions
2013-12-10 01:17:32 +09:00
Kiet Tran
1755408d1a
Remove dead codes
2013-12-08 02:55:28 -05:00