Alex Crichton
675b82657e
Update the rest of the compiler with ~[T] changes
2014-04-18 10:57:10 -07:00
Eduard Burtescu
402d946868
rustc: fix fallout from removing ast::Sigil and use ty::TraitStore in ty::ClosureTy.
2014-04-11 18:03:10 +03:00
bors
65abf96fb6
auto merge of #13424 : eddyb/rust/ty-mut-in-store, r=nikomatsakis
...
Cleans up some remnants of the old mutability system and only allows vector/trait mutability in `VstoreSlice` (`&mut [T]`) and `RegionTraitStore` (`&mut Trait`).
2014-04-11 05:01:38 -07:00
Eduard Burtescu
ee4c770f8b
rustc: fix the fallout from moving mutability into VstoreSlice and RegionTraitStore.
2014-04-11 09:01:31 +03:00
Kasey Carrothers
0bf4e900d4
Renamed ast::Purity to ast::FnStyle and ast::ImpureFn to ast::NormalFn and updated associated variable and function names.
2014-04-10 15:22:00 -07:00
Eduard Burtescu
b61764b609
rustc: rename ty::vstore and its variants to UpperCamelCase.
2014-04-10 20:18:46 +03:00
bors
f1f50565a1
auto merge of #13315 : alexcrichton/rust/libc, r=alexcrichton,me
...
Rebasing of #12526 with a very obscure bug fixed on windows.
2014-04-06 02:56:39 -07:00
Eduard Burtescu
7c48e53c1e
syntax: remove obsolete mutability from ExprVec and ExprRepeat.
2014-04-04 13:23:03 -07:00
Corey Richardson
0459ee77d0
Fix fallout from std::libc separation
2014-04-04 09:31:44 -07:00
Daniel Micay
cbbc1fc843
vec: convert append
and append_one
to methods
...
These were only free functions on `~[T]` because taking self by-value
used to be broken.
2014-03-31 01:13:48 -04:00
gentlefolk
f4518cdba7
Initial support for emitting DWARF for static vars.
...
Only supports crate level statics. No debug info is generated for
function level statics. Closes #9227 .
2014-03-27 21:03:44 -04:00
Daniel Micay
ae429056ff
iter: remove to_owned_vec
...
This needs to be removed as part of removing `~[T]`. Partial type hints
are now allowed, and will remove the need to add a version of this
method for `Vec<T>`. For now, this involves a few workarounds for
partial type hints not completely working.
2014-03-23 05:41:23 -04:00
Alex Crichton
3fb1ed0e04
rustc: Remove all usage of manual deref()
...
Favor using '*' instead
2014-03-22 08:48:34 -07:00
Alex Crichton
0dbb909bf7
rustc: Fix fallout of removing get()
2014-03-22 08:48:20 -07:00
Daniel Micay
14f656d1a7
rename std::vec_ng -> std::vec
...
Closes #12771
2014-03-20 04:25:32 -04:00
Daniel Micay
ce620320a2
rename std::vec -> std::slice
...
Closes #12702
2014-03-20 01:30:27 -04:00
bors
0a181a8917
auto merge of #12742 : FlaPer87/rust/issue-11411-static-mut-slice, r=nikomatsakis
...
This PR enables the use of mutable slices in *mutable* static items. The work was started by @xales and I added a follow-up commit that moves the *immutable* restriction to the recently added `check_static`
Closes #11411
2014-03-17 09:57:06 -07:00
Eduard Burtescu
0bb6de3076
De-@ move maps and rework parts of trans.
2014-03-17 09:53:08 +02:00
Eduard Burtescu
6c42ef31dc
De-@ trans contexts.
2014-03-17 09:53:07 +02:00
Eduard Burtescu
4fae06824c
De-@ Session usage.
2014-03-17 09:53:06 +02:00
Eduard Burtescu
20b4e159ed
Implement automatic overloaded dereference.
...
Closes #7141 .
2014-03-13 14:21:45 +02:00
Eduard Burtescu
cdc18b96d6
Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc<RefCell<T>>.
2014-03-13 14:21:45 +02:00
Felix S. Klock II
43c07244b3
librustc: Fix up fallout from the automatic conversion.
2014-03-08 21:41:32 +01:00
Patrick Walton
3b6e9d4a7a
librustc: Automatically change uses of ~[T]
to Vec<T>
in rustc.
2014-03-08 21:24:27 +01:00
Flavio Percoco
abfc6db4c2
rustc: Move mut slice check to check_static
...
This is a follow-up patch that moves the mut slice check to the recently
added `check_static`
Closes #11411
2014-03-06 22:50:39 +01:00
xales
8b8d41d28a
Allow mutable slices in statics.
...
Fixes #11411
2014-03-06 22:50:39 +01:00
Palmer Cox
6d9bdf975a
Rename all variables that have uppercase characters in their names to use only lowercase characters
2014-03-04 21:23:36 -05:00
Patrick Walton
c1ed4d7d41
librustc: Fix errors arising from the automated ~[T]
conversion
2014-03-01 22:40:53 -08:00
Eduard Burtescu
05e4d944a9
Replace callee_id with information stored in method_map.
2014-02-26 16:06:45 +02:00
Brendan Zabarauskas
f450b2b379
Remove CloneableTuple and ImmutableTuple traits
...
These are adequately covered by the Tuple2 trait.
2014-02-17 00:57:56 +11:00
Eduard Burtescu
6e84023596
Removed the obsolete ast::CallSugar (previously used by do
).
2014-02-14 07:48:13 -08:00
Eduard Burtescu
a02b10a062
Refactored ast_map and friends, mainly to have Paths without storing them.
2014-02-14 08:43:29 +02:00
mr.Shu
ee3fa68fed
Fixed error starting with uppercase
...
Error messages cleaned in librustc/middle
Error messages cleaned in libsyntax
Error messages cleaned in libsyntax more agressively
Error messages cleaned in librustc more aggressively
Fixed affected tests
Fixed other failing tests
Last failing tests fixed
2014-02-08 20:59:38 +01:00
Huon Wilson
891ada9be1
syntax: convert LitBinary from @[u8] to Rc<~[u8]>.
2014-02-02 02:59:03 +11:00
Patrick Walton
b496d7bec2
libsyntax: Make float literals not use @str
2014-02-02 01:44:48 +11:00
Patrick Walton
8e52b85d5a
libsyntax: De-@str
literal strings in the AST
2014-02-02 01:44:48 +11:00
Brendan Zabarauskas
729060dbb9
Remove Times trait
...
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
2014-01-30 14:52:25 +11:00
Eduard Burtescu
15ba0c310a
Demote self to an (almost) regular argument and remove the env param.
...
Fixes #10667 and closes #10259 .
2014-01-27 14:31:24 +02:00
Salem Talha
cc61fc0994
Removed all instances of XXX in preparation for relaxing of FIXME rule
2014-01-26 14:42:53 -05:00
Huon Wilson
68517a2cca
syntax: convert ast_map to use a SmallIntMap.
...
NodeIds are sequential integers starting at zero, so we can achieve some
memory savings by just storing the items all in a line in a vector.
The occupancy for typical crates seems to be 75-80%, so we're already
more efficient than a HashMap (maximum occupancy 75%), not even counting
the extra book-keeping that HashMap does.
2014-01-19 12:56:26 +11:00
Patrick Walton
119c6141f5
librustc: Remove @
pointer patterns from the language
2014-01-13 14:45:21 -08:00
Eduard Burtescu
5ad2a7825b
Removed obsolete 'e' prefix on ty_evec and ty_estr.
2014-01-11 16:40:23 +02:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
Brian Anderson
3b1862a82f
Don't allow newtype structs to be dereferenced. #6246
2014-01-04 14:44:12 -08:00
Patrick Walton
82a09b9a04
librustc: Remove @mut
support from the parser
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
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
7cf6abc84a
librustc: De-@mut
the adjustments table in the type context
2013-12-26 13:01:26 -08:00
Patrick Walton
b941677ea3
librustc: De-@mut
the crate context
2013-12-26 13:01:26 -08:00