about summary refs log tree commit diff
path: root/src/libcore/cell.rs
AgeCommit message (Collapse)AuthorLines
2018-02-27SimplifyMaxim Nazarenko-5/+9
Merge three rules into one following @cramertj
2018-02-27style fixMaxim Nazarenko-1/+1
2018-02-27fix wording on panics in binary operators on RefCells"Mazdak Farrokhzad-7/+7
2018-02-27remove italicMaxim Nazarenko-2/+2
remove italic as per @GuillaumeGomez suggestion
2018-02-26some grammar correctionsChristian Poveda-6/+7
2018-02-25fixed linksChristian Poveda-2/+2
2018-02-24corrected grammar errorsChristian Poveda-4/+4
2018-02-24added link to sync containersChristian Poveda-1/+2
2018-02-23cleaned trailing whitespacesChristian Poveda-2/+2
2018-02-23remove redundant infoChristian Poveda-5/+5
2018-02-23add info about syncChristian Poveda-1/+3
2018-02-22First versionChristian Poveda-1/+15
2018-02-20RefCell: document panics in Clone, PartialEq, PartialOrd, Ord. Fixes #47400Mazdak Farrokhzad-0/+24
2018-02-14fix tidy checksMaxim Nazarenko-2/+2
2018-02-14rephrase UnsafeCell docMaxim Nazarenko-8/+9
Make UnsafeCell doc easier to follow
2018-01-05Make UnsafeCell::into_inner safevarkor-9/+4
This fixes #35067. It will require a Crater run as discussed in that issue.
2017-12-20Rollup merge of #46517 - notriddle:patch-2, r=BurntSushikennytm-4/+2
Stablize RefCell::{replace, swap} RefCell::replace_with is not stablized in this PR, since it wasn't part of the RFC. CC #43570
2017-12-06more commentsAriel Ben-Yehuda-1/+1
2017-12-06adjust libcoreAriel Ben-Yehuda-2/+4
2017-12-05Update cell.rsMichael Howell-3/+3
2017-12-05Move replace_with to its own feature flagMichael Howell-1/+1
I'm not allowed to have the same feature flag associated with multiple stability levels.
2017-12-05Stablize RefCell::{replace, swap}Michael Howell-4/+2
RefCell::replace_with is not stablized in this PR, since it wasn't part of the RFC.
2017-11-26Stabilize const-calling existing const-fns in stdSimon Sapin-3/+0
Fixes #46038
2017-11-06Add RefCell<T>::replace_withHavvy-13/+38
2017-10-26Bump to 1.23 and update bootstrapAlex Crichton-3/+3
This commit updates the bootstrap compiler, bumps the version to 1.23, updates Cargo, updates books, and updates crates.io dependencies
2017-09-16change #![feature(const_fn)] to specific gatesAlex Burka-0/+3
2017-08-24Fix inconsistent doc headingslukaramu-2/+2
This fixes headings reading "Unsafety" and "Example", they should be "Safety" and "Examples" according to RFC 1574.
2017-08-17Fixed typo in RefCell::get_mutAnthony Clays-1/+1
2017-08-14Auto merge of #43574 - notriddle:master, r=sfacklerbors-0/+53
Implement `RefCell::replace` and `RefCell::swap` Tracking issue: #43570
2017-08-08Clarify the language around `RefCell::swap`Michael Howell-1/+1
2017-08-02Change "Example" to "Examples" in the doc commentsMichael Howell-2/+2
2017-07-31Implement `RefCell::replace` and `RefCell::swap`Michael Howell-0/+53
2017-07-24s/immutable/my_structTymoteusz Jankowski-3/+3
2017-07-24empty linesTymoteusz Jankowski-0/+5
2017-07-24ci fix?Tymoteusz Jankowski-5/+0
2017-07-24review fixesTymoteusz Jankowski-3/+3
2017-07-24add proseTymoteusz Jankowski-1/+6
2017-07-23Add simple docs example for struct CellTymoteusz Jankowski-0/+23
2017-07-10Correct some stability attributesOliver Middleton-2/+2
These show up in rustdoc so need to be correct.
2017-06-22Ensure Guard types impl Display & DebugChris MacNaughton-0/+14
Fixes #24372
2017-06-08doc: a more complete explanation, and a better exampleTshepang Lekhonkhobe-5/+5
2017-05-20Correct some stability versionsOliver Middleton-1/+1
These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers.
2017-05-04fallout from NonZero/Unique/Shared changesAlexis Beingessner-3/+1
2017-04-24Add more explanation on RefCell::get_mutGuillaume Gomez-0/+9
2017-04-20Remove RefCell::borrow_stateJosh Stone-46/+0
[unstable, deprecated since 1.15.0]
2017-04-20Remove {Cell,RefCell}::as_unsafe_cellJosh Stone-43/+0
[unstable, deprecated since 1.12.0]
2017-03-17Stabilize move_cell feature, closes #39264Aaron Turon-8/+4
2017-02-15Rollup merge of #39793 - RalfJung:cell, r=alexcrichtonCorey Farwell-62/+62
Allow more Cell methods for non-Copy types Clearly, `get_mut` is safe for any `T`. The other two only provide unsafe pointers anyway. The only remaining inherent method with `Copy` bound is `get`, which sounds about right to me. I found the order if `impl` blocks in the file a little weird (first inherent impl, then some trait impls, then another inherent impl), but didn't change it to keep the diff small. Contributes to #39264
2017-02-14Remove Copy bound from some Cell trait implsRalf Jung-2/+2
Contributes to #39264
2017-02-13Allow more Cell methods for non-Copy typesRalf Jung-60/+60
Contributes to #39264