about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-03 19:12:17 +0200
committerGitHub <noreply@github.com>2022-10-03 19:12:17 +0200
commitcdd0ba8f417b95daa443c9a99925c7223ef9d723 (patch)
tree1688788b2254ec630be28a04fa97348a56558cfb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2e7e17a84abea8f4c3e2d95ce432ef784af06bef (diff)
parent9c7c232a50819ef2bfb59eae283a5e7ed70dd952 (diff)
downloadrust-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