about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2022-10-02 11:32:56 +0200
committerEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2022-10-02 11:32:56 +0200
commit9c7c232a50819ef2bfb59eae283a5e7ed70dd952 (patch)
treef4c0b4f4ff8a56ba1e27be9e8e23feaf7b119902 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent56a35bc906be1250a76fdb9a4b70e9261e10aec5 (diff)
downloadrust-9c7c232a50819ef2bfb59eae283a5e7ed70dd952.tar.gz
rust-9c7c232a50819ef2bfb59eae283a5e7ed70dd952.zip
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