Eduard Burtescu
8e2027a082
Add noalias and noreturn attributes in more cases.
2014-01-14 19:17:38 +02:00
Luqman Aden
d42e75883b
librustc: Don't translate an expr twice when implicitly coercing to a trait object. Fixes #11197 .
2014-01-13 20:52:44 -05:00
Patrick Walton
119c6141f5
librustc: Remove @
pointer patterns from the language
2014-01-13 14:45:21 -08:00
Eduard Burtescu
509fc92a9b
Removed remnants of @mut
and ~mut
from comments and the type system.
2014-01-12 02:26:04 +02:00
Eduard Burtescu
08ac616d37
Use the right type for self in methods and remove obsoleted items.
...
Fixes #7411 , #10615 .
2014-01-11 16:40:23 +02:00
Eduard Burtescu
7a305f9e83
Removed free_glue from tydesc (the code is still generated, but inlined in drop_glue).
2014-01-11 16:40:23 +02:00
Eduard Burtescu
5ad2a7825b
Removed obsolete 'e' prefix on ty_evec and ty_estr.
2014-01-11 16:40:23 +02: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
Jed Davis
5487f15bbf
Fix ICE on const of nullable enum with fields in null case.
...
That is, if you have an enum type that is subject to the nullable
pointer optimization, but the null variant has a nonzero number of
fields, and you declare a static whose value is of that variant, then
that used to be an ICE but this change fixes it.
2014-01-09 22:24:31 -08:00
bors
ff3d5d4603
auto merge of #11055 : pcwalton/rust/placement-box, r=pcwalton
...
r? @nikomatsakis
2014-01-09 16:11:18 -08:00
Patrick Walton
e12711540a
librustc: Implement placement box
for GC and unique pointers.
2014-01-09 16:05:34 -08:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
bors
c34fc5e33b
auto merge of #11387 : pcwalton/rust/de-at-block, r=alexcrichton
...
r? @brson
2014-01-09 02:26:26 -08:00
Patrick Walton
5e637a890c
librustc: Move block contexts into per-function arenas, and
...
stack-allocate function contexts.
2014-01-07 17:00:47 -08:00
Raphael Catolino
1812a7b540
Remove unnecessary substitution of type params when generating
...
vtable methods before translating the ref to the method itself.
2014-01-08 00:56:16 +01:00
Eduard Burtescu
3119d18e55
Disowned the Visitor.
2014-01-06 14:00:46 +02:00
Brian Anderson
3b1862a82f
Don't allow newtype structs to be dereferenced. #6246
2014-01-04 14:44:12 -08:00
Brian Anderson
18cef3fad4
Don't allow single-variant enums to be dereferenced. #6246
...
I'm not sure if this was even intentional at this point.
2014-01-04 13:17:31 -08:00
Patrick Walton
82a09b9a04
librustc: Remove @mut
support from the parser
2014-01-03 14:02:01 -08:00
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
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
Lindsey Kuper
99dbb1d51f
Fix comment that's been wrong since ancient times (thanks, @jvns).
2014-01-01 23:02:02 -05:00
klutzy
9cdad685a3
syntax::codemap: Add static DUMMY_SP
...
It replaces `dummy_sp()`.
2014-01-01 19:51:35 +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
Peter Zotov
f98f83a15d
Implement volatile_load and volatile_store intrinsics.
2013-12-31 02:54:25 +04:00
Luis de Bethencourt
f872c47278
Rename PkgId to CrateId
2013-12-29 15:25:32 -05:00
Luqman Aden
1265a03139
librustc: Implement coercion for traits.
2013-12-27 03:26:46 -05: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
d7b152701e
librustc: De-@mut
building_library
in the session
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
d3fc7b9918
librustc: De-@mut
the translation stats
2013-12-26 15:54:36 -08:00
Patrick Walton
9f6706975b
librustc: De-@mut
fn_stats
in the stats
2013-12-26 15:54:36 -08:00
Patrick Walton
e84f79feb1
librustc: De-@mut
llvm_insns
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
8c3a552ac5
librustc: Remove the unused llvm_insn_ctxt
from the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
97ceac7377
librustc: De-@mut
n_llvm_insns
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
21e4e410a9
librustc: De-@mut
n_closures
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
c010d08cd5
librustc: De-@mut
n_inlines
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
8c7804ffac
librustc: De-@mut
n_monos
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
38572f4981
librustc: De-@mut
n_fns
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
16828bb1dc
librustc: De-@mut
n_real_glues
2013-12-26 15:54:35 -08:00
Patrick Walton
75efa0725d
librustc: De-@mut
n_null_glues
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
26d1394767
librustc: De-@mut
n_glues_created
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
091bfa9cc3
librustc: De-@mut
n_static_tydescs
in the stats
2013-12-26 15:54:35 -08:00
Patrick Walton
5c63b1febc
librustc: De-@mut
the entry function and entry type in the session
2013-12-26 15:54:33 -08:00
Patrick Walton
f7393d8658
librustc: De-@mut
the method map
2013-12-26 15:54:32 -08:00
Patrick Walton
07279011b8
librustc: De-@mut
the type descriptor info
2013-12-26 15:54:32 -08:00
Patrick Walton
e9b9c828b1
librustc: De-@mut
the various glues in the type descriptor info
2013-12-26 15:54:32 -08:00