summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2015-07-29Feature gate associated type defaultsBrian Anderson-0/+1
There are multiple issues with them as designed and implemented. cc #27364 Conflicts: src/libsyntax/feature_gate.rs src/test/auxiliary/xcrate_associated_type_defaults.rs
2015-07-08std: Fix formatting flags for charsAlex Crichton-1/+8
This recently regressed in #24689, and this updates the `Display` implementation to take formatting flags into account. Closes #26625
2015-06-30core: fix deprecation since version of align_of_min.Huon Wilson-2/+2
These will first be deprecated in 1.2.0, not 1.1.0.
2015-06-30Make `align_of` behave like `min_align_of`.Huon Wilson-13/+7
This removes a footgun, since it is a reasonable assumption to make that pointers to `T` will be aligned to `align_of::<T>()`. This also matches the behaviour of C/C++. `min_align_of` is now deprecated. Closes #21611.
2015-06-21Auto merge of #26450 - rick68:patch-7, r=alexcrichtonbors-2/+1
`core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2
2015-06-20Update mod.rsWei-Ming Yang-2/+1
`core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2
2015-06-19add note for future type-system adventurersAlexis Beingessner-0/+5
2015-06-17std: Hide some internal functions more aggressivelyAlex Crichton-2/+4
* Add `#[doc(hidden)]` * Rename away from `Error::description`
2015-06-17std: Update stable since for `core::char`Alex Crichton-1/+3
Also add `#[doc(hidden)]` to a few internal functions.
2015-06-17More test fixes and fallout of stability changesAlex Crichton-2/+24
2015-06-17std: Stabilize the `str_matches` featureAlex Crichton-2/+2
This commit stabilizes the `str::{matches, rmatches}` functions and iterators, but renames the unstable feature for the `str::{matches,rmatches}_indices` function to `str_match_indices` due to the comment present on the functions about the iterator's return value.
2015-06-17std: Stabilize the `iter_{once,empty}` featuresAlex Crichton-12/+12
This commit stabilizes these two iterator primitives as they have gone through the RFC process and had some time to bake now.
2015-06-17std: Stabilize the remaining wrapping_* functionsAlex Crichton-10/+10
This commit stabilizes the remaining `wrapping_*` functions on the primitive integer types as they follow the same conventions as other wrapping methods are were likely just initially unstable to be conservative.
2015-06-17std: Deprecate f{32,64}::consts::PI_2Alex Crichton-0/+2
These constants have been unstable for some time now already
2015-06-17std: Remove two internal `str_internals` functionsAlex Crichton-4/+2
These were just exposed to be used elsewhere at some point, but neither is currently being used so just make them private again.
2015-06-17std: Deprecate the IntSliceExt traitAlex Crichton-0/+4
This trait has seen very little usage and while safe, may not belong in the standard library.
2015-06-17std: Deprecate result::foldAlex Crichton-0/+3
This function has seen very little use and it seems better to explore this functionality through iterator adaptors instead of specialized functions.
2015-06-17std: Deprecate the copy_{,mut_}lifetime functionsAlex Crichton-0/+8
Unsafe patterns such as `slice::from_raw_parts` and `CStr::from_ptr` have shown that dealing with lifetimes, while useful, is often a hindrance. Consequently these functions are rarely called today and are being deprecated.
2015-06-17std: Deprecate iter::{Unfold, Iterate}Alex Crichton-0/+12
Neither of these iterators has seen enough usage to justify their position in the standard library, so these unstable iterators are being slated for deletion.
2015-06-17std: Deprecate the RandomAccessIterator traitAlex Crichton-0/+4
This trait has not proven itself over time as being core and fundamentally useful to iterators, so it's being deprecated to allow time to iterate on it out of tree.
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-24/+24
2015-06-17core: Split apart the global `core` featureAlex Crichton-232/+258
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-06-17Auto merge of #26261 - tshepang:more-brief-example, r=huonwbors-11/+2
Also, it feels more suitable to use hex to represent unicode
2015-06-16Auto merge of #26313 - steveklabnik:fix_str_docs, r=alexcrichtonbors-10/+10
Because these structures are created by a macro, the doc comments don't quite work: the leading /// isn't stripped. Instead, just use #[doc] so that they render correctly.
2015-06-15Fix up Split docsSteve Klabnik-10/+10
Because these structures are created by a macro, the doc comments don't quite work: the leading /// isn't stripped. Instead, just use #[doc] so that they render correctly.
2015-06-15Auto merge of #25359 - thepowersgang:result-expect-2, r=alexcrichtonbors-0/+20
As it says in the title. I've added an `expect` method to `Result` that allows printing both an error message (e.g. what operation was attempted), and the error value. This is separate from the `unwrap` and `ok().expect("message")` behaviours.
2015-06-15libcore/Result - RFC#1119 Add an 'expect' method to ResultJohn Hodge-0/+20
2015-06-14Update mod.rsWei-Ming Yang-2/+2
`FormatError` is not exist anymore.
2015-06-13doc: make char::from_u32 example more briefTshepang Lekhonkhobe-11/+2
2015-06-11Auto merge of #26190 - Veedrac:no-iter, r=alexcrichtonbors-10/+10
Pull request for #26188.
2015-06-11Auto merge of #26212 - Manishearth:rollup, r=Manishearthbors-0/+2
- Successful merges: #26181, #26184, #26189, #26191, #26195, #26202 - Failed merges:
2015-06-11Auto merge of #26177 - jooert:fix26169, r=alexcrichtonbors-54/+71
Closes #26169. r? @steveklabnik
2015-06-11Rollup merge of #26189 - bluss:iter-once-clone, r=GankroManish Goregaokar-0/+2
core: impl Clone for option::IntoIter and iter::Once
2015-06-11Auto merge of #26154 - pmarcelll:master, r=Gankrobors-0/+4
Various methods in both libcore/char.rs and librustc_unicode/char.rs were previously marked with #[inline], now every method is marked in char's impl blocks. Partially fixes #26124. EDIT: I'm not familiar with pull reqests (yet), apparently Github added my second commit to thit PR... Fixes #26124
2015-06-11Auto merge of #25839 - bluss:str-split-at-impl, r=alexcrichtonbors-0/+13
Implement RFC rust-lang/rfcs#1123 Add str method str::split_at(mid: usize) -> (&str, &str). Also a minor cleanup in the collections::str module. Remove redundant slicing of self.
2015-06-10Auto merge of #24689 - SimonSapin:formatter-write-char, r=alexcrichtonbors-4/+16
This is the logical next step after #24661, but I’m less sure about this one. r? @alexcrichton
2015-06-10Removed many pointless calls to *iter() and iter_mut()Joshua Landau-10/+10
2015-06-10Have std::fmt::Formatter implement std::fmt::Write.Simon Sapin-7/+15
2015-06-10core: impl Clone for option::IntoIter and iter::OnceUlrik Sverdrup-0/+2
2015-06-10Add a write_char method to std::fmt::Formatter.Simon Sapin-4/+8
This is the logical next step after #24661, but I’m less sure about this one.
2015-06-10Improve examples for atomic types.Johannes Oertel-54/+71
Swap arguments of `assert_eq!` calls, insert additional assertions here and there. Closes #26169.
2015-06-10Add str::split_atUlrik Sverdrup-0/+13
Implement RFC rust-lang/rfcs#1123 Add str method str::split_at(mid: usize) -> (&str, &str).
2015-06-09Add missing #[inline] to methods related to char.marcell-0/+4
2015-06-09Exise 'unsafe pointer' in favor of 'raw pointer'Steve Klabnik-6/+6
Using two terms for one thing is confusing, these are called 'raw pointers' today.
2015-06-08Auto merge of #25823 - oli-obk:static_to_const_lint, r=alexcrichtonbors-4/+1
r? @eddyb
2015-06-07change some statics to constantsOliver 'ker' Schneider-4/+1
2015-06-07Auto merge of #26066 - steveklabnik:docs_on_a_plane, r=alexcrichtonbors-19/+4
When things get stabilized, they don't always have their docs updated to remove the gate.
2015-06-06Remove many unneeded feature annotations in the docsSteve Klabnik-19/+4
When things get stabilized, they don't always have their docs updated to remove the gate.
2015-06-04Doc-comment fix; trait names are capitalizedCorey Farwell-2/+2
2015-06-03Improve `try!` docs to make clearer it returns `Result`.Carol Nichols-1/+3
The API documentation is not explicit enough that because `try!` returns `Err` early for you, you can only use it in functions that return `Result`. The book mentions this, but if you come across `try!` outside of the book and look it up in the docs, this restriction on the return type of the function is not particularly clear.