about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2015-12-29Rollup merge of #30390 - mitaa:patch-1, r=steveklabnikSteve Klabnik-1/+1
None of my devices/browsers renders this correctly. r? @steveklabnik
2015-12-29Correct the documentation of debug_assert_eqSteve Klabnik-3/+3
Also, make its panic description identical in wording to assert_eq. Fixes #30600
2015-12-26Fix links in char docsFlorian Hartwig-11/+11
2015-12-24Fix link to `Formatter::debug_struct`mitaa-1/+1
2015-12-21Register new snapshotsAlex Crichton-608/+12
Lots of cruft to remove!
2015-12-19Auto merge of #30435 - Ms2ger:ParseResult, r=alexcrichtonbors-6/+5
2015-12-17Auto merge of #30445 - steveklabnik:rollup, r=steveklabnikbors-9/+3
- Successful merges: #30370, #30404, #30415, #30419, #30428, #30437, #30439, #30441, #30442, #30443 - Failed merges:
2015-12-17Rollup merge of #30437 - tshepang:clarity, r=steveklabnikSteve Klabnik-1/+1
The comma removes the sorface ambiguity
2015-12-17Rollup merge of #30415 - steveklabnik:remove_bad_stability_note, r=alexcrichtonSteve Klabnik-6/+0
2015-12-17Rollup merge of #30370 - zachreizner:patch-1, r=apasel422Steve Klabnik-2/+2
2015-12-17doc: improve clarity by introducing a pauseTshepang Lekhonkhobe-1/+1
2015-12-17Don't import ParseResult's variants in dec2flt.Ms2ger-6/+5
2015-12-17Remove unused importsJeffrey Seyfried-1/+0
2015-12-16Remove incorrect words about libcore's stabilitySteve Klabnik-6/+0
2015-12-15Clearer leading sentenceChristoffer Buchholz-2/+2
2015-12-15Remove emoji from docsmitaa-1/+1
2015-12-14make scan() usage more explanatoryChris Buchholz-7/+13
2015-12-13fix copy-paste typo in docs for wrapping_shrZach Reizner-2/+2
2015-12-13Auto merge of #30348 - shepmaster:box-any-docs, r=steveklabnikbors-3/+4
2015-12-13Auto merge of #30342 - salty-horse:doc_links, r=steveklabnikbors-14/+42
Many of the structs in `str` that are used as part of its methods do not have links to the methods. This is especially annoying when a Google search drops you into the documentation of the struct, when you really wanted to get to the method of the same name. This patch adds those links.
2015-12-11Correct reference to `Box<Any>` in `Any` docsJake Goulding-3/+4
2015-12-12dec2flt: Remove unused macro argumentRobin Kruppe-3/+3
The argument was a remnant of an earlier, needlessly complicated implementation.
2015-12-12dec2flt: Simplify imports and module surfaceRobin Kruppe-4/+4
The import has been unnecessarily complicated since ParseFloatError::Invalid is not longer used unqualified. The pfe_* functions do not need to be public any more since the only other use site, from_str_radix for floats, has been removed.
2015-12-12Remove an accent in a commentRobin Kruppe-1/+1
2015-12-11Add missing links to str docsOri Avtalion-14/+42
2015-12-10Auto merge of #30182 - alexcrichton:remove-deprecated, r=aturonbors-612/+2
This is a standard "clean out libstd" commit which removes all 1.5-and-before deprecated functionality as it's now all been deprecated for at least one entire cycle.
2015-12-10std: Remove deprecated functionality from 1.5Alex Crichton-612/+2
This is a standard "clean out libstd" commit which removes all 1.5-and-before deprecated functionality as it's now all been deprecated for at least one entire cycle.
2015-12-10fix missing Panics tag and missing periodLetheed-1/+3
2015-12-09doc: these are just renames, so avoid duplicationTshepang Lekhonkhobe-30/+2
2015-12-07Revert "PR #30130 Implement `Clone` for more arrays"Ulrik Sverdrup-28/+8
This reverts commit e22a64e8d8d4da46c74f878ce1c23ad1c88982e8. This caused a regression such that types like `[[u8; 256]; 4]` no longer implemented Clone. This previously worked due to Clone for `[T; N]` (N in 0 to 32) being implemented for T: Copy. Due to fixed size arrays not implementing Clone for sizes above 32, the new implementation requiring T: Clone would not allow `[[u8; 256]; 4]` to be Clone.
2015-12-06Auto merge of #30187 - alexcrichton:stabilize-1.6, r=aturonbors-252/+295
This commit is the standard API stabilization commit for the 1.6 release cycle. The list of issues and APIs below have all been through their cycle-long FCP and the libs team decisions are listed below Stabilized APIs * `Read::read_exact` * `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`) * libcore -- this was a bit of a nuanced stabilization, the crate itself is now marked as `#[stable]` and the methods appearing via traits for primitives like `char` and `str` are now also marked as stable. Note that the extension traits themeselves are marked as unstable as they're imported via the prelude. The `try!` macro was also moved from the standard library into libcore to have the same interface. Otherwise the functions all have copied stability from the standard library now. * `fs::DirBuilder` * `fs::DirBuilder::new` * `fs::DirBuilder::recursive` * `fs::DirBuilder::create` * `os::unix::fs::DirBuilderExt` * `os::unix::fs::DirBuilderExt::mode` * `vec::Drain` * `vec::Vec::drain` * `string::Drain` * `string::String::drain` * `vec_deque::Drain` * `vec_deque::VecDeque::drain` * `collections::hash_map::Drain` * `collections::hash_map::HashMap::drain` * `collections::hash_set::Drain` * `collections::hash_set::HashSet::drain` * `collections::binary_heap::Drain` * `collections::binary_heap::BinaryHeap::drain` * `Vec::extend_from_slice` (renamed from `push_all`) * `Mutex::get_mut` * `Mutex::into_inner` * `RwLock::get_mut` * `RwLock::into_inner` * `Iterator::min_by_key` (renamed from `min_by`) * `Iterator::max_by_key` (renamed from `max_by`) Deprecated APIs * `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`) * `OsString::from_bytes` * `OsStr::to_cstring` * `OsStr::to_bytes` * `fs::walk_dir` and `fs::WalkDir` * `path::Components::peek` * `slice::bytes::MutableByteVector` * `slice::bytes::copy_memory` * `Vec::push_all` (renamed to `extend_from_slice`) * `Duration::span` * `IpAddr` * `SocketAddr::ip` * `Read::tee` * `io::Tee` * `Write::broadcast` * `io::Broadcast` * `Iterator::min_by` (renamed to `min_by_key`) * `Iterator::max_by` (renamed to `max_by_key`) * `net::lookup_addr` New APIs (still unstable) * `<[T]>::sort_by_key` (added to mirror `min_by_key`) Closes #27585 Closes #27704 Closes #27707 Closes #27710 Closes #27711 Closes #27727 Closes #27740 Closes #27744 Closes #27799 Closes #27801 cc #27801 (doesn't close as `Chars` is still unstable) Closes #28968
2015-12-05std: Stabilize APIs for the 1.6 releaseAlex Crichton-252/+295
This commit is the standard API stabilization commit for the 1.6 release cycle. The list of issues and APIs below have all been through their cycle-long FCP and the libs team decisions are listed below Stabilized APIs * `Read::read_exact` * `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`) * libcore -- this was a bit of a nuanced stabilization, the crate itself is now marked as `#[stable]` and the methods appearing via traits for primitives like `char` and `str` are now also marked as stable. Note that the extension traits themeselves are marked as unstable as they're imported via the prelude. The `try!` macro was also moved from the standard library into libcore to have the same interface. Otherwise the functions all have copied stability from the standard library now. * The `#![no_std]` attribute * `fs::DirBuilder` * `fs::DirBuilder::new` * `fs::DirBuilder::recursive` * `fs::DirBuilder::create` * `os::unix::fs::DirBuilderExt` * `os::unix::fs::DirBuilderExt::mode` * `vec::Drain` * `vec::Vec::drain` * `string::Drain` * `string::String::drain` * `vec_deque::Drain` * `vec_deque::VecDeque::drain` * `collections::hash_map::Drain` * `collections::hash_map::HashMap::drain` * `collections::hash_set::Drain` * `collections::hash_set::HashSet::drain` * `collections::binary_heap::Drain` * `collections::binary_heap::BinaryHeap::drain` * `Vec::extend_from_slice` (renamed from `push_all`) * `Mutex::get_mut` * `Mutex::into_inner` * `RwLock::get_mut` * `RwLock::into_inner` * `Iterator::min_by_key` (renamed from `min_by`) * `Iterator::max_by_key` (renamed from `max_by`) Deprecated APIs * `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`) * `OsString::from_bytes` * `OsStr::to_cstring` * `OsStr::to_bytes` * `fs::walk_dir` and `fs::WalkDir` * `path::Components::peek` * `slice::bytes::MutableByteVector` * `slice::bytes::copy_memory` * `Vec::push_all` (renamed to `extend_from_slice`) * `Duration::span` * `IpAddr` * `SocketAddr::ip` * `Read::tee` * `io::Tee` * `Write::broadcast` * `io::Broadcast` * `Iterator::min_by` (renamed to `min_by_key`) * `Iterator::max_by` (renamed to `max_by_key`) * `net::lookup_addr` New APIs (still unstable) * `<[T]>::sort_by_key` (added to mirror `min_by_key`) Closes #27585 Closes #27704 Closes #27707 Closes #27710 Closes #27711 Closes #27727 Closes #27740 Closes #27744 Closes #27799 Closes #27801 cc #27801 (doesn't close as `Chars` is still unstable) Closes #28968
2015-12-04Don't use an explicit temporary for cloning an arrayTobias Bucher-2/+1
2015-12-04Implement `Clone` for arrays without using slice patternsTobias Bucher-10/+9
2015-12-04Implement `Clone` for `[T; 0]` to `[T; 32]` if `T: Clone`Tobias Bucher-8/+30
2015-11-29libcore/iter: fix typosIvan Stankovic-4/+4
2015-11-26Auto merge of #30068 - wthrowe:unsized-pointer-impls, r=alexcrichtonbors-4/+4
I'm pretty sure this code isn't actually used by the compiler, so this is effectively a documentation change.
2015-11-26Mark raw pointer Send and Sync impls ?SizedWilliam Throwe-4/+4
I'm pretty sure this code isn't actually used by the compiler, so this is effectively a documentation change.
2015-11-25Remove all uses of `#[staged_api]`Vadim Petrochenkov-1/+1
2015-11-25Improve docs for std::charSteve Klabnik-16/+142
Part of #29428
2015-11-23Auto merge of #29952 - petrochenkov:depr, r=brsonbors-16/+17
Part of https://github.com/rust-lang/rust/issues/29935 The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things.
2015-11-23Improve slice indexing assertionManish Goregaokar-4/+22
2015-11-23Mark slice_error_fail as a cold pathManish Goregaokar-0/+1
2015-11-20Rename #[deprecated] to #[rustc_deprecated]Vadim Petrochenkov-16/+17
2015-11-20Add information about str::parse() in FromStr docsDevon Hollowood-0/+7
2015-11-18Auto merge of #29083 - petrochenkov:stability3, r=alexcrichtonbors-3/+116
What this patch does: - Stability annotations are now based on "exported items" supplied by rustc_privacy and not "public items". Exported items are as accessible for external crates as directly public items and should be annotated with stability attributes. - Trait impls require annotations now. - Reexports require annotations now. - Crates themselves didn't require annotations, now they do. - Exported macros are annotated now, but these annotations are not used yet. - Some useless annotations are detected and result in errors - Finally, some small bugs are fixed - deprecation propagates from stable deprecated parents, items in blocks are traversed correctly (fixes https://github.com/rust-lang/rust/issues/29034) + some code cleanup.
2015-11-18Fix typo in libcore documentationAndrea Canciani-1/+1
2015-11-18Auto merge of #29882 - devonhollowood:master, r=Manishearthbors-1/+0
Implement #14615
2015-11-17Rollup merge of #29892 - steveklabnik:doc_fromiterator, r=alexcrichtonSteve Klabnik-16/+132
And modifying IntoIterator for consisntency with it. Part of #29360
2015-11-17Rollup merge of #29612 - steveklabnik:gh29502, r=alexcrichtonSteve Klabnik-1/+4
libcore does have a few deps, like noted in https://github.com/rust-lang/rust/issues/29390 Fixes #29502 r? @alexcrichton