about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2017-08-07libcore: Implement cloned() for Option<&mut T>panicbit-0/+19
2017-08-06Preface 'cares' with 'only'Ryan Leckey-1/+1
2017-08-02Change "Example" to "Examples" in the doc commentsMichael Howell-2/+2
2017-08-02Fixed errors in libstd.Isaac van Bakel-6/+6
2017-08-02Rollup merge of #43423 - xliiv:cell-example, r=steveklabnikCorey Farwell-0/+28
Add simple docs example for struct Cell
2017-08-01Fixed all unnecessary muts in language coreIsaac van Bakel-3/+3
2017-08-01Add an overflow check in the Iter::next() impl for Range<_>oyvindln-3/+10
This helps with vectorization in some cases, such as (0..u16::MAX).collect::<Vec<u16>>(), as LLVM is able to change the loop condition to use equality instead of less than
2017-07-31Implement `RefCell::replace` and `RefCell::swap`Michael Howell-0/+71
2017-07-30Document the `from_str_radix` panicTobias Bucher-0/+4
CC #42034
2017-07-29Rollup merge of #43409 - tshepang:concise, r=steveklabnikMark Simulacrum-25/+8
doc: make into_iter example more concise Also, remove dupe example
2017-07-28Fix more tests with `GeneratorState` renameAlex Crichton-8/+8
2017-07-28Rename State to GeneratorStateJohn Kåre Alsaker-4/+4
2017-07-28Derive traits for State.John Kåre Alsaker-1/+1
2017-07-28Remove support for `gen arg`Alex Crichton-8/+8
2017-07-28Fill in generator tracking issue in a few more locationsAlex Crichton-1/+1
2017-07-28Add documentation for generatorsAlex Crichton-4/+88
2017-07-28std: Add forwarding impls of `Generator` traitAlex Crichton-9/+14
2017-07-28Fix tidy warningsAlex Crichton-1/+1
2017-07-28Generator literal supportJohn Kåre Alsaker-0/+46
2017-07-27Use `rustc_on_unimplemented`'s trait name argument in `try`Esteban Küber-1/+1
2017-07-26Auto merge of #43373 - alexcrichton:stabilize-1.20.0, r=aturonbors-37/+29
Stabilize more APIs for the 1.20.0 release In addition to the few stabilizations that have already landed, this cleans up the remaining APIs that are in `final-comment-period` right now to be stable by the 1.20.0 release
2017-07-26Rollup merge of #43471 - ollie27:try_from_ints, r=nagisaMark Simulacrum-15/+30
Add missing impl and tests for int to int TryFrom impls These were missing from #43248. r? @nagisa
2017-07-26Rollup merge of #42959 - SimonSapin:nonzero-checked, r=sfacklerMark Simulacrum-29/+130
Make the "main" constructors of NonZero/Shared/Unique return Option Per discussion in https://github.com/rust-lang/rust/issues/27730#issuecomment-303939441. This is a breaking change to unstable APIs. The old behavior is still available under the name `new_unchecked`. Note that only that one can be `const fn`, since `if` is currently not allowed in constant contexts. In the case of `NonZero` this requires adding a new `is_zero` method to the `Zeroable` trait. I mildly dislike this, but it’s not much worse than having a `Zeroable` trait in the first place. `Zeroable` and `NonZero` are both unstable, this can be reworked later.
2017-07-25Auto merge of #43320 - alexcrichton:new-bootstrap, r=Mark-Simulacrumbors-40/+10
Bump master to 1.21.0 This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-25std: Stabilize the `str_{mut,box}_extras` featureAlex Crichton-3/+3
Stabilizes * `<&mut str>::as_bytes_mut` * `<Box<str>>::into_boxed_bytes` * `std::str::from_boxed_utf8_unchecked` * `std::str::from_utf8_mut` * `std::str::from_utf8_unchecked_mut` Closes #41119
2017-07-25Stabilize the `compile_error_macro` featureAlex Crichton-1/+1
Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872
2017-07-25std: Stabilize `manually_drop` featureAlex Crichton-10/+7
Stabilizes * `core::mem::ManuallyDrop` * `std::mem::ManuallyDrop` * `ManuallyDrop::new` * `ManuallyDrop::into_inner` * `ManuallyDrop::drop` * `Deref for ManuallyDrop` * `DerefMut for ManuallyDrop` Closes #40673
2017-07-25std: Stabilize `utf8_error_error_len` featureAlex Crichton-1/+1
Stabilizes: * `Utf8Error::error_len` Closes #40494
2017-07-25std: Stabilize `str_checked_slicing` featureAlex Crichton-10/+10
Stabilized * `<str>::get` * `<str>::get_mut` * `<str>::get_unchecked` * `<str>::get_unchecked_mut` Closes #39932
2017-07-25std: Stabilize `option_entry` featureAlex Crichton-6/+2
Stabilized: * `Option::get_or_insert` * `Option::get_or_insert_with` Closes #39288
2017-07-25std: Stabilize `char_escape_debug`Alex Crichton-6/+5
Stabilizes: * `<char>::escape_debug` * `std::char::EscapeDebug` Closes #35068
2017-07-25Bump master to 1.21.0Alex Crichton-40/+10
This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-25Add missing impl and tests for int to int TryFrom implsOliver Middleton-15/+30
2017-07-25Auto merge of #43325 - ollie27:overflowing_literals, r=arielb1bors-5/+1
Fix overflowing_literals lint for large f32s Float literals need to be parsed as the correct type so they can be rounded correctly.
2017-07-25Auto merge of #43248 - llogiq:num-try-from, r=nagisabors-38/+391
improve the TryFrom implementations This removes the need for a 128 bit storage by making use of the fact that there can be either no over/underflow, either one or both, and each time the target type suffices to hold the limit for comparison. This also means that the implementation will work in targets without 128bit support (unless it's for 128bit types, of course). The downside is that the code looks a bit more complex.
2017-07-24s/immutable/my_structTymoteusz Jankowski-3/+3
2017-07-24doc: make into_iter example more conciseTshepang Lekhonkhobe-25/+8
2017-07-24improve the TryFrom implementationsAndre Bogus-38/+391
This removes the need for a 128 bit storage by making use of the fact that there can be either no over/underflow, either one or both, and each time the target type suffices to hold the limit for comparison. The downside is that the code looks a bit more complex. This test code included in this commit is from @oyvindln 's PR. They also greatly helped fixing a number of errors I made along the way. Thanks a lot!
2017-07-24empty linesTymoteusz Jankowski-0/+5
2017-07-24ci fix?Tymoteusz Jankowski-5/+0
2017-07-24review fixesTymoteusz Jankowski-3/+3
2017-07-24Rollup merge of #43428 - waywardmonkeys:doc-fixes, r=estebankMark Simulacrum-4/+4
Fix some doc/comment typos.
2017-07-24add proseTymoteusz Jankowski-1/+6
2017-07-24Auto merge of #43413 - mandeep:ops-generics, r=alexcrichtonbors-0/+36
Add generic example of std::ops::Sub in doc comments This PR adds an example of using generics with std::ops::Sub and is a follow up of PR #41612 and is related to issue #29365. I also wanted to add examples to Mul and Div, but I think these two traits are already loaded with examples.
2017-07-23Fix some doc/comment typos.Bruce Mitchener-4/+4
2017-07-23Auto merge of #43416 - tshepang:extra-layer, r=alexcrichtonbors-6/+5
doc: provide an actual equivalent to filter_map
2017-07-23Add simple docs example for struct CellTymoteusz Jankowski-0/+23
2017-07-23Auto merge of #43406 - canndrew:never-impl-clone, r=alexcrichtonbors-0/+1
Add missing `!: Clone` impl Fixes #43296 (untested because I'm having computer troubles, but a one-liner can't break anything right?)
2017-07-22doc: provide an actual equivalent to filter_mapTshepang Lekhonkhobe-6/+5
2017-07-22Fix unstable feature name for some impls for Unique<T>Simon Sapin-2/+2