about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-05 15:56:50 +0200
committerGitHub <noreply@github.com>2022-04-05 15:56:50 +0200
commitb5e763ace3c6e9e5d23cfe201a7aecfa5f8bd050 (patch)
treee3e321c78b06d470dd3ba8dd0d104d4f2d565d47 /compiler/rustc_codegen_gcc/example/std_example.rs
parenta1e7f6db510299f58ff91a2a944655bd9d6419a0 (diff)
parentccb704c73d5800048c16a836a906a12d909f962f (diff)
downloadrust-b5e763ace3c6e9e5d23cfe201a7aecfa5f8bd050.tar.gz
rust-b5e763ace3c6e9e5d23cfe201a7aecfa5f8bd050.zip
Rollup merge of #95660 - yaahc:panic-docs-update, r=Dylan-DPC
Update panic docs to make it clearer when to use panic vs Result

This is based on a question that came up in one of my [error handling office hours](https://twitter.com/yaahc_/status/1506376624509374467?s=20&t=Sp-cEjrx5kpMdNsAGPOo9w) meetings. I had a user who was fairly familiar with error type design, thiserror and anyhow, and rust in general, but who was still confused about when to use panics vs when to use Result and `Error`.

This will also be cross referenced in an error handling FAQ that I will be creating in the https://github.com/rust-lang/project-error-handling repo shortly.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions