Brian Anderson
204e3d82cc
core::rt: Register stacks with valgrind. #6428
2013-05-14 14:52:07 -07:00
Brian Anderson
f934fa73ac
core::rt: Docs
2013-05-14 14:52:07 -07:00
Brian Anderson
329dfcaba0
core: Move unstable::exchange_alloc to rt::global_heap
2013-05-14 14:52:07 -07:00
Brian Anderson
52f015aceb
core: Cleanup warnings
2013-05-14 14:52:07 -07:00
Brian Anderson
4472a50ceb
rtdebug off
2013-05-14 14:52:07 -07:00
Brian Anderson
101aaa3861
core::rt: 0 is a valid TLS key
2013-05-14 14:52:06 -07:00
Brian Anderson
d234cf7e44
core::rt: Make TCP servers work
2013-05-14 14:52:06 -07:00
Brian Anderson
414f3c7d25
core::rt: Add a simple channel type for passing buffered messages between Scheduler and Task
...
Called 'Tube' for lack of anything better.
2013-05-14 14:52:06 -07:00
Brian Anderson
40a9de5ebc
core::rt: Add a very simple ref counted pointer
2013-05-14 14:52:06 -07:00
Brian Anderson
936fce5515
Warnings
2013-05-14 14:52:06 -07:00
Brian Anderson
272c3c2cfb
Tidy
2013-05-14 14:52:06 -07:00
Brian Anderson
10355d7a7d
core::rt Wire up logging to newsched tasks
2013-05-14 14:52:06 -07:00
Brian Anderson
ad6719ee0b
core::rt: Just a small fix to TcpStream
2013-05-14 14:52:06 -07:00
Brian Anderson
a134503d74
core::rt: Move all the uv callback definitions to one place
2013-05-14 14:52:06 -07:00
Brian Anderson
dbf89664aa
core::rt: Move the implementation of IdleWatcher to its own file
2013-05-14 14:52:06 -07:00
Brian Anderson
9138feab15
core::rt: Only use one mechanism for attaching custom data to uv handles
2013-05-14 14:52:06 -07:00
Brian Anderson
91ca3a9b29
core::rt: Reording code
2013-05-14 14:52:05 -07:00
Brian Anderson
6ab02c03da
core::rt: Convert some uv functions to extension methods
2013-05-14 14:52:05 -07:00
Brian Anderson
cfd183db15
core::rt: Fix some copies in uv
2013-05-14 14:52:05 -07:00
Brian Anderson
b771c99304
core::rt: Fix the finalizer on UvTcpStream and UvTcpListener
...
Eliminates a lot of calls to `close`
2013-05-14 14:52:05 -07:00
Brian Anderson
01b7b7d5a0
core::rt: Use unsafe pointers instead of transmuted regions
2013-05-14 14:52:02 -07:00
Brian Anderson
ab284d44d8
core::rt Restructure some modules
...
Put all uv code under rt::uv, as if it were in its own crate.
Pull local_sched out of rt::sched.
2013-05-13 14:24:10 -07:00
Brian Anderson
23bf892ae5
core::rt: Improve docs
2013-05-13 14:24:10 -07:00
Brian Anderson
93ca5ebccb
core::rt: Clean up the interface to rtio
...
Make names that better match rt::io. Return error types.
2013-05-13 14:24:10 -07:00
Brian Anderson
b2fbd34603
core::rt: Begin implementing TcpStream
...
This ended up touching a lot of code related to error handling.
2013-05-13 14:24:10 -07:00
Brian Anderson
0b4d4edf8b
core::rt: Fix a warning about unnecessary mutable variable
2013-05-13 14:24:10 -07:00
Brian Anderson
34be071353
core::rt: Remove Close trait
...
We will just use RAII for now.
2013-05-13 14:24:10 -07:00
bors
3abc5b3ffb
auto merge of #6417 : pcwalton/rust/exprs-in-patterns, r=pcwalton
...
r? @graydon
2013-05-13 13:25:42 -07:00
Patrick Walton
26a28dac86
test: Fix broken benchmark test
2013-05-13 11:26:15 -07:00
bors
1b883365bc
auto merge of #6452 : alexcrichton/rust/fix-deps, r=bstrie
...
I changed the dependencies of librust in #6438 , but I forgot to update the dependencies in the Makefile, this should have the dependencies right now.
2013-05-13 11:10:44 -07:00
Alex Crichton
ae07170bd8
Update make dependencies of librust
2013-05-13 13:47:05 -04:00
bors
935b7ba516
auto merge of #6443 : cmr/rust/resolution, r=bstrie
...
When trying to import nonexistent items from existing modules, specify that
that is what happened, rather than just reporting "unresolved name".
Ideally the error would be reported on the span of the import... but I do not see a way to get a span there. Help appreciated 😄
2013-05-13 09:28:46 -07:00
Patrick Walton
56a1ee8f84
librustdoc: Remove old-style extern mods from rustdoc tests.
2013-05-13 09:23:32 -07:00
bors
1bf2f68bb2
auto merge of #6437 : Thiez/rust/atomic, r=Aatch
...
This pull request adds 4 atomic intrinsics to the compiler, in preparation for #5042 .
* `atomic_load(src: &int) -> int` performs an atomic sequentially consistent load.
* `atomic_load_acq(src: &int) -> int` performs an atomic acquiring load.
* `atomic_store(dst: &mut int, val: int)` performs an atomic sequentially consistent store.
* `atomic_store_rel(dst: &mut int, val: int)` performs an atomic releasing store.
For more information about the whole acquire/release thing: http://llvm.org/docs/Atomics.html
r?
2013-05-13 05:04:41 -07:00
Matthijs Hofstra
852af346d3
Tidy
2013-05-13 13:33:34 +02:00
bors
2774392b41
auto merge of #6448 : huonw/rust/deriving-doc, r=Aatch
...
Closes #4916 .
2013-05-13 04:10:44 -07:00
Corey Richardson
2210d2d5d5
Use backticks to delineate paths/identifiers
2013-05-13 06:22:32 -04:00
Huon Wilson
d43908a3a7
doc: document the #[deriving] attribute.
...
Closes #4916 .
2013-05-13 20:04:03 +10:00
bors
8d4a3d58b7
auto merge of #6447 : luqmana/rust/6446, r=thestinger
...
#6446
2013-05-13 01:25:43 -07:00
Luqman Aden
103a68b2e7
Correct #[always_inline] -> #[inline(always)] and __attribute((...)) -> __attribute__((...)).
2013-05-13 04:05:34 -04:00
Corey Richardson
be82449a9a
Better error for some unresolved imports
...
When trying to import nonexistent items from existing modules, specify that
that is what happened, rather than just reporting "unresolved name".
2013-05-13 01:06:42 -04:00
bors
8a5561bc18
auto merge of #6438 : alexcrichton/rust/issue-5387, r=thestinger
...
Instead link against the built libraries and directly invoke those.
Closes #5387
2013-05-12 21:58:39 -07:00
bors
8291e36f18
auto merge of #6400 : cmr/rust/remove_useless_import_error, r=thestinger
...
Every unresolved import is reported. An additional error message isn't useful
and obscures (imo) the real errors: I need to take it into account when
looking at the error count.
2013-05-12 20:22:40 -07:00
Corey Richardson
e605536648
actually fix failing test
2013-05-12 22:52:38 -04:00
Patrick Walton
58a37a1f48
libstd: Fix merge fallout.
2013-05-12 17:36:53 -07:00
Patrick Walton
db0693ac8d
libsyntax: Tighten up expressions in patterns to only allow identifiers or literals (possibly with a minus).
...
This had very minimal fallout.
2013-05-12 16:35:19 -07:00
Patrick Walton
5d3559e645
librustc: Make self
and static
into keywords
2013-05-12 16:35:18 -07:00
Patrick Walton
06ef889cdc
libsyntax: Remove extern mod foo { ... }
from the language.
2013-05-12 16:33:15 -07:00
bors
8d1a09c810
auto merge of #6348 : sstewartgallus/rust/incoming, r=brson
...
In this commit I added a useful utility type, named Void, that encapsulates the
doable but annoying job of creating an uninhabited type. As well, a function on
that type, named absurd, was created which is useful for ignoring the result of
matching on that type. No unit tests were created because it is not possible to
create an instance of this type to test the usage of.
This type is useful because it is like NonCopyable in that it can be used to
create a type with special characteristics without special bloat. For instance,
instead of typing pub struct PhantomType { priv contents : () } for each void
type one may want to use one can simply type pub struct PhantomType (Void);.
This type make such special cases much easier to write.
2013-05-12 16:07:40 -07:00
Matthijs Hofstra
fa1a172f9c
Removed unnecessary check from build.rs
2013-05-13 00:12:14 +02:00