about summary refs log tree commit diff
path: root/src/libcore/sys.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-352/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20auto merge of #6626 : brson/rust/io-upstream, r=graydonbors-3/+4
r? Mostly refactoring, and adding some of the remaining types described in #4419. The [`Local`](https://github.com/brson/rust/blob/3b4ff41511cfaa5e311b03d16b47bf40c117fa2f/src/libcore/rt/local.rs#L17) trait collects some common, often unsafe patterns around task-local and thread-local values. Making all these types safe is largely the aim of #6210.
2013-05-20core::rt: Implement Local for TaskBrian Anderson-2/+3
2013-05-20core:rt:: Rename LocalServices to TaskBrian Anderson-3/+3
2013-05-20Replace all uses of rust-intrinsic ABI with calls to unstable::intrinsicsBrian Anderson-14/+5
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-20/+20
2013-05-14core::rt: Add a simple channel type for passing buffered messages between ↵Brian Anderson-6/+23
Scheduler and Task Called 'Tube' for lack of anything better.
2013-05-14core::rt: Use unsafe pointers instead of transmuted regionsBrian Anderson-1/+1
2013-05-04Register snapshotsBrian Anderson-22/+0
2013-05-02Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-4/+24
Conflicts: mk/rt.mk src/libcore/run.rs
2013-05-02core: Wire up the unwinder to newsched againBrian Anderson-17/+18
This was some merge fallout
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-8/+0
2013-04-30Merge remote-tracking branch 'brson/io'Brian Anderson-5/+24
Conflicts: src/libcore/task/local_data_priv.rs
2013-04-29test: Fix tests.Patrick Walton-1/+1
2013-04-29test: Remove #[legacy_modes] from the test suite.Patrick Walton-1/+1
2013-04-29librustc: Rename `reinterpret_cast` to `transmute_copy` and remove the intrinsicPatrick Walton-2/+2
2013-04-25Made fail! and assert! accept both &'static str and ~str, as well as a fmt! ↵Marvin Löbel-1/+46
like format list. Unwinding through macros now happens as a call to the trait function `FailWithCause::fail_with()`, which consumes self, allowing to use a more generic failure object in the future.
2013-04-23Merge remote-tracking branch 'brson/io'Brian Anderson-5/+24
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-23core::rt: Tasks to not require an unwinderBrian Anderson-1/+5
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-22core::rt: Add unwinding to newsched tasksBrian Anderson-5/+20
2013-04-20libcore: wrappers for size/align_of to act on values without needing ↵Huon Wilson-1/+57
explicit ::<type> annotations
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-9/+9
pub mod or pub fn).
2013-04-14core: remove unnecessary unsafe blocks/functionsAlex Crichton-8/+4
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-20/+20
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-26librustc: Remove all uses of the old `[T * N]` fixed-length vector syntaxPatrick Walton-1/+1
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-13/+13
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-2/+2
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-20/+27
2013-03-07libsyntax: Stop parsing structural record typesPatrick Walton-2/+2
2013-03-07libcore: Remove `extern mod { ... }` from libcore. rs=deexterningPatrick Walton-9/+17
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-1/+1
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-03-03rustc: MIPS32 supportJyun-Yan You-0/+2
2013-02-15libcore: Get rid of `move`.Luqman Aden-2/+2
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-4/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-13/+15
2013-01-13Make vectors (& old ports) of zero-size types allocate one byte each.Jed Davis-1/+20
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-1/+1
2013-01-10core: Change XXXs into proper FIXMEs with issue numbersTim Chevalier-1/+1
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-1/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-0/+1
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+8
contain at least two components. r=graydon
2012-12-10Adjust the die macro to only accept ~str and to work in statement positionBrian Anderson-1/+28
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-10-12Make moves explicit in core testsTim Chevalier-2/+2