diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2022-10-02 11:32:56 +0200 |
|---|---|---|
| committer | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2022-10-02 11:32:56 +0200 |
| commit | 9c7c232a50819ef2bfb59eae283a5e7ed70dd952 (patch) | |
| tree | f4c0b4f4ff8a56ba1e27be9e8e23feaf7b119902 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 56a35bc906be1250a76fdb9a4b70e9261e10aec5 (diff) | |
| download | rust-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
