about summary refs log tree commit diff
path: root/library/core/src/option.rs
AgeCommit message (Expand)AuthorLines
2022-10-25Rollup merge of #98204 - Kixiron:stable-unzip, r=thomccDylan DPC-4/+7
2022-10-01Change feature name to is_some_andCameron Steffen-2/+2
2022-10-01Change is_some_and to take by valueCameron Steffen-5/+8
2022-09-26Improve code example for Option::unwrap_or_defaultGuillaume Gomez-12/+4
2022-09-25Update option.rsGimgim-0/+1
2022-09-23Constify Residual behind const_tryonestacked-1/+2
2022-09-07Use `CURRENT_RUSTC_VERSION`Chase Wilson-1/+1
2022-08-23Add a warning about `Option/Result::and()` being eagerly evaluatedChayim Refael Friedman-0/+6
2022-07-05Fix links in std/core documentationGuillaume Gomez-3/+3
2022-06-17Stabilized Option::unzip()Chase Wilson-4/+7
2022-05-26Rollup merge of #96033 - yaahc:expect-elaboration, r=scottmcmMatthias Krüger-0/+20
2022-05-25fix broken doctestJane Lusby-0/+1
2022-05-25update option and result references to expect message docsJane Lusby-2/+18
2022-05-13Remove some unnecessary `rustc_allow_const_fn_unstable` attributes.Nicholas Nethercote-1/+0
2022-04-30Add `do yeet` expressions to allow experimentation in nightlyScott McMurray-0/+8
2022-04-15update docs for option to crossreference to the result docsJane Lusby-0/+3
2022-04-05trivial cfg(bootstrap) changesPietro Albini-47/+27
2022-03-31Adjust feature names that disagree on const stabilization versionDavid Tolnay-3/+3
2022-03-21Rename `~const Drop` to `~const Destruct`Deadbeef-27/+48
2022-03-18Document that `Option<extern "abi" fn>` discriminant elision applies for any ABIDaniel Henry-Mantilla-1/+3
2022-03-11Rollup merge of #94765 - m-ou-se:is-some-and, r=Dylan-DPCDylan DPC-5/+5
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-7/+7
2022-03-09Rollup merge of #91804 - woppopo:const_clone, r=oli-obkMatthias Krüger-1/+5
2022-03-09Rename is_{some,ok,err}_with to is_{some,ok,err}_and.Mara Bos-5/+5
2022-02-12`Option::and_then` basic example: show failurecyqsimon-3/+6
2022-02-10Use 0-based idx for array contentcyqsimon-2/+2
2022-02-10More practical examples for `Option::and_then`cyqsimon-6/+15
2022-02-07Change `ResultShunt` to be generic over `Try`Scott McMurray-2/+2
2022-01-19Fix is_some_with tests.Mara Bos-3/+5
2022-01-18Add is_some_with tracking issue number.Mara Bos-1/+1
2022-01-18Add Option::is_some_with.Mara Bos-0/+21
2022-01-09eplace usages of vec![].into_iter with [].into_iterLucas Kent-5/+5
2022-01-03Move `contains` method of Option and Result lower in docsDavid Tolnay-30/+30
2021-12-30Consolidate impl Option<&mut T>David Tolnay-4/+5
2021-12-30Consolidate impl Option<&T>David Tolnay-28/+29
2021-12-30Move Option::as_deref_mutDavid Tolnay-28/+26
2021-12-30Move Option::as_derefDavid Tolnay-28/+26
2021-12-30Move Option::unwrap_or_defaultDavid Tolnay-41/+39
2021-12-21Use panic() instead of panic!() in some places in core.Mara Bos-2/+4
2021-12-17Point to the tracking issueDeadbeef-28/+28
2021-12-17Constify (most) `Option` methodsDeadbeef-51/+191
2021-12-13core: minor `Option` doc correctionAndy Russell-2/+2
2021-12-12Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk"Deadbeef-1/+3
2021-12-11Rollup merge of #91737 - Manishearth:panic-immediate-stdlib, r=joshtriplettMatthias Krüger-1/+2
2021-12-12Make some `Clone` impls `const`woppopo-1/+5
2021-12-11Rollup merge of #90741 - mbartlett21:patch-4, r=dtolnayMatthias Krüger-4/+19
2021-12-10inline Option panics on panic_immediate_abortManish Goregaokar-1/+2
2021-12-06Add tracking issue numbermbartlett21-2/+2
2021-12-03Auto merge of #91286 - scottmcm:residual-trait, r=joshtriplettbors-0/+5
2021-12-03Rollup merge of #90269 - woppopo:const_option_expect, r=yaahcMatthias Krüger-2/+3