| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-10-06 | Rollup merge of #76388 - poliorcetics:system-time-document-panic, r=KodrAus | Yuki Okushi | -0/+10 | |
| Add a note about the panic behavior of math operations on time objects Fixes #71226. | ||||
| 2020-09-27 | Split sys_common::Mutex in StaticMutex and MovableMutex. | Mara Bos | -2/+2 | |
| The (unsafe) Mutex from sys_common had a rather complicated interface. You were supposed to call init() manually, unless you could guarantee it was neither moved nor used reentrantly. Calling `destroy()` was also optional, although it was unclear if 1) resources might be leaked or not, and 2) if destroy() should only be called when `init()` was called. This allowed for a number of interesting (confusing?) different ways to use this Mutex, all captured in a single type. In practice, this type was only ever used in two ways: 1. As a static variable. In this case, neither init() nor destroy() are called. The variable is never moved, and it is never used reentrantly. It is only ever locked using the LockGuard, never with raw_lock. 2. As a Boxed variable. In this case, both init() and destroy() are called, it will be moved and possibly used reentrantly. No other combinations are used anywhere in `std`. This change simplifies things by splitting this Mutex type into two types matching the two use cases: StaticMutex and MovableMutex. The interface of both new types is now both safer and simpler. The first one does not call nor expose init/destroy, and the second one calls those automatically in its new() and Drop functions. Also, the locking functions of MovableMutex are no longer unsafe. | ||||
| 2020-09-09 | Rollup merge of #76162 - abrausch:documentation-fix-duration_since, r=jyn514 | Dylan DPC | -3/+4 | |
| Make duration_since documentation more clear | ||||
| 2020-09-08 | Make duration_since documentation more clear | Alexander Brausch | -3/+4 | |
| 2020-09-05 | Add a note about the panic behavior of math operations on time objects | Alexis Bourget | -0/+10 | |
| 2020-09-04 | time.rs: Make spelling of "Darwin" consistent | numbermaniac | -1/+1 | |
| 2020-08-31 | std: move "mod tests/benches" to separate files | Lzu Tao | -169/+3 | |
| Also doing fmt inplace as requested. | ||||
| 2020-08-22 | Update docs for SystemTime Windows implementation | Oliver Middleton | -1/+2 | |
| Windows now uses `GetSystemTimePreciseAsFileTime` on versions of Windows that support it. | ||||
| 2020-08-12 | Use explicit path link in place for doc in time | Ivan Tham | -6/+2 | |
| 2020-08-11 | Remove two links by changing the doc for SystemTimeError::duration | Alexis Bourget | -6/+3 | |
| 2020-08-10 | Move to doc links inside std/time.rs | Alexis Bourget | -24/+4 | |
| 2020-07-27 | mv std libs to library/ | mark | -0/+827 | |
