about summary refs log tree commit diff
path: root/src/libstd/c_vec.rs
AgeCommit message (Collapse)AuthorLines
2014-05-11core: Remove the cast moduleAlex Crichton-3/+3
This commit revisits the `cast` module in libcore and libstd, and scrutinizes all functions inside of it. The result was to remove the `cast` module entirely, folding all functionality into the `mem` module. Specifically, this is the fate of each function in the `cast` module. * transmute - This function was moved to `mem`, but it is now marked as #[unstable]. This is due to planned changes to the `transmute` function and how it can be invoked (see the #[unstable] comment). For more information, see RFC 5 and #12898 * transmute_copy - This function was moved to `mem`, with clarification that is is not an error to invoke it with T/U that are different sizes, but rather that it is strongly discouraged. This function is now #[stable] * forget - This function was moved to `mem` and marked #[stable] * bump_box_refcount - This function was removed due to the deprecation of managed boxes as well as its questionable utility. * transmute_mut - This function was previously deprecated, and removed as part of this commit. * transmute_mut_unsafe - This function doesn't serve much of a purpose when it can be achieved with an `as` in safe code, so it was removed. * transmute_lifetime - This function was removed because it is likely a strong indication that code is incorrect in the first place. * transmute_mut_lifetime - This function was removed for the same reasons as `transmute_lifetime` * copy_lifetime - This function was moved to `mem`, but it is marked `#[unstable]` now due to the likelihood of being removed in the future if it is found to not be very useful. * copy_mut_lifetime - This function was also moved to `mem`, but had the same treatment as `copy_lifetime`. * copy_lifetime_vec - This function was removed because it is not used today, and its existence is not necessary with DST (copy_lifetime will suffice). In summary, the cast module was stripped down to these functions, and then the functions were moved to the `mem` module. transmute - #[unstable] transmute_copy - #[stable] forget - #[stable] copy_lifetime - #[unstable] copy_mut_lifetime - #[unstable] [breaking-change]
2014-05-10rename `global_heap` -> `libc_heap`Daniel Micay-1/+1
This module only contains wrappers for malloc and realloc with out-of-memory checks.
2014-04-08Register new snapshotsAlex Crichton-2/+2
2014-03-31std: Switch field privacy as necessaryAlex Crichton-3/+3
2014-03-27Fix fallout of removing default boundsAlex Crichton-5/+6
This is all purely fallout of getting the previous commit to compile.
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-0/+216
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-202/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-4/+4
2013-05-09Mark c_vec functions as unsafe againAlex Crichton-4/+4
2013-04-27only use #[no_core] in libcoreDaniel Micay-5/+0
2013-04-19std: clean up tests (mostly unused unsafe blocks)Alex Crichton-3/+3
2013-04-14std: remove unused unsafe blocks/functionsAlex Crichton-8/+6
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-7/+7
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-1/+1
2013-03-21librustc: Forbid destructors from being attached to any structs that might ↵Patrick Walton-3/+6
contain non-Owned fields. r=nmatsakis
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-7/+7
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-03-02libstd: Remove `fn@`, `fn~`, and `fn&` from libstd. rs=defunPatrick Walton-3/+3
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-2/+2
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-1/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-04std: Stamp out structural recordsTim Chevalier-16/+12
See #4665
2013-01-29std: Stop using oldcommBrian Anderson-1/+0
2013-01-11libstd: Fix std test. rs=bustedPatrick Walton-4/+6
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+5
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-5/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+5
module scope. r=tjc
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-1/+2
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+6
contain at least two components. r=graydon
2012-12-23std: Mark some functions as pureChris Peterson-1/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-29librustc: Make the Drop trait use explicit selfPatrick Walton-5/+5
2012-11-14Convert libstd to use the Drop traitBen Striegel-2/+5
2012-11-14Revert "Convert libstd to use the Drop trait"Brian Anderson-5/+2
This reverts commit 28c7a251514919a2d7bdf6c67b8edf5eed9043db.
2012-11-14Convert libstd to use the Drop traitBen Striegel-2/+5
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-1/+2
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-09-28De-export std::c_vec. Part of Part of #3583.Graydon Hoare-14/+7
2012-09-28std: More demodingBrian Anderson-1/+1
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-1/+1
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-2/+2
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-1/+1
2012-09-04std: Remove struct ctorsBrian Anderson-1/+6
2012-09-02std: warn(non_camel_case_types) everywhere. still some exceptionsBrian Anderson-1/+0
2012-08-29std: Camel case some constructorsBrian Anderson-2/+2
2012-08-28CamelCasify lots of stdBen Striegel-18/+19
2012-08-26Camel case the option typeBrian Anderson-6/+6
2012-08-17Remove the class keywordBrian Anderson-1/+1
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-1/+1
2012-08-05Switch alts to use arrowsBrian Anderson-2/+2