about summary refs log tree commit diff
path: root/src/libstd/rt/borrowck.rs
AgeCommit message (Collapse)AuthorLines
2014-01-21Purge borrowck from libstdAlex Crichton-220/+0
This hasn't been in use since `@mut` was removed
2014-01-07std: Fill in all missing importsAlex Crichton-1/+3
Fallout from the previous commits
2013-12-24green: Rip the bandaid off, introduce libgreenAlex Crichton-6/+5
This extracts everything related to green scheduling from libstd and introduces a new libgreen crate. This mostly involves deleting most of std::rt and moving it to libgreen. Along with the movement of code, this commit rearchitects many functions in the scheduler in order to adapt to the fact that Local::take now *only* works on a Task, not a scheduler. This mostly just involved threading the current green task through in a few locations, but there were one or two spots where things got hairy. There are a few repercussions of this commit: * tube/rc have been removed (the runtime implementation of rc) * There is no longer a "single threaded" spawning mode for tasks. This is now encompassed by 1:1 scheduling + communication. Convenience methods have been introduced that are specific to libgreen to assist in the spawning of pools of schedulers.
2013-12-15librustc: Remove identifiers named `box`, since it's about to become a keyword.Patrick Walton-6/+11
2013-12-10librustuv: RAII-ify `Local::borrow`, and remove some 12 Cells.Patrick Walton-4/+5
2013-11-26libstd: Remove all non-`proc` uses of `do` from libstdPatrick Walton-20/+14
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-1/+1
2013-11-19libstd: Change all uses of `&fn(A)->B` over to `|A|->B` in libstdPatrick Walton-1/+1
2013-10-30Prepared `std::sys` for removal, and made `begin_unwind` simplerMarvin Löbel-3/+3
- `begin_unwind` is now generic over any `T: Any + Send`. - Every value you fail with gets boxed as an `~Any`. - Because of implementation details, `&'static str` and `~str` are still handled specially behind the scenes. - Changed the big macro source string in libsyntax to a raw string literal, and enabled doc comments there.
2013-10-28add support for the `cold` function attributeDaniel Micay-0/+1
This allows a function to marked as infrequently called, resulting in any branch calling it to be considered colder.
2013-10-23mark some functions as returning !Daniel Micay-1/+1
Closes #10023
2013-10-23Removed Unnecessary comments and white spaces #4386reedlepee-1/+0
2013-10-23Making fields in std and extra : private #4386reedlepee-2/+3
2013-10-11De-pub some private runtime componentsAlex Crichton-4/+4
This change was waiting for privacy to get sorted out, which should be true now that #8215 has landed. Closes #4427
2013-10-10Migrate users of io::fd_t to io::native::file::fd_tAlex Crichton-50/+6
2013-09-30std: Remove usage of fmt!Alex Crichton-2/+2
2013-08-27librustc: Stop calling `each_path` in coherence.Patrick Walton-2/+2
10% win or so for small crates.
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-1/+1
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-27librustc: Remove `&const` and `*const` from the language.Patrick Walton-17/+18
They are still present as part of the borrow check.
2013-08-19std: Restore dynamic borrow trackingBrian Anderson-8/+20
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+1
2013-08-15Add ToCStr method .with_c_str()Kevin Ballard-3/+3
.with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str().
2013-08-09auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=ericktbors-6/+7
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-43/+7
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-1/+1
2013-08-04std: replace str::as_c_str with std::c_strErick Tryzelaar-3/+4
2013-08-04std: minor cleanupErick Tryzelaar-3/+3
2013-08-03remove obsolete `foreach` keywordDaniel Micay-1/+1
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-1/+1
2013-07-26Consolidate raw representations of rust valuesAlex Crichton-16/+16
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-23std and extra: use as_c_str instead of as_buf in a couple placesErick Tryzelaar-3/+3
These uses are assuming the strings are null terminated, so it should be using `as_c_str` instead of `as_buf`
2013-07-23std: move str::as_buf into StrSliceErick Tryzelaar-4/+4
2013-07-08TidyBrian Anderson-4/+4
2013-06-24std: Move dynamic borrowck code from unstable::lang to rt::borrowckBrian Anderson-0/+283