Sean Moon
bd4ee7c7d2
Fix typos
2013-05-09 02:34:47 +09:00
Brian Anderson
398cd18bfe
core: Replace Durable with 'static
2013-05-07 14:43:48 -07:00
Brian Anderson
6bcc3a6c57
Add some tests for local data + borrowed pointers
2013-05-07 13:53:25 -07:00
Tim Chevalier
5fb5a94118
core: Warning police
2013-05-03 16:56:33 -07:00
Brian Anderson
6c478c7de8
Merge remote-tracking branch 'brson/io' into incoming
...
Conflicts:
mk/rt.mk
src/libcore/run.rs
2013-05-02 20:51:56 -07:00
Felix S. Klock II
880e300ed7
mod items need to be marked with cfg(test) not test.
2013-05-02 08:55:08 +02:00
bors
c1ea72d88f
auto merge of #6113 : brson/rust/task-drop, r=graydon
2013-04-30 20:09:36 -07:00
Brian Anderson
4a4646fd54
Merge remote-tracking branch 'brson/io'
...
Conflicts:
src/libcore/task/local_data_priv.rs
2013-04-30 17:01:27 -07:00
Patrick Walton
c6a9e28842
librustc: Rename reinterpret_cast to transmute_copy and remove the intrinsic
2013-04-29 14:30:53 -07:00
Patrick Walton
b0522a497c
librustc: Remove ptr::addr_of.
2013-04-29 14:30:53 -07:00
Brian Anderson
c1fdace588
core: Replace uses of 'drop' in task module with 'finally'. #5379
2013-04-29 13:38:21 -07:00
Daniel Micay
46f91a0fa9
make way for a new iter module
2013-04-28 22:31:39 -04:00
Brian Anderson
436657b5f0
Rename cleanup_task_local_map_ to cleanup_task_local_map_extern_cb
...
Per pcwalton's suggestion.
2013-04-24 15:34:04 -07:00
Brian Anderson
1962803854
core: Warning police
2013-04-24 13:47:52 -07:00
Brian Anderson
6373861510
core: Convert reinterpret_cast to transmute in TLS. #6039
2013-04-23 19:52:16 -07:00
Brian Anderson
e944c7dade
Merge remote-tracking branch 'brson/io'
...
This also reverts some changes to TLS that were leaking memory.
Conflicts:
src/libcore/rt/uv/net.rs
src/libcore/task/local_data_priv.rs
src/libcore/unstable/lang.rs
2013-04-23 19:19:32 -07:00
Brian Anderson
2a819ae465
core::rt: Tasks to not require an unwinder
...
A task without an unwinder will abort the process on failure.
I'm using this in the runtime tests to guarantee that a call to
`assert!` actually triggers some kind of failure (an abort)
instead of silently doing nothing. This is essentially in lieu
of a working linked failure implementation.
2013-04-23 15:11:28 -07:00
Tim Chevalier
52d3f5558e
core, rustc: Warning police
2013-04-23 10:17:38 -07:00
Brian Anderson
42c0f88232
core::rt: Add unwinding to newsched tasks
2013-04-22 17:15:31 -07:00
Brian Anderson
d0786fdffc
core::rt Wire up task-local storage to the new scheduler
2013-04-22 13:05:16 -07:00
Alex Crichton
13537d2e0c
core: remove unused 'mut' variables
2013-04-20 21:02:38 -04:00
Matthijs Hofstra
51a68eb9b1
Replaced many instances of reinterpret_cast with transmute
2013-04-20 22:05:50 +02:00
Brian Anderson
744ba627f3
core::rt: Add a test mod and put run_in_newsched_task there
2013-04-20 00:33:49 -07:00
Alex Crichton
98dfeb173f
core: clean up tests (mostly unused unsafe blocks)
2013-04-19 23:23:23 -04:00
Brian Anderson
b57611d10c
core::rt: Simplify some scheduler operations
2013-04-19 12:05:19 -07:00
Brian Anderson
d261bb32d9
core: More tweaks to the thread-local scheduler interface
2013-04-19 12:05:18 -07:00
Brian Anderson
15ece0c23e
core: Wire up spawn to the new scheduler
...
It will check which scheduler it is running under and create the
correct type of task as appropriate. Most options aren't supported
but basic spawning works.
2013-04-19 12:05:18 -07:00
Brian Anderson
6773b63671
core: Don't use managed boxes in TaskBuilder
2013-04-19 12:05:18 -07:00
Brian Anderson
decd3901d5
core::comm: Modernize constructors to use new
2013-04-18 14:07:35 -07:00
Huon Wilson
f43fc5fff8
libcore: make spawn_supervised documentation reflect its behaviour.
2013-04-18 20:46:23 +10:00
Huon Wilson
d3be98e9f5
libcore,std,syntax,rustc: move tests into mod tests, make them private (no pub mod or pub fn).
2013-04-16 09:57:47 +10:00
Alex Crichton
d9595d1737
core: remove unnecessary unsafe blocks/functions
2013-04-14 01:15:46 -04:00
Niko Matsakis
61b9e0ebfa
core: changes in response to #5656
2013-04-10 17:32:03 -07:00
Brian Anderson
2e907a3ac2
core: Remove all but one drop block in favor of finally
2013-04-08 16:16:32 -07:00
Daniel Micay
cc148b58ff
rename Linear{Map,Set} => Hash{Map,Set}
2013-04-03 10:30:36 -04:00
Daniel Micay
44029a5bbc
hashmap: rm linear namespace
2013-04-03 10:30:18 -04:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Alex Crichton
be57d745d2
Removing unused imports
2013-03-28 23:56:46 -04:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Daniel Micay
34c5a09ce3
option: rm functions that duplicate methods
2013-03-26 22:44:40 -04:00
Andrew Paseltiner
45677eebf2
replace impls with deriving where applicable
2013-03-23 06:57:30 -04:00
Patrick Walton
85c9fc6f8f
librustc: Remove the const declaration form everywhere
2013-03-22 22:24:35 -07:00
Patrick Walton
be9bddd463
libcore: Remove pure from libcore. rs=depure
2013-03-22 10:29:17 -07:00
Andrew Paseltiner
98e8fe12d2
core: replace uses of old deriving attribute with new one
2013-03-22 06:24:19 -04:00
Patrick Walton
2e7ec80bcc
librustc: Enforce privacy for static methods.
...
This starts moving a bunch of privacy checks into the privacy
checking phase and out of resolve.
2013-03-19 13:40:48 -07:00
Patrick Walton
e78f2e2ac5
librustc: Make the compiler ignore purity.
...
For bootstrapping purposes, this commit does not remove all uses of
the keyword "pure" -- doing so would cause the compiler to no longer
bootstrap due to some syntax extensions ("deriving" in particular).
Instead, it makes the compiler ignore "pure". Post-snapshot, we can
remove "pure" from the language.
There are quite a few (~100) borrow check errors that were essentially
all the result of mutable fields or partial borrows of `@mut`. Per
discussions with Niko I think we want to allow partial borrows of
`@mut` but detect obvious footguns. We should also improve the error
message when `@mut` is erroneously reborrowed.
2013-03-18 17:21:16 -07:00
Patrick Walton
352c070365
librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming
2013-03-18 17:21:14 -07:00
Patrick Walton
b1c699815d
librustc: Don't accept as Trait anymore; fix all occurrences of it.
2013-03-13 20:07:09 -07:00
Patrick Walton
4faf63e472
libstd: Remove all newtype enums from std and core.
2013-03-11 09:35:59 -07:00
Patrick Walton
d18f785457
librustc: Replace all uses of fn() with &fn(). rs=defun
2013-03-11 09:35:58 -07:00