Patrick Walton
0b714b4ba6
libstd: Add some methods to Vec<T>
.
2014-03-21 23:37:21 +11: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
Brian Anderson
96b299e1f0
std: Remove unstable::lang
...
Put the lonely lang items here closer to the code they are calling.
2014-02-23 01:47:05 -08:00
Brian Anderson
3e57808a01
std: Move raw to std::raw
...
Issue #1457
2014-02-23 01:07:53 -08:00
Liigo Zhuang
53b9d1a324
move extra::test to libtest
2014-02-20 16:03:58 +08:00
Alex Crichton
359ac360a4
Register new snapshots
...
This enables the parser error for `extern mod` => `extern crate` transitions.
2014-02-14 22:55:20 -08:00
Alex Crichton
aaead93c45
Don't allocate in LocalHeap::new()
...
One of these is allocated for every task, trying to cut down on allocations
cc #11389
2014-02-13 20:29:47 -08:00
Alex Crichton
1c5295c0bf
Register new snapshots
2014-02-13 12:54:17 -08:00
Daniel Micay
940d1ae2f3
remove type descriptors from proc and @T
...
This also drops support for the managed pointer POISON_ON_FREE feature
as it's not worth adding back the support for it. After a snapshot, the
leftovers can be removed.
2014-02-07 20:08:35 -05:00
Huon Wilson
2ed980fe25
std,extra: remove use of & support for @[].
2014-02-02 02:59:03 +11:00
Salem Talha
cc61fc0994
Removed all instances of XXX in preparation for relaxing of FIXME rule
2014-01-26 14:42:53 -05:00
Florian Hahn
2eb4f05850
Replace C types with Rust types in libstd, closes #7313
2014-01-22 19:20:47 +01:00
Eduard Burtescu
7ca3bea5bf
libstd: Added more #[inline] annotations and replaced uses of libc::abort
with the intrinsic.
2014-01-15 11:45:12 +02:00
Alex Crichton
7e0443d6c4
std: Fill in all missing imports
...
Fallout from the previous commits
2014-01-07 23:51:38 -08:00
Patrick Walton
a87786e3e9
librustc: Remove identifiers named box
, since it's about to become a keyword.
2013-12-15 10:41:15 -08:00
Patrick Walton
7cac9fe763
librustuv: RAII-ify Local::borrow
, and remove some 12 Cells.
2013-12-10 15:13:12 -08:00
Kiet Tran
1755408d1a
Remove dead codes
2013-12-08 02:55:28 -05:00
Patrick Walton
f571e46ddb
test: Remove non-procedure uses of do
from compiletest, libstd tests,
...
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-26 08:25:27 -08:00
Patrick Walton
1eca34de7d
libstd: Remove all non-proc
uses of do
from libstd
2013-11-26 08:23:57 -08:00
Alex Crichton
357ef1f69c
Rewrite boxed_region/memory_region in Rust
...
This drops more of the old C++ runtime to rather be written in rust. A few
features were lost along the way, but hopefully not too many. The main loss is
that there are no longer backtraces associated with allocations (rust doesn't
have a way of acquiring those just yet). Other than that though, I believe that
the rest of the debugging utilities made their way over into rust.
Closes #8704
2013-10-26 01:10:39 -07:00
reedlepee
ad465441ba
Removed Unnecessary comments and white spaces #4386
2013-10-23 01:10:50 +05:30
reedlepee
0ada7c7ffe
Making fields in std and extra : private #4386
2013-10-23 01:10:50 +05:30
Alex Crichton
8b4423b04f
De-pub some private runtime components
...
This change was waiting for privacy to get sorted out, which should be true now
that #8215 has landed.
Closes #4427
2013-10-11 06:49:18 -07:00
Daniel Micay
313052aeb2
rm useless fast_ffi attributes
...
this is no longer used by the compiler
2013-10-08 09:03:43 -04:00
Daniel Micay
4e161a4d40
switch Drop to &mut self
2013-09-16 22:19:23 -04:00
Patrick Walton
8693943676
librustc: Ensure that type parameters are in the right positions in paths.
...
This removes the stacking of type parameters that occurs when invoking
trait methods, and fixes all places in the standard library that were
relying on it. It is somewhat awkward in places; I think we'll probably
want something like the `Foo::<for T>::new()` syntax.
2013-08-27 18:47:57 -07:00
Brian Anderson
e3419f9c45
rt: Memory regions are never synchronized now
2013-08-23 18:38:59 -07:00
Niko Matsakis
0479d946c8
Add externfn macro and correctly label fixed_stack_segments
2013-08-19 07:13:15 -04:00
Brian Anderson
95badabaaf
std: Re-optimize tls access on local allocation path
...
I did this once but acciddentally undid it in a later patch.
2013-08-12 22:30:32 -07:00
Brian Anderson
b75915d0ca
Remove the C++ runtime. Sayonara
2013-08-09 16:45:50 -07:00
Brian Anderson
d392556160
std: Fix perf of local allocations in newsched
...
Mostly optimizing TLS accesses to bring local heap allocation performance
closer to that of oldsched. It's not completely at parity but removing the
branches involved in supporting oldsched and optimizing pthread_get/setspecific
to instead use our dedicated TCB slot will probably make up for it.
2013-08-09 01:15:31 -07:00
Patrick Walton
9457ebee55
librustc: Disallow "unsafe" for external functions
2013-08-02 21:57:59 -07:00
Alex Crichton
5aaaca0c6a
Consolidate raw representations of rust values
...
This moves the raw struct layout of closures, vectors, boxes, and strings into a
new `unstable::raw` module. This is meant to be a centralized location to find
information for the layout of these values.
As safe method, `repr`, is provided to convert a rust value to its raw
representation. Unsafe methods to convert back are not provided because they are
rarely used and too numerous to write an implementation for each (not much of a
common pattern).
2013-07-26 09:53:03 -07:00
Graydon Hoare
3d5fb470fb
std: add #[bench] benchmarks for global and local heaps.
2013-07-22 16:56:10 -07:00
Brian Anderson
1098d6980b
Merge remote-tracking branch 'mozilla/master'
...
Conflicts:
src/libextra/test.rs
src/libstd/at_vec.rs
src/libstd/cleanup.rs
src/libstd/rt/comm.rs
src/libstd/rt/global_heap.rs
src/libstd/task/spawn.rs
src/libstd/unstable/lang.rs
src/libstd/vec.rs
src/rt/rustrt.def.in
src/test/run-pass/extern-pub.rs
2013-07-03 14:49:13 -07:00
Luqman Aden
ca2966c6d0
Change finalize -> drop.
2013-06-25 21:14:39 -04:00
Brian Anderson
5e7c5d6c3d
std: Make box annihilator work with newsched
2013-06-24 17:07:03 -07:00
Brian Anderson
aa9210d25a
std: Rewrite vec_reserve_shared_actual in Rust
2013-06-24 17:07:01 -07:00
Patrick Walton
0c820d4123
libstd: Rename libcore to libstd and libstd to libextra; update makefiles.
...
This only changes the directory names; it does not change the "real"
metadata names.
2013-05-22 21:57:05 -07:00