diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-10-03 19:12:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-03 19:12:17 +0200 |
| commit | cdd0ba8f417b95daa443c9a99925c7223ef9d723 (patch) | |
| tree | 1688788b2254ec630be28a04fa97348a56558cfb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 2e7e17a84abea8f4c3e2d95ce432ef784af06bef (diff) | |
| parent | 9c7c232a50819ef2bfb59eae283a5e7ed70dd952 (diff) | |
| download | rust-cdd0ba8f417b95daa443c9a99925c7223ef9d723.tar.gz rust-cdd0ba8f417b95daa443c9a99925c7223ef9d723.zip | |
Rollup merge of #102569 - eduardosm:from_str-example, r=joshtriplett
Improve `FromStr` example The `from_str` implementation from the example had an `unwrap` that would make it panic on invalid input strings. Instead of panicking, it nows returns an error to better reflect the intented behavior of the `FromStr` trait.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
