Commit Graph

3 Commits

Author SHA1 Message Date
Mark Thomas
1d329cae5d rust: update to 2018 edition
Summary:
Update all rust crates that compile on Rust 2018 to use the 2018 edition.

The `commitcloudsubscriber` crate only compiles with Rust 2015, so make that
explicit in `Cargo.toml`.

Reviewed By: farnz

Differential Revision: D15601648

fbshipit-source-id: 7380e6e695fc3049913af91fcbde105dfe1be4bc
2019-06-03 07:22:36 -07:00
Jeremy Fitzhardinge
ac9b21844e Convert scm/hg/lib/cpython-failure to Rust 2018
Summary:
Rust 2018 updates to:
  //scm/hg/lib/cpython-failure:cpython-failure
  //scm/hg/lib/cpython-failure:cpython-failure-unittest

Reviewed By: quark-zju

Differential Revision: D15465466

fbshipit-source-id: 0a39b93f887047276b54f7cbc5f733ddfd3c829d
2019-05-22 23:57:49 -07:00
Mark Thomas
ca135cd33f cpython-failure: Integrate cpython PyResult with the failure crate
Summary:
Adds a new crate `cpython-result`, which provides a `ResultExt` trait, which
extends the failure `Result` type to allow coversion to `PyResult` by
converting the error to an appropriate Python Exception.

Reviewed By: quark-zju

Differential Revision: D12980782

fbshipit-source-id: 44a63d31f9ecf2f77efa3b37c68f9a99eaf6d6fa
2018-12-14 06:43:40 -08:00