about summary refs log tree commit diff
path: root/src/libstd/lib.rs
AgeCommit message (Collapse)AuthorLines
2015-07-28std: Remove some old #[cfg(test) hacksBrian Anderson-10/+5
Since most lang items are actually defined in core, these hack reexports don't actually do anything useful.
2015-07-28Auto merge of #27309 - eddyb:snapshot-infdef, r=alexcrichtonbors-1/+0
FreeBSD i386 snapshot is missing, failed tests (possibly spurious). r? @alexcrichton
2015-07-27std: Deprecate a number of unstable featuresAlex Crichton-1/+0
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
2015-07-27Register new snapshots (2015-07-26 a5c12f4).Eduard Burtescu-1/+0
2015-07-25Auto merge of #27233 - tbu-:pr_wtf8, r=alexcrichtonbors-0/+1
2015-07-24Add unstable attribute to `char::from_u32_unchecked`Tobias Bucher-0/+1
2015-07-22Avoid feature-warnings on stage0.Felix S. Klock II-0/+1
2015-07-22Add feature-gates for desugaring-based `box` and placement-`in`.Felix S. Klock II-0/+1
update test/compile-fail/feature-gate-box-expr.rs to reflect new feature gates. Part of what lands with Issue 22181.
2015-07-20Address feedbackBrian Anderson-3/+3
2015-07-20std: Create separate docs for the primitivesBrian Anderson-6/+4
Having the primitive and module docs derived from the same source causes problems, primarily that they can't contain hyperlinks cross-referencing each other. This crates dedicated private modules in `std` to document the primitive types, then for all primitives that have a corresponding module, puts hyperlinks in moth the primitive docs and the module docs cross-linking each other. This should help clear up confusion when readers find themselves on the wrong page.
2015-07-16Rollup merge of #26977 - brson:stddoc, r=GankroManish Goregaokar-28/+128
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint. r? @steveklabnik cc @aturon
2015-07-14Address more feedbackBrian Anderson-3/+3
2015-07-14Address more feedbackBrian Anderson-4/+5
2015-07-14Use Vec::drain in BufWriterUlrik Sverdrup-0/+1
I happened past a comment that asked for functionality that we now have.
2015-07-13Address feedbackBrian Anderson-31/+35
2015-07-13Fix local pathBrian Anderson-1/+1
2015-07-13std: Refining crate docsBrian Anderson-26/+121
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint.
2015-07-09Test that CStr and CString have equivalent hashes.Jonathan Reem-1/+1
2015-07-08Improve Vec::resize so that it can be used in Read::read_to_endUlrik Sverdrup-0/+1
We needed a more efficient way to zerofill the vector in read_to_end. This to reduce the memory intialization overhead to a minimum. Use the implementation of `std::vec::from_elem` (used for the vec![] macro) for Vec::resize as well. For simple element types like u8, this compiles to memset, so it makes Vec::resize much more efficient.
2015-07-01msvc: Fix TLS destructorsAlex Crichton-0/+1
Just like the original article our Windows TLS support is based on predicted, this symbol must be linked in on MSVC to pull in the necessary support for TLS variables. This commit fixes a number of unit tests which require that TLS destructors are run.
2015-06-24Fix capitalization in std docsBrian Anderson-1/+1
"Rust" and "The Rust Standard Library" are capitalized.
2015-06-22sys/unix/c.rs: Remove unused codeGeoffrey Thomas-2/+0
It looks like a lot of this dated to previous incarnations of the io module, etc., and went unused in the reworking leading up to 1.0. Remove everything we're not actively using (except for signal handling, which will be reworked in the next commit).
2015-06-18Fix libstd testsAlex Crichton-1/+4
2015-06-17More test fixes and fallout of stability changesAlex Crichton-1/+0
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-2/+2
2015-06-17std: Split the `std_misc` featureAlex Crichton-1/+1
2015-06-17collections: Split the `collections` featureAlex Crichton-0/+5
This commit also deprecates the `as_string` and `as_slice` free functions in the `string` and `vec` modules.
2015-06-17alloc: Split apart the global `alloc` featureAlex Crichton-0/+3
2015-06-17core: Split apart the global `core` featureAlex Crichton-6/+20
This commit shards the broad `core` feature of the libcore library into finer grained features. This split groups together similar APIs and enables tracking each API separately, giving a better sense of where each feature is within the stabilization process. A few minor APIs were deprecated along the way: * Iterator::reverse_in_place * marker::NoCopy
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-0/+1
2015-05-23Rollup merge of #25709 - MatejLach:stdlib_style, r=steveklabnikOliver Schneider-1/+1
Sounds better to me this way. r @steveklabnik ?
2015-05-22better describe the stdlibMatej Ľach-1/+1
2015-05-19Stabilize debug builders for 1.2.0Steven Fackler-1/+0
2015-05-16Auto merge of #25462 - alexcrichton:favicon-https, r=nrcbors-1/+1
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes #25459
2015-05-15libs: Move favicon URLs to HTTPSAlex Crichton-1/+1
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes #25459
2015-05-15std: fix a linkIvan Ukhov-1/+1
2015-05-14Rollup merge of #25414 - apasel422:patch-1, r=alexcrichtonSteve Klabnik-1/+1
2015-05-14s/Iterater/Iterator/Andrew Paseltiner-1/+1
2015-05-14Fix crates.io link.Wangshan Lu-1/+1
2015-05-12doc: Address feedbackBrian Anderson-10/+11
2015-05-08std: Update crate docsBrian Anderson-51/+47
Attempted to organize them in a way more relevant to what newbies would be interested in hearing.
2015-04-29FalloutTamir Duberstein-8/+9
2015-04-29`bitflags!` is no longer used in `std`Tamir Duberstein-2/+1
2015-04-28Register new snapshotsTamir Duberstein-1/+0
2015-04-21std: Bring back f32::from_str_radix as an unstable APIAlex Crichton-0/+1
This API was exercised in a few tests and mirrors the `from_str_radix` functionality of the integer types.
2015-04-21std: Remove deprecated/unstable num functionalityAlex Crichton-0/+1
This commit removes all the old casting/generic traits from `std::num` that are no longer in use by the standard library. This additionally removes the old `strconv` module which has not seen much use in quite a long time. All generic functionality has been supplanted with traits in the `num` crate and the `strconv` module is supplanted with the [rust-strconv crate][rust-strconv]. [rust-strconv]: https://github.com/lifthrasiir/rust-strconv This is a breaking change due to the removal of these deprecated crates, and the alternative crates are listed above. [breaking-change]
2015-04-16deprecate Unicode functions that will be moved to crates.iokwantam-2/+2
This patch 1. renames libunicode to librustc_unicode, 2. deprecates several pieces of libunicode (see below), and 3. removes references to deprecated functions from librustc_driver and libsyntax. This may change pretty-printed output from these modules in cases involving wide or combining characters used in filenames, identifiers, etc. The following functions are marked deprecated: 1. char.width() and str.width(): --> use unicode-width crate 2. str.graphemes() and str.grapheme_indices(): --> use unicode-segmentation crate 3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(), char.compose(), char.decompose_canonical(), char.decompose_compatible(), char.canonical_combining_class(): --> use unicode-normalization crate
2015-04-14test: Fixup many library unit testsAlex Crichton-1/+1
2015-04-14std: Reexport some unstable rand functionality for nowAlex Crichton-0/+11
Needed to get modules like rustc_back::tempdir compiling.
2015-04-14std: Remove old_io/old_path/rand modulesAlex Crichton-5/+1
This commit entirely removes the old I/O, path, and rand modules. All functionality has been deprecated and unstable for quite some time now!