rust/library/std/src
Yuki Okushi 961fa632d6
Rollup merge of #83780 - matklad:doc-error-message, r=JohnTitor
Document "standard" conventions for error messages

These are currently documented in the API guidelines:

https://rust-lang.github.io/api-guidelines/interoperability.html#error-types-are-meaningful-and-well-behaved-c-good-err

I think it makes sense to uplift this guideline (in a milder form) into
std docs. Printing and producing errors is something that even
non-expert users do frequently, so it is useful to give at least some
indication of what a typical error message looks like.
2021-04-04 00:19:37 +09:00
..
backtrace Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
collections Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f64 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
ffi Add a few missing links, fix a typo 2021-03-31 16:02:59 +02:00
fs std: Fix test got_symlink_permission on Windows 2020-11-16 21:09:26 +03:00
io Auto merge of #80965 - camelid:rename-doc-spotlight, r=jyn514 2021-04-02 07:04:58 +00:00
lazy Upgrade wasm32 image to Ubuntu 20.04 2021-02-06 13:05:56 +01:00
memchr std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
net Rollup merge of #82487 - CDirkx:const-socketaddr, r=m-ou-se 2021-04-04 00:19:30 +09:00
num rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00
os Deprecate std::os::haiku::raw 2021-03-16 17:43:33 -04:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path Refactor parse_prefix on Windows 2020-11-07 16:15:48 +01:00
prelude Rollup merge of #80720 - steffahn:prettify_prelude_imports, r=camelid,jyn514 2021-03-31 01:14:40 +02:00
process std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
sync Fix minor typo in once.rs 2021-04-01 00:52:02 -04:00
sys Rollup merge of #83771 - asomers:stack_overflow_freebsd, r=dtolnay 2021-04-02 19:57:35 +02:00
sys_common Improve fs error open_from unix 2021-03-27 21:23:48 +08:00
thread Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
time Duration::zero() -> Duration::ZERO 2020-10-21 20:44:03 -07:00
alloc.rs Fix safety comment 2021-01-07 09:13:21 +01:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
env.rs Document security implications of std::env::temp_dir 2021-01-20 11:24:47 -08:00
error.rs Document "standard" conventions for error messages 2021-04-02 15:11:49 +03:00
f32.rs doc: cube root, not cubic root 2021-02-26 19:03:44 +01:00
f64.rs doc: cube root, not cubic root 2021-02-26 19:03:44 +01:00
fs.rs Rollup merge of #83558 - m-ou-se:use-finish-non-exhaustive, r=jackh726 2021-03-28 01:33:17 +09:00
keyword_docs.rs Rollup merge of #83680 - ibraheemdev:patch-2, r=Dylan-DPC 2021-03-31 01:14:49 +02:00
lazy.rs Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
lib.rs Rollup merge of #82487 - CDirkx:const-socketaddr, r=m-ou-se 2021-04-04 00:19:30 +09:00
macros.rs Use #[doc = include_str!()] in std 2021-02-23 15:54:55 +01:00
memchr.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
num.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
panic.rs Fixed minor typo in catch_unwind docs 2021-02-13 16:59:06 +01:00
panicking.rs fix another comment, and make __rust_start_panic code a bit more semantically clear 2020-12-25 23:37:27 +01:00
path.rs Apply suggestions from code review 2021-03-31 16:09:25 +02:00
primitive_docs.rs Rephrase -0.0 docs 2021-03-22 17:02:09 -07:00
process.rs Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
rt.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
time.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00