| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-06-15 | Rollup merge of #73104 - poliorcetics:explicit-mutex-drop-example, r=dtolnay | Ralf Jung | -0/+54 | |
| Example about explicit mutex dropping Fixes #67457. Following the remarks made in #73074, I added an example on the main `Mutex` type, with a situation where there is mutable data and a computation result. In my testing it is effectively needed to explicitly drop the lock, else it deadlocks. r? @dtolnay because you were the one to review the previous PR. | ||||
| 2020-06-13 | Rewrap comments in Mutex example | David Tolnay | -11/+11 | |
| 2020-06-13 | Clarify the scope-related explanation | Poliorcetics | -3/+2 | |
| Based on the review made by dtolnay. | ||||
| 2020-06-13 | Apply suggestions from code review | Poliorcetics | -5/+5 | |
| Co-authored-by: David Tolnay <dtolnay@gmail.com> | ||||
| 2020-06-10 | Migrate to numeric associated consts | Lzu Tao | -3/+1 | |
| 2020-06-09 | Remove a lot of unecessary/duplicated comments | Alexis Bourget | -11/+3 | |
| 2020-06-08 | Simply use drop instead of std::mem::drop | Poliorcetics | -2/+2 | |
| Co-authored-by: LeSeulArtichaut <leseulartichaut@gmail.com> | ||||
| 2020-06-07 | Improved the example to work with mutable data, providing a reason for the ↵ | Alexis Bourget | -4/+6 | |
| mutex holding it | ||||
| 2020-06-07 | Added an example where explicitly dropping a lock is necessary/a good idea. | Alexis Bourget | -0/+61 | |
| 2020-06-03 | Bump to 1.46 | Mark Rousskov | -10/+2 | |
| 2020-05-24 | Fix typo in doc comment. | Eitan Mosenkis | -1/+1 | |
| call_one_force -> call_once_force | ||||
| 2020-05-17 | make abort intrinsic safe, and correct its documentation | Ralf Jung | -0/+4 | |
| 2020-05-03 | Rollup merge of #71398 - ThinkChaos:feat_refcell_take, r=LukasKalbertodt | Dylan DPC | -1/+1 | |
| Add `RefCell::take` Add `RefCell::take` to match `Cell` and `Option`. I also changed a couple of calls to `.replace` to `.take`. Tracking issue is #71395. This is my first contribution, please tell me if there's anything I could improve, thanks! | ||||
| 2020-04-26 | Use Cell::take in a couple places | ThinkChaos | -1/+1 | |
| 2020-04-26 | fix more clippy warnings | Matthias Krüger | -1/+1 | |
| clippy::{redundant_pattern_matching, clone_on_copy, iter_cloned_collect, option_as_ref_deref, match_ref_pats} | ||||
| 2020-04-24 | Avoid unused Option::map results | Josh Stone | -5/+11 | |
| These are changes that would be needed if we add `#[must_use]` to `Option::map`, per #71484. | ||||
| 2020-04-22 | More diagnostic items for Clippy usage | Philipp Hansch | -0/+1 | |
| This adds a couple of more diagnostic items to be used in Clippy. I chose these particular ones because they were the types which we seem to check for the most in Clippy. I'm not sure if the `cfg_attr(not(test))` is needed, but it was also used for `Vec` and a few other types. | ||||
| 2020-04-16 | Dogfood or_patterns in the standard library | Josh Stone | -2/+2 | |
| 2020-04-05 | Stop importing integer modules in libstd | Linus Färnstrand | -3/+0 | |
| 2020-03-15 | Fix "since" field for `Once::is_complete`'s `#[stable]` attribute | Lukas Kalbertodt | -1/+1 | |
| It was accidentally merged with the wrong version. | ||||
| 2020-03-07 | Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkov | Mazdak Farrokhzad | -1/+1 | |
| fix various typos | ||||
| 2020-03-06 | Don't redundantly repeat field names (clippy::redundant_field_names) | Matthias Krüger | -6/+3 | |
| 2020-03-06 | fix various typos | Matthias Krüger | -1/+1 | |
| 2020-02-07 | Stabilize Once::is_completed | Michael Bradshaw | -6/+5 | |
| 2020-01-14 | Auto merge of #67076 - mbrubeck:condvar, r=dtolnay | bors | -43/+34 | |
| Stabilize Condvar::wait_while and wait_timeout_while (previously wait_until, wait_timeout_until) Closes #47960. | ||||
| 2020-01-08 | Use matches macro in libcore and libstd | Igor Aleksanov | -10/+2 | |
| 2019-12-28 | Rollup merge of #67632 - kraai:remove-collapsed-reference-links, r=steveklabnik | Oliver Scherer | -5/+5 | |
| Convert collapsed to shortcut reference links | ||||
| 2019-12-26 | Rename wait_until/wait_timeout_until to wait_while/white_timeout_while | Matt Brubeck | -36/+32 | |
| 2019-12-26 | Stabilize Condvar::wait_until and wait_timeout_until | Matt Brubeck | -7/+2 | |
| 2019-12-26 | Convert collapsed to shortcut reference links | Matthew Kraai | -5/+5 | |
| 2019-12-26 | Remove redundant link texts | Matthew Kraai | -1/+1 | |
| 2019-12-24 | Deprecate Error::description for real | David Tolnay | -0/+5 | |
| `description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler. | ||||
| 2019-12-22 | Format the world | Mark Rousskov | -112/+121 | |
| 2019-12-18 | Propagate cfg bootstrap | Mark Rousskov | -1/+1 | |
| 2019-12-13 | Require stable/unstable annotations for the constness of all stable ↵ | Oliver Scherer | -0/+1 | |
| functions with a `const` modifier | ||||
| 2019-12-06 | get rid of __ in field names | Ralf Jung | -26/+24 | |
| 2019-11-29 | Format libstd with rustfmt | David Tolnay | -485/+499 | |
| This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libstd. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference | ||||
| 2019-11-09 | Run rustfmt on libstd/sync/once.rs | Paul Dicker | -32/+29 | |
| 2019-11-05 | Don't mutate node.next | Paul Dicker | -36/+34 | |
| 2019-10-25 | Mention park guarantee | Paul Dicker | -0/+4 | |
| 2019-10-24 | Always align Waiter to 4 bytes | Paul Dicker | -0/+1 | |
| 2019-10-24 | Use more precise atomic orderings | Paul Dicker | -12/+41 | |
| 2019-10-24 | In Waiter use interior mutability for thread | Paul Dicker | -9/+19 | |
| 2019-10-24 | Reduce the amount of comments in call_inner | Paul Dicker | -19/+6 | |
| 2019-10-24 | Move thread parking to a seperate function | Paul Dicker | -38/+42 | |
| 2019-10-24 | Turn Finish into WaiterQueue | Paul Dicker | -23/+21 | |
| 2019-10-23 | Don't mutate waiter nodes | Paul Dicker | -9/+9 | |
| 2019-10-23 | Simplify loop conditions in RUNNING and add comments | Paul Dicker | -17/+29 | |
| 2019-10-23 | Rename state to state_and_queue | Paul Dicker | -28/+29 | |
| 2019-10-16 | Don't recommend ONCE_INIT in std::sync::Once | boyned//Kampfkarren | -3/+2 | |
| ONCE_INIT is deprecated, and so suggesting it as not only being on par with, but before `Once::new` is a bad idea. | ||||
