rust/library/std/src
Dylan DPC f94c3c9da1
Rollup merge of #108370 - fbq:time-doc-fix, r=thomcc
std: time: Avoid to use "was created" in elapsed() description

".. since this instant was created" is inaccurate and misleading, consider the following case:
```rust
	let i1 = Instant::now(); // i1 is created at T1
	let i2 = i1 + Duration::from_nanos(0); // i2 is "created" at T2
	i2.elapsed(); // at T3
```
Per the current description, `elapsed()` at T3 should return T3 - T2?

To avoid the inaccuracy, removes the "was created" in the description of {Instant,SystemTime}::elapsed().
And since these types represent times, it's OK to use prepostions with them, e.g. "since this instant".
2023-02-24 12:02:42 +05:30
..
backtrace Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
collections Fix typo in HashMap::with_capacity 2023-02-05 10:13:30 -08:00
env
error remove fn backtrace 2022-08-01 20:10:40 +00:00
f32 Improve accuracy of asinh and acosh 2022-11-17 12:50:33 -08:00
f64 Improve accuracy of asinh and acosh 2022-11-17 12:50:33 -08:00
ffi Guarantee try_reserve preserves the contents on error 2022-08-10 01:51:38 +09:00
fs Replace libc::{type} with crate::ffi::{type} 2023-01-28 11:24:13 +05:30
io std: add tracking issue for RawOsError 2023-02-08 12:35:27 +01:00
net Replace unwrap with ? in TcpListener doc 2023-01-31 21:04:49 +00:00
num
os Rollup merge of #107317 - ids1024:asfd-rc, r=dtolnay 2023-02-08 20:01:24 -08:00
panic
path make many std tests work in Miri 2022-08-18 18:07:39 -04:00
personality Replace libc::{type} with crate::ffi::{type} 2023-01-28 11:24:13 +05:30
prelude Update bootstrap cfg 2022-12-28 09:18:43 -05:00
process More verbose Debug implementation of std::process:Command 2022-12-27 09:50:01 +01:00
sync Auto merge of #107329 - joboet:optimize_lazylock, r=m-ou-se 2023-02-18 09:29:21 +00:00
sys Rollup merge of #108218 - ChrisDenton:cmd-escape, r=cuviper 2023-02-23 06:18:06 +01:00
sys_common Rollup merge of #107736 - tgross35:atomic-as-ptr, r=m-ou-se 2023-02-22 20:05:57 +01:00
thread Rollup merge of #104659 - tshepang:reflow, r=workingjubilee 2023-02-19 13:03:39 +05:30
time Fix non-associativity of Instant math on aarch64-apple-darwin targets 2022-11-13 12:01:42 -08:00
alloc.rs default OOM handler: use non-unwinding panic (unless -Zoom=panic is set), to match std handler 2023-01-02 16:35:14 +01:00
ascii.rs Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
backtrace.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
env.rs Rollup merge of #101648 - Timmmm:home_dir_docs, r=joshtriplett 2022-12-11 23:36:44 +01:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
f32.rs Clarify wording on f64::round() and f32::round() 2023-02-05 19:44:21 -08:00
f64.rs Clarify wording on f64::round() and f32::round() 2023-02-05 19:44:21 -08:00
fs.rs Suggest simpler fs helper methods in File::{open,create} 2023-02-15 18:58:38 +00:00
keyword_docs.rs use UpperCamelCase 2023-02-20 23:44:21 +01:00
lib.rs Remove a couple of #[doc(hidden)] pub fn and their #[feature] gates 2023-02-10 08:06:35 +01:00
macros.rs Add tidy check for dbg 2022-12-31 15:32:09 +05:30
num.rs
panic.rs Clarify catch_unwind docs about panic hooks 2022-12-28 16:54:42 +01:00
panicking.rs Explain the default panic hook better 2023-02-20 23:37:19 +00:00
path.rs Auto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2023-01-31 19:24:29 +00:00
personality.rs Move personality functions to std 2022-08-23 16:12:58 +08:00
primitive_docs.rs disable strict-provenance-violating doctests in Miri 2022-11-22 11:49:02 +01:00
process.rs delete more cfg(bootstrap) 2022-12-28 09:18:43 -05:00
rt.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
time.rs std: time: Avoid to use "was created" in elapsed() description 2023-02-22 14:40:43 -08:00