Patrick Walton
88281290ff
librustc: Remove @mut
support from the typechecker and borrow checker
2014-01-03 14:02:01 -08:00
Patrick Walton
449ebeea08
librustc: De-@mut
the AST map
2014-01-03 14:01:58 -08:00
Patrick Walton
497b63ddf0
librustc: De-@mut
all writers
2014-01-03 14:01:58 -08:00
Patrick Walton
b26018cc89
librustc: De-@mut
(and de-@
) the pretty printer
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
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
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
bors
3249de8c4f
auto merge of #11274 : michaelwoerister/rust/issue11083, r=pcwalton
...
This pull request fixes #11083 . The problem was that recursive type definitions were not properly handled for enum types, leading to problems with LLVM's metadata "uniquing". This bug has already been fixed for struct types some time ago (#9658 ) but I seem to have forgotten about enums back then. I added the offending code from issue #11083 as a test case.
2014-01-02 09:02:01 -08:00
Michael Woerister
6d20876c3f
debuginfo: Fix issue #11083 and some minor clean up.
2014-01-02 15:20:43 +01:00
bors
ff578b7c83
auto merge of #11269 : am0d/rust/lint_typo, r=sanxiyn
2014-01-02 03:32:02 -08:00
bors
bbdf645811
auto merge of #11268 : lkuper/rust/trans-comment, r=pcwalton
2014-01-02 02:11:48 -08:00
bors
8ba61514c9
auto merge of #11246 : ktt3ja/rust/issue-11224, r=alexcrichton
...
Close #11224
2014-01-01 22:12:11 -08:00
bors
a96951048c
auto merge of #11245 : alexcrichton/rust/issue-11225, r=pcwalton
...
Commit messages are a little more descriptive.
2014-01-01 20:56:54 -08:00
a_m0d
65baedfa1f
Fix typo in lint description.
2014-01-01 23:50:11 -05:00
Lindsey Kuper
99dbb1d51f
Fix comment that's been wrong since ancient times (thanks, @jvns).
2014-01-01 23:02:02 -05:00
bors
1b14a9393a
auto merge of #11242 : Dretch/rust/hashmap-key-value-iterators, r=pcwalton
2014-01-01 17:11:57 -08:00
Florian Hahn
f42a36cded
Remove extern mod foo (name="bar")
syntax, closes #9543
2014-01-01 23:36:57 +01: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
bors
e61937a6bf
auto merge of #11187 : alexcrichton/rust/once, r=brson
...
Rationale can be found in the first commit, but this is basically the same thing as `pthread_once`
2013-12-31 20:41:56 -08:00
Alex Crichton
c22fed9424
Convert relevant static mutexes to Once
2013-12-31 20:15:03 -08:00
Kiet Tran
576a85105f
Mark provided methods in dead-code pass
2013-12-31 16:19:57 -05:00
Alex Crichton
0daaeab244
Conservatively export all trait methods and impls
...
The comments have more information as to why this is done, but the basic idea is
that finding an exported trait is actually a fairly difficult problem. The true
answer lies in whether a trait is ever referenced from another exported method,
and right now this kind of analysis doesn't exist, so the conservative answer of
"yes" is always returned to answer whether a trait is exported.
Closes #11224
Closes #11225
2013-12-31 12:42:13 -08:00
Gareth Smith
d435f4f059
Fix issue #11216 - Replace std::hashmap::{each_key, each_value} with iterators.
2013-12-31 20:29:39 +00:00
Peter Zotov
f98f83a15d
Implement volatile_load and volatile_store intrinsics.
2013-12-31 02:54:25 +04:00
bors
f37b746699
auto merge of #11182 : luisbg/rust/crateid, r=cmr
...
Issue #11048
2013-12-30 04:32:09 -08:00
Steven Fackler
3965dddf49
Make ast_fold take &mut self
2013-12-29 23:41:05 -08:00
Luis de Bethencourt
f872c47278
Rename PkgId to CrateId
2013-12-29 15:25:32 -05:00
bors
2922697087
auto merge of #11175 : klutzy/rust/ice, r=alexcrichton
...
`ln_str` caused ICE if `RUST_LOG=rustc::middle::liveness` is given
due to borrow failure.
2013-12-28 14:12:01 -08:00
klutzy
eaae0ac68a
rustc: Fix a borrow failure in .ln_str()
...
`ln_str` caused ICE if `RUST_LOG=rustc::middle::liveness` is given
due to borrow failure.
2013-12-29 02:47:12 +09:00
Luqman Aden
1265a03139
librustc: Implement coercion for traits.
2013-12-27 03:26:46 -05:00
Patrick Walton
ad160146fd
librustc: Fix tidy problem.
2013-12-26 15:54:37 -08:00
Patrick Walton
cc0584731a
librustc: De-@mut
the def map.
...
This is the last `@mut` in `librustc` that does not depend on libsyntax.
2013-12-26 15:54:37 -08:00
Patrick Walton
56b9a207ab
librustc: De-@mut
the value and type ribs in the resolver
2013-12-26 15:54:37 -08:00
Patrick Walton
c48335e334
librustc: De-@mut
Module::imports
in the resolver
2013-12-26 15:54:37 -08:00
Patrick Walton
47846110a4
librustc: Fully de-@mut
trait_impls
in the type context
2013-12-26 15:54:37 -08:00
Patrick Walton
fecef74d57
librustc: De-@mut
the inherent implementations list
2013-12-26 15:54:37 -08:00
Patrick Walton
1f76a9ba5e
librustc: De-@mut
populated_external_traits
in the type context
2013-12-26 15:54:37 -08:00
Patrick Walton
e4815b6c3f
librustc: De-@mut
the users
list in liveness
2013-12-26 15:54:37 -08:00
Patrick Walton
ff23e1202f
librustc: De-@mut
BindingRscope::anon_bindings
2013-12-26 15:54:36 -08:00
Patrick Walton
d7b152701e
librustc: De-@mut
building_library
in the session
2013-12-26 15:54:36 -08:00
Patrick Walton
eaf69494a5
librustc: De-@mut
the loop scope in liveness
2013-12-26 15:54:36 -08:00
Patrick Walton
298d0b870f
librustc: De-@mut
label_ribs
in the resolver
2013-12-26 15:54:36 -08:00
Patrick Walton
7f816b7ef4
librustc: De-@mut
the idstack
in constant checking
2013-12-26 15:54:36 -08:00
Patrick Walton
8c703643ad
librustc: De-@mut
the reachability worklist
2013-12-26 15:54:36 -08:00
Patrick Walton
4b4ff2cf8b
librustc: De-@mut
DynamicFailureHandler::finished
2013-12-26 15:54:36 -08:00
Patrick Walton
fc0b466fd4
librustc: De-@mut
all_loans
in the borrow checker
2013-12-26 15:54:36 -08:00
Patrick Walton
0afae85bc2
librustc: De-@mut
inherent_candidates
and extension_candidates
in
...
method lookup
2013-12-26 15:54:36 -08:00