about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2016-06-10 21:16:44 +0900
committerGitHub <noreply@github.com>2016-06-10 21:16:44 +0900
commitb2581974a31a6767a7109fc86ecbd2225d87dd5c (patch)
tree588e5de7d3f639c50f20e3a0888d28e7f6cba184 /src/rustllvm/RustWrapper.cpp
parent4f6e8f82593874e5a16498c84b69e5c9ee5deb14 (diff)
parent75fc40c668ca564b08674caebc32c77325900689 (diff)
downloadrust-b2581974a31a6767a7109fc86ecbd2225d87dd5c.tar.gz
rust-b2581974a31a6767a7109fc86ecbd2225d87dd5c.zip
Rollup merge of #34129 - jviide:from-string-box-error, r=steveklabnik
Remove a gotcha from book/error-handling.md

The book's "Error handling with `Box<Error>`" section talks about `Box<Error>`. In the actual example `Box<Error + Send + Sync>` is used instead so that the corresponding From impls could be used to convert a plain string to an error type. Rust 1.7 added support for conversion from `&str`/`String` to
`Box<Error>`, so this gotcha and later references to it can now be removed.

r? @steveklabnik
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions